Re: How to limit new user accessing other files?
| Newsgroups | gmane.linux.redhat.release.enigma |
|---|---|
| Message-ID | <[email protected]> |
> In order to give a good answer, we have to know what you do > want to let them do. if you don't want them to have a shell > at all, then change their shell to: > /sbin/nologin > > if your system does not have that, then set it to: > /bin/false > > here is the command from useradd: > useradd -s /sbin/nologin > > HG wrote: > >>If I create a user account by using "useradd" and "passwd" under root >> in Linux, how could I limit the user to access other files and avoid >> disasters if they access our server through SSH ? >> >> > > -- > ___cliff [email protected]___http://www.genwax.com/ > > this is a very interesting topic. A did a search for "sftp chroot" and got a lot of answers but setup up a chrooted scp or/and ssh enrironment seems hard. Any idea?