Operating System - HP-UX
1834305 Members
2586 Online
110066 Solutions
New Discussion

how to create an account to use sftp only

 
Kgreen
Advisor

how to create an account to use sftp only

Hi,

I wanted to know how do I create an account to use only sftp to transfer files with a password. If someone can provide the steps how to create the user should be helpful.


Thanks
2 REPLIES 2
Court Campbell
Honored Contributor

Re: how to create an account to use sftp only

take a look at this doc:

http://docs.hp.com/en/T1471-90011/ch01s12.html

there is a section on chroot'ed users ans sftp
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Steven E. Protter
Exalted Contributor

Re: how to create an account to use sftp only

Shalom,

If you want to limit an account to file transfers only, add the account normally but use a shell that does not permit logins. /usr/bin/false or nologin in the shell field of /etc/passwd

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