Solved

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

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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Suggested Solutions

How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

867 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

15 Experts available now in Live!

Get 1:1 Help Now