Solved

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

Posted on 2014-12-03
5
70 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
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.
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.

685 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