Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.
$ id
uid=1000(kev) gid=1000(kev) groups=1000(kev),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),109(lpadmin),124(sambashare)

$ ls -l /etc/sudoers
-r--r----- 1 root root 723 Jan 31  2012 /etc/sudoers

$ sudo adduser kev root
Adding user `kev' to group `root' ...
Adding user kev to group root

$ cat /etc/sudoers
cat: /etc/sudoers: Permission denied

After adding myself(kev) to group root, I still cannot read /etc/sudoers.

I don't know why. Thanks for your help.

share|improve this question

2 Answers 2

up vote 12 down vote accepted

You need to log out and back in again for the change to take effect.

share|improve this answer
Thanks. It works! –  kev Nov 7 '12 at 5:19

$ exec su -l kev
/// refresh group membership without logging out (source)

$ newgrp groupname
/// make groupname your default group for the entire session

$ groups
/// print current group membership to verify (source)

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.