Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

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

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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
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). …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.

856 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