LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 12-21-2010, 02:33 AM   #1
elainelaw
Member
 
Registered: Jan 2008
Posts: 258

Rep: Reputation: 30
Group Control


I have a file the owner is root:root ( mode is 644 ) , I want to release read & write permission to a non root user ( eg. admin_usr ) , I tried to create a specific group ( eg. ADM ) and release it to root user and admin_usr ( by adding this users to ADM in /etc/group ) , but it is not work , can advise if preserve the file mode to 644 , is it ok ? how to do it if I want to have read & write permission in my case ?
 
Old 12-21-2010, 02:49 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello,

Have a look at the following articles about ACL, I'm sure you'll be able to configure just what you need/want with them. The packages/commands discussed offer you possibilities beyond the standard ones on file permissions.

Linux File Security
Know your rights

Kind regards,

Eric
 
Old 12-21-2010, 06:00 AM   #3
JoshyJ
Member
 
Registered: Nov 2003
Location: Sydney , Australia
Distribution: Fedora
Posts: 49

Rep: Reputation: 1
So are you wanting only root to have access to the file? If you just want the owner root to have access, you could make the permissions 600.

Maybe I am misunderstanding what you want to do.
 
Old 12-21-2010, 07:46 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
To enable the orig soln, you'd have to change the group owner of the file to the new grp ADM:

Code:
chown root:ADM filename
 
1 members found this post helpful.
Old 12-23-2010, 12:22 PM   #5
raviteja_s
Member
 
Registered: Jun 2010
Location: India
Distribution: Redhat
Posts: 68

Rep: Reputation: 1
change the group ownership

chgrp ADM file1name


gpasswd -M admin_usr ADM
 
Old 12-23-2010, 02:42 PM   #6
devnull10
Member
 
Registered: Jan 2010
Location: Lancashire
Distribution: Slackware Stable
Posts: 572

Rep: Reputation: 120Reputation: 120
Quote:
I want to release read & write permission to a non root user
What I think this means is that currently only root can read/write but you want another user (who is a member of admin_usr) to be able to?

In which case the above (chgrp) will still retain the existing permissions on the file (ie, 644). You will need to:
Code:
chmod 664 FILENAME
or
chmod g+rw FILENAME
so that the group has rw.
 
  


Reply



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
Block bitmap for group 416 not in group (block 0) + group descriptors corrupted? quanta Linux - Server 1 12-08-2010 10:40 AM
tc traffic control tc traffic control Linux QoS control tool(noob help) inv|s|ble Linux - General 1 07-26-2007 11:12 AM
Control user/group network access kragsterman Linux - Networking 2 05-24-2007 11:48 PM
group: add complete group into other group max_mad SUSE / openSUSE 1 04-12-2006 01:43 AM
Group Admin, Group Root, or God over Group crickett Linux - General 5 07-12-2004 04:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:48 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
Open Source Consulting | Domain Registration