Solved

Limiting Users Access in Linux

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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Ubunto LTS Server 16.04 for Intel Processors 2 41
How to update  and reset admin password for Linux 5 54
CENTOS DHCP Server / PXE/TFTP 14 69
bash file 10 34
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…
In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
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.

805 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