Solved

allowing access to and showing users only their home/~ directory

Posted on 2004-08-28
3
243 Views
Last Modified: 2013-12-15
I wish to set up a bunch of users and have them only able to see and access their home/~ directory and nothing below
0
Comment
Question by:iqula
[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
 
LVL 40

Accepted Solution

by:
jlevie earned 500 total points
ID: 11921932
What access method will the users have (e.g., console logon, telnet, ssh/scp, or FTP)?

Although you stated that the users should see "nothing below" I suspect that you meant nothing outside of their home dir. Other than standard file permissions I can't think of a way to prevent a user from seeing the contents of directories below their home dir, e.g. /home/some-user/his-folder/stuff. Chrooted environments can be used to restrict a user from seeing above their home dir but they don't necessarily apply to all forms of system access. It is quite easy to set up chrooted env's for FTP access and quite difficult for console, telnet, & ssh.
0
 
LVL 11

Expert Comment

by:Jase-Coder
ID: 11922018
you can deny them access to certain partitions by editing the fstab and changing which group os allowed to acces it.
0
 
LVL 2

Expert Comment

by:brozzis
ID: 11922107

I guess that a restricted shell is what you need...
On some system is called rsh, in bash you can use "bash --restricted"...
Only some commands are available, take a look to man bash...

0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

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é.
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
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…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

726 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