Solved

How do I give users different access to a folder in Linux?

Posted on 2014-12-03
5
56 Views
Last Modified: 2015-07-14
I am struggling to understand how to give different users different permissions on a folder on an Linux FTP server. I created a folder, a group and a user, lets say the folder is China, the group is China and the user is China. China must only have read access to this folder and User1 must have RWX. Have I already messed up by doing this on China's home directory...can I change their permissions on this to read-only? Many thanks.
0
Comment
Question by:fuzzyfreak
  • 3
5 Comments
 
LVL 34

Accepted Solution

by:
Seth Simmons earned 500 total points
ID: 40478583
to accomplish that, change the owner to User1 and the group to china

chown User1:China <path to folder>/China

to change rights for User1 to write and China to read-only...

chmod 750 <path to folder>/China
0
 
LVL 4

Author Comment

by:fuzzyfreak
ID: 40486892
Thank you very much, I shall give this a go.
0
 
LVL 13

Expert Comment

by:Sandy
ID: 40565834
or you can try ACL's on filesystem on which you have directories.

TY/SA
0
 
LVL 4

Author Comment

by:fuzzyfreak
ID: 40594556
I have not yet had time to do this.
0
 
LVL 4

Author Closing Comment

by:fuzzyfreak
ID: 40880743
Thanks for your help.
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
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.

708 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

19 Experts available now in Live!

Get 1:1 Help Now