pitchford
11-08-2001, 08:59 AM
How do I restrict the places someone can go in a telnet/ssh session?
For example;
logina can not only access his directory with read/write, but he can go into the system config files, password files, other customers scripts, all with read properties.
I want to give telnet/ssh because it is such as good feature, but don't want them to leave their home directory (ie. /home/user/).
THANKS
cperciva
11-08-2001, 09:17 AM
Is there some reason why you can't just not give them read permission to stuff you don't want them to read? While there are ways to jail(1) users inside a chroot(8)ed environment, I really don't see why it would be necessary.
ffeingol
11-08-2001, 10:54 AM
Which shell are you giving your users? A lot of the shells come with a "restricted" version. The restricted version usually jail them in their home directory and won't allow them to reset certain important environment variables.
Frank
Frank,
This is interesting. Sounds like a much better idea than
chroot'ing each user to their own home dir (which is one
h*** of a job.) Do you have any links?
ffeingol
11-08-2001, 09:28 PM
Here is a link for bash (http://www.gnu.org/manual/bash/html_chapter/bashref_5.html#SEC73) which is a very common shell on linux.
If you can let me know which shell you use, I can point you in the rigth direction.
Frank
Originally posted by ffeingol
Here is a link for bash (http://www.gnu.org/manual/bash/html_chapter/bashref_5.html#SEC73) which is a very common shell on linux.
If you can let me know which shell you use, I can point you in the rigth direction.
Frank
with bash --restricted , you cannot even cd into a subdirectory.
ffeingol
11-09-2001, 10:20 PM
Yea, I'm more of a ksh/pdksh person. The restricted shell there is not as restricted. You can move about in your home directory, but no further.
Frank