1833515 Members
2956 Online
110061 Solutions
New Discussion

USER FOR FTP ONLY

 

USER FOR FTP ONLY

How can I create a HP-UX user that allow for FTP access ONLY and deny him to access UNIX prompt (deny login and telnet). Please assist. Regards.
6 REPLIES 6
Michael Tully
Honored Contributor

Re: USER FOR FTP ONLY

Hi,

Check the following link, the information contained here should help you.

http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0x0ea6663ce855d511abcd0090277a778c,00.html

Regards
Michael
Anyone for a Mutiny ?
Varghese Mathew
Trusted Contributor

Re: USER FOR FTP ONLY

Hi,

You can create a user in the normal way, using sam --> users --> add -->
give the login name --> select the shell as /usr/bin/rsh --- then complete the creation by filling up the rest of the options.

Then edit the .profile of the user's home directory and give an exit command at the end of the file. And ensure that the username is not specified in the file /etc/ftpusers.

That's it , u r done..
Hope this helps..

Cheers !!!
Mathew
Cheers !!!
Stefan Schulz
Honored Contributor

Re: USER FOR FTP ONLY

Hello,

just set the login shell of your ftp-user to /usr/bin/false. This User will never be able to login. He will only be allowed to use ftp.

See also man ftpd, which describes this.

Hope this helps

Regards Stefan
No Mouse found. System halted. Press Mousebutton to continue.
federico_3
Honored Contributor

Re: USER FOR FTP ONLY

It 's sufficient that in the user's .profile there is exit .

Federico
Ravi_8
Honored Contributor

Re: USER FOR FTP ONLY

hi,
make a entry of the user loginid in ftp.allow file and 'exit' command at the end of .profile file of that user. user account has to be created .
never give up
Joseph C. Denman
Honored Contributor

Re: USER FOR FTP ONLY

You can set up an ftpaccess file. As stated above, do not give the user a shell. Use the false shell. You will need to make sure the false shell is in /etc/shells.

man ftpaccess
If I had only read the instructions first??