I've done the following:
sudo usermod -a -G root userA
sudo su - root
cd /
chmod 775 root
ls -aln
-- drwxrwxr-x. 6 0 0 4096 Sep 13 22:04 root
I can cd /root
from my userA
, but I can't make directories.
mkdir testing
mkdir: cannot create directory ‘testing’: Permission denied
For completeness:
id userA
uid=624981(userA) gid=624981(userA) groups=624981(userA),10(wheel),0(root)
What am I missing?
newgrp root
first – Jeff Schaller Sep 26 '15 at 11:23