Results 1 to 6 of 6
Hello All,
I am new to Linux so I apologize for the lame question. However, how do create an account that only has FTP access and nothing else, nO SSH, ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 04-06-2005 #1Just Joined!
- Join Date
- Apr 2005
- Posts
- 1
FTP ONLY ACCOUNT (VSFTP)
Hello All,
I am new to Linux so I apologize for the lame question. However, how do create an account that only has FTP access and nothing else, nO SSH, no shell, nothing?
I would really appreciate the help.
Thanks
~D
- 04-06-2005 #2
in the /etc/passwd file change the user's shell to "/bin/false". AFAIK that should do it.
- 02-07-2007 #3Just Joined!
- Join Date
- Feb 2007
- Posts
- 3
CentOS 4 and VSFTP
What is the proper ending in the /etc/passwd file to keep it so that users can only log in via VSFTP and not have any shell access.
I have tried
and login to FTP failedCode:/bin/false
and login to FTP failedCode:/bin/noop
I am setting up this new server and in my older RH8 /bin/false worked great. Now I can't figure out how to restrict the users.
Thanks in advance!
- 02-08-2007 #4Just Joined!
- Join Date
- Feb 2007
- Posts
- 5
hi,
You need to configure the ftp server on your computer. for that u need to install "vsftpd " rpm on your computer.
and then restart the ftp server by using service vsftpd start command.
after that u be able to login via ftp user.
if u have any problem the get back.
best of luck.
- 02-08-2007 #5Just Joined!
- Join Date
- Jan 2007
- Posts
- 11
hi,
you just need to give shell /sbin/nologin and also make the member of ftp group.
ftp is the primary group of that user.
Commands for new user:
useradd -g ftp -s /sbin/nologin <username>
For old user:
usermod -g ftp -s /sbin/nologin <username>
- 02-08-2007 #6Just Joined!
- Join Date
- Feb 2007
- Posts
- 3
awesome it worked
thanks ajay.redhat that did the trick.



