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
Solved

Limiting Users Access in Linux

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Choosing CentOS 16 106
Rate limit for DNS queries 7 83
Like to learn Linux, need advice for a good book and setup. 3 55
Intel fortran compiler (ifort) 5 38
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
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…
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…
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…

789 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