Solved

Limiting Users Access in Linux

Posted on 1999-01-20
3
228 Views
Last Modified: 2010-04-20
Is there a way to limit a users access within Linux to just their home directory????

Thanks

Greg
0
Comment
Question by:gandrews081397
3 Comments
 

Accepted Solution

by:
kane7279 earned 200 total points
ID: 1639210
If you change the permissions of the /home directory so that users do not have executable permissions, all users contained in the /home directory will not be able to get out of their own home directory.  If you are not familiar with how to do this try 'man chmod' it will go over file permissions.  Hope this helps.
0
 
LVL 2

Expert Comment

by:jprohart
ID: 1639211
change the user shell with a restricted shell (usually a link to the original shell wit a 'r' prefix: for ksh, link /bin/ksh to /bin/rksh).
Then the user will not be able to change directory, the shell will issue a message like "restricted shell, cannot change directory".
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 1639212
kane7279, they still can cd to absolute path, like /tmp
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now