Solved

Limiting Users Access in Linux

Posted on 1999-01-20
3
234 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

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

You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
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…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

734 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