On Sun, Aug 12, 2018 at 01:55:00PM +0900, mett wrote:
> Hi, 
> 
> I m wondering about the best way to restrict a user after 
> he has ssh'd into his web folder.
> 
> Up to now, the users I had were using only FTP 
> to log into their web folder, 
> and upload stuff in there
> (chrooted in their folder with vsftpd).
> 
> I m considering giving ssh access but I realized that 
> chroot for ssh looks quite involved.
> 
> So, I m wondering if using 'chmod o-r' 
> for folders(and subfolders), and files on 
> /etc, /home, /root, /usr and /var is a viable solution.

Maybe use a restricted shell, allowing only the bunch of commands you
would like the users to be able to run. Beware of cat(s), though.

My2Cents

KatolaZ

-- 
[ ~.,_  Enzo Nicosia aka KatolaZ - Devuan -- Freaknet Medialab  ]  
[     "+.  katolaz [at] freaknet.org --- katolaz [at] yahoo.it  ]
[       @)   http://kalos.mine.nu ---  Devuan GNU + Linux User  ]
[     @@)  http://maths.qmul.ac.uk/~vnicosia --  GPG: 0B5F062F  ] 
[ (@@@)  Twitter: @KatolaZ - skype: katolaz -- github: KatolaZ  ]

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng

Reply via email to