Operating System - HP-UX
1834604 Members
4403 Online
110069 Solutions
New Discussion

Unable to create restricted ftp account.

 
SOLVED
Go to solution
Gulam Mohiuddin
Regular Advisor

Unable to create restricted ftp account.

I did the following steps to create the restricted ftp account:

1. add a new group called “ftpgroup”
2. create a new user “ftpman”
3. make ftpman a member of ftpgroup
4. created a /etc/shells file
5. add all shells and /sbin/false to /etc/shells
6. edit password file and modify “ftpman” the default shell and home directory
:/home/ftpman/./:/sbin/false

But when I try to login su – ftpman. Nothing happens.

rwfuts02:/#su - ftpman
rwfuts02:/#whoami
root
rwfuts02:/#

Your assistance in this matter would be really appreciated.

Thanks,

Gulam
Everyday Learning.
4 REPLIES 4
Alan Meyer_4
Respected Contributor
Solution

Re: Unable to create restricted ftp account.

this is by design because of the /sbin/false login shell
" I may not be certified, but I am certifiable... "
Alan Meyer_4
Respected Contributor

Re: Unable to create restricted ftp account.

you should still be able to ftp in to the system though
" I may not be certified, but I am certifiable... "
Gulam Mohiuddin
Regular Advisor

Re: Unable to create restricted ftp account.

I can connect remotely, but I don't want this account to "cd" in ay other directory other that its home directory and no other command should run except "ls" command

Thanks,

Gulam.
Everyday Learning.
Alan Meyer_4
Respected Contributor

Re: Unable to create restricted ftp account.

that can be done though the ftpaccess file. You should check out the man page for ftpaccess and also some additional information can be found here: http://www.devshed.com/c/a/Administration/Setting-Up-wuftpd-for-NonAnonymous-Accounts/
" I may not be certified, but I am certifiable... "