Avatar of aravindgopaluni
aravindgopaluni asked on

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
LinuxUnix OS

Avatar of undefined
Last Comment

8/22/2022 - Mon

Have you tryed using \ before the ~?

Yes, I have tried that option, but still the same failure
Dave Baldwin

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question

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

Also, did you try to put ' around the username?
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy

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 Gan

Have you tried to use "sftp" ?

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.
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.

Can you make program you call "ftp" use PAM like kind SSH does? Like copying over pam config or so?