LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-29-2016, 05:33 AM   #1
ericcvt19
LQ Newbie
 
Registered: Jul 2013
Posts: 15

Rep: Reputation: Disabled
Group Privileges


I'm new to using groups. Recently I've added a member to a group. I would like to know that if I assign an individual to a group, will the member be able to use chmod on the files/directory he/she is a member of. I've tried to change a file's permission and it, the OS, stated permission denied. I would like to hear others opinion to confirm what the OS stated.
 
Old 09-29-2016, 05:39 AM   #2
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,669

Rep: Reputation: 498Reputation: 498Reputation: 498Reputation: 498Reputation: 498
Quote:
I would like to know that if I assign an individual to a group, will the member be able to use chmod on the files/directory he/she is a member of.
No.
Only two accounts may do that: the owner of the file and the root.

In your given case the group member is given the "group" bit and the privileges thereon depends now on what powers are given to the group.

Hope that helps. Good luck and enjoy.

m.m.
 
1 members found this post helpful.
Old 09-29-2016, 09:51 PM   #3
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
One other note: after adding a group to a user, that user has to logout and login again...

This is because the group membership lists are created at login time, then all processes created after that just inherit the list - thus adding a new group to a user doesn't effect the users existing processes.
 
Old 09-29-2016, 10:15 PM   #4
linux4evr5581
Member
 
Registered: Sep 2016
Location: USA
Posts: 275

Rep: Reputation: Disabled
You can change ownership of the file using sudo chown NewUser NameofFileorDirectory, its recommended to use the -R after chown if its a directory to make it recursive down to all the files, so that the new owner will have ownership of all the files in that directory too, unless you wanted to manually configure them...
 
Old 09-30-2016, 12:19 AM   #5
c0wb0y
Member
 
Registered: Jan 2012
Location: Inside the oven
Distribution: Windows
Posts: 417

Rep: Reputation: 74
Quote:
Originally Posted by jpollard View Post
One other note: after adding a group to a user, that user has to logout and login again...

This is because the group membership lists are created at login time, then all processes created after that just inherit the list - thus adding a new group to a user doesn't effect the users existing processes.
Another option is to issue 'newgrp'. No need to log out and log back in.
 
  


Reply

Tags
chmod, groups


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
usr added to wheel group but isn't allowed root privileges jus71n742 *BSD 7 06-11-2009 04:52 PM
Query regarding group users' privileges vikram8jp Linux - Newbie 5 10-22-2008 09:37 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 05:54 AM.

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