Special User
Duston, Hal
hdusto01 at sprintspectrum.com
Fri Sep 6 21:17:15 CDT 2002
David, InfoKwik Internet Solutions wrote:
>
> Before I start thanks to KCLUG for all the help....
>
> I have a user "testuser" with a home folder setup on
> a second drive in my system, I am also running SSH server.
> I would like to know if there is a way when "testuser" logs
> in via ssh or sftp to lock that user into the folder I
> setup for them and not allow them to traverse any where
> outside of that folder. Maybe this is not even possible. I
> would appreciate any help or pointers to sites with this info
> on them.
You probably want a "restricted" shell. I know that ksh
and bash provide this with the "-r" option. You need to
also be cautious about building the path that user has.
Quite a bit of effort, but also quite feasible. I'm not
certain that will cure sftp, but most likely will work
for ssh.
Hal
More information about the Kclug
mailing list