Solved

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

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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
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 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…
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.

757 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now