FTP with username having tilde character


I am trying to do FTP as an account with tilde character in the username (Ex: ~user1) and FTP login fails.

Do FTP (vsftp and Solaris FTP) support logins with tilde character in user names?

Appreciate your response.

Aravind G
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Have you tryed using \ before the ~?
aravindgopaluniAuthor Commented:
Yes, I have tried that option, but still the same failure
Dave BaldwinFixer of ProblemsCommented:
Try it without the ~ tilde.  '~username' is usually the home directory of 'username'.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Newly released Acronis True Image 2019

In announcing the release of the 15th Anniversary Edition of Acronis True Image 2019, the company revealed that its artificial intelligence-based anti-ransomware technology – stopped more than 200,000 ransomware attacks on 150,000 customers last year.

How the username with ~ was created? Why do you need ~ in the username?

Also, did you try to put ' around the username?
aravindgopaluniAuthor Commented:
My UNIX system is integrated with Microsoft AD to allow AD user authentication to login to UNIX servers.

This tilde account is created in AD with required UNIX attributes. SSH login works fine as tilde account, but FTP is failing though.

I have tried enclosing the user name in single quotes and double quotes as well (Ex: '~502184677' or "~502184677"), but no luck.
Joseph GanSystem AdminCommented:
Have you tried to use "sftp" ?
aravindgopaluniAuthor Commented:
Yes, sftp and scp works fine. I believe as they use SSH as the underlying protocol, and as SSH works fine, they are also letting ~user to login successfully.
Can you make program you call "ftp" use PAM like kind SSH does? Like copying over pam config or so?
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.