1846866 Members
2841 Online
110256 Solutions
New Discussion

user creation

 
arun m govind
Frequent Advisor

user creation

hi

i want to create a user who can ftp to a hpux11.11 server but cannot telnet.how can i do that??
4 REPLIES 4
Rajeev  Shukla
Honored Contributor

Re: user creation

Make his shell as /usr/bin/false
when you create the user use -s option followed by /usr/bin/false
this will let you use the ftp with that userid but wont let you telnet
Steven E. Protter
Exalted Contributor

Re: user creation

Shalom,

The user needs either the restricted shell or /usr/bin/false as his/her shell.

That will prevent normal login.

use vipw to edit /etc/passwd after creation.

You can specify a shell on the command line but unless you are going to do it a lot its tough to remember the shell options.

man useradd

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
arun m govind
Frequent Advisor

Re: user creation

hi
i created the user with /usr/bin/false.
but it when i do ftp it giving user access denied.
spex
Honored Contributor

Re: user creation

Arun,

Make sure /usr/bin/false appears in /etc/shells.

PCS