LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-27-2015, 01:16 AM   #1
Awali777
LQ Newbie
 
Registered: Oct 2015
Posts: 1

Rep: Reputation: Disabled
giving read-only permission to specific users for all files and folders


Hi,
I have created 2 users Audit1 & Audit2 and i want them to a read only access in all folders, sub-folders and files. Please assist showing me how to do it. Thanks!
 
Old 10-27-2015, 02:55 AM   #2
serverpoint.com
Member
 
Registered: Oct 2015
Posts: 52

Rep: Reputation: 6
how about this

Create a group.Add users to this group and assign a read only permissions for this group in to the folders you have mentioned. Have you tried this?
 
1 members found this post helpful.
Old 10-27-2015, 11:01 AM   #3
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,406

Rep: Reputation: 2019Reputation: 2019Reputation: 2019Reputation: 2019Reputation: 2019Reputation: 2019Reputation: 2019Reputation: 2019Reputation: 2019Reputation: 2019Reputation: 2019
Standard UNIX permissions don't work this way. Files/directories dictate who can and cannot access them, not the other way around. ACLs may be able to handle this, but I don't have a lot of experience there.
 
1 members found this post helpful.
Old 10-27-2015, 09:17 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,326

Rep: Reputation: 2364Reputation: 2364Reputation: 2364Reputation: 2364Reputation: 2364Reputation: 2364Reputation: 2364Reputation: 2364Reputation: 2364Reputation: 2364Reputation: 2364
If you really mean ALL, then suicidaleggroll is right; the system doesn't work that way.
You could use ACL's in theory, but it would take a bit of doing and you'd have to set the right defaults so that new dirs/files get included.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to give read-only permission for specific user for specific folder in RedHat digitalbiopharm Linux - Newbie 15 12-28-2013 03:12 PM
giving users permission to mount a CD ricardo_ok Slackware 4 11-03-2005 12:58 PM
giving permission to read windows partitions jaakkop Slackware 2 01-13-2005 08:51 AM
Giving Specific users access to the reboot command shassouneh Linux - Security 15 03-24-2004 05:10 PM
giving users permission to mount dai Linux - General 2 08-02-2002 02:12 AM


All times are GMT -5. The time now is 06:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration