• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 548
  • Last Modified:

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
1 Solution
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'.
Build your data science skills into a career

Are you ready to take your data science career to the next step, or break into data science? With Springboard’s Data Science Career Track, you’ll master data science topics, have personalized career guidance, weekly calls with a data science expert, and a job guarantee.

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?
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now