1756259 Members
2975 Online
108843 Solutions
New Discussion юеВ

Re: Group Control

 
ivy1234
Frequent Advisor

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 ?
5 REPLIES 5
Stephan._1
Trusted Contributor

Re: Group Control

Check f.e. http://permissions-calculator.org/

If you want write for the group you need give them the write permissions, in other words you cannot use 644 and have write for the group.

You will need to change to 664 at least.

hth
Stephan
Share what you know, learn what you don't.
ivy1234
Frequent Advisor

Re: Group Control

if I want to preserve 644 , do I have another way ? for example , change the file group to root:ADM etc ?

Thanks
Steven Schweda
Honored Contributor

Re: Group Control

> if I want to preserve 644 , [...]

Why would you want to do this? As in a
previous thread,

http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1460503

you seem to want to keep read-only
permissions, but allow write access. Why?

As previously suggested, ACLs can let you do
things like this, but it's not clear why you
want what you say you want.
ivy1234
Frequent Advisor

Re: Group Control

Thx reply .
ivy1234
Frequent Advisor

Re: Group Control

I will try ACL.