Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 268
  • Last Modified:

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

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
iqula
Asked:
iqula
1 Solution
 
jlevieCommented:
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
 
Jase-CoderCommented:
you can deny them access to certain partitions by editing the fstab and changing which group os allowed to acces it.
0
 
brozzisCommented:

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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

A proven path to a career in data science

At Springboard, we know how to get you a job in data science. With Springboard’s Data Science Career Track, you’ll master data science  with a curriculum built by industry experts. You’ll work on real projects, and get 1-on-1 mentorship from a data scientist.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now