how can I keep users in their directory on ssh

Nikolai Wendorf nick at wholesum.net
Sun May 11 15:16:48 UTC 2014


have a look at the man page for bash aliased to rbash or the -r option

nick


On 5/10/2014 8:05 AM, tethys ocean wrote:
> *Hi,*
>
> *I want to give a ssh access to my programmers, but I want to keep them in
> thier own directory. *
>
> *I created these users and tried to ssh access and test I saw that all
> these users can go out upper directory*
>
> *I add sone line to sshd.config file  like as;*
>
>
> *Allowusers prog1 prog2 prog3 prog4*
> *ChrootDirectory /perlproggroup*
> *X11Forwarding no*
> *AllowTcpForwarding no*
>
> *but they still have access to upper directory..*
>
> *How can I keep them in their own directory.. we dont want to use sftp
> etc..*
>
> *Should I use ssh-keygen?!?!?  OR rssh  !??!*
>
> *Regards*
>
>
>
>
>
>
>
> *-- Share now a pigeon's flight Bluebound along the ancient skies, Its
> women forever hair and mammal, A Mediterranean town may arise If you rip
> apart a pigeon's heart. *
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
>



More information about the freebsd-questions mailing list