[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 265
  • 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

Featured Post

Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

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