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

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

Posted on 2004-08-28
3
237 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
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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
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.

809 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