?
Solved

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

Posted on 2014-12-03
5
Medium Priority
?
84 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
[X]
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
  • 3
5 Comments
 
LVL 35

Accepted Solution

by:
Seth Simmons earned 2000 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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

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…
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
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.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month14 days, 5 hours left to enroll

800 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