Pages

Tuesday, January 25, 2011

linux restricted user

I was using scponly for creating restricted users, but I found that setup quite complicated to use, so I was searching for an alternative. I found rssh, which was much simpler:

[root@zion ~]# yum install rssh 
[root@zion ~]# adduser -g rsshusers myuser

Edit /etc/passwd:

myuser:x:513:109::/home/myuser:/usr/bin/rssh

For configuring rssh, see /etc/rssh.conf. You can:


allowscp
#allowsftp
#allowcvs
#allowrdist
#allowrsync

Also, you can configure chroot for the restricted user if you want. So, it's quite simple to setup, simple to use.

No comments:

Post a Comment