SSH many users to one Home with full access

Home : /home/onehome
Default user and group is “onehome”

Step : 1

Add users to “onehome’s” directory

useradd -d /home/onehome -s /bin/bash user1
useradd -d /home/onehome -s /bin/bash user2

Step : 2

Add new users to onhome’s group

useradd -G onehome user1
useradd -G onehome user2

Step : 3

Set full permission to new users on onehome’s home directory.

setfacl -R -m u:user1:rwx /home/onehome
setfacl -R -m u:user2:rwx /home/onehome

    • anthonyvenable110
    • February 16th, 2012

    this was great

    • anthonyvenable110
    • February 16th, 2012

    Reblogged this on anthonyvenable110 and commented:
    great info

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: