Re: How to limit new user accessing other files?

[email protected]
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?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.