Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 12-21-2010, 02:33 AM   #1
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
LQ Guru
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295

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,

Old 12-21-2010, 06:00 AM   #3
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
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,396

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

chown root:ADM filename
1 members found this post helpful.
Old 12-23-2010, 12:22 PM   #5
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
Registered: Jan 2010
Location: Lancashire
Distribution: Slackware Stable
Posts: 553

Rep: Reputation: 116Reputation: 116
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:
chmod 664 FILENAME
chmod g+rw FILENAME
so that the group has rw.


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
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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:42 AM.

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