Is a reboot required to refresh permissions after adding a user to a new group?

Posted by Michael Prescott on Server Fault See other posts from Server Fault or by Michael Prescott
Published on 2010-01-03T01:36:14Z Indexed on 2012/10/28 11:06 UTC
Read the original article Hit count: 238

Filed under:
|
|
|

On ubuntu server, I've noticed more than once now that after adding a user to a group that user doesn't have group permissions until I reboot the system. For example:

User 'hudson' needs permission to read directory 'root:shadow /etc/shadow' So I add hudson to the shadow group. hudson still cannot read. So, I 'sudo shutdown -h -r now' and when the system comes up again user hudson can read.

Is a reboot required or is there a better way to get permissions applied after adding the user to the group?

© Server Fault or respective owner

Related posts about permissions

Related posts about ubuntu