Solved

Limiting Users Access in Linux

Posted on 1999-01-20
3
229 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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
bash script question (chmod) 10 56
Install Predefined Certificate on Ubunto 4 18
installing LSI MegaRAID Storage Manager on CentOS 7 22 98
linux redhat 7.2 10 46
This document is written for Red Hat Enterprise Linux AS release 4 and ORACLE 10g.  Earlier releases can be installed using this document as well however there are some additional steps for packages to be installed see Metalink. Disclaimer: I hav…
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…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

867 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