Trouble with write access and groups.
by jmgibson1981 from LinuxQuestions.org on (#52Z5S)
Code:$ groups
jason adm sudo kvm libvirt lxd windowsbackupCode:ls -al
total 8
drwxrwxr-x 2 root windowsbackup 4096 May 2 11:14 .
drwxr-xr-x 5 jason jason 4096 May 2 10:49 ..Code:$ touch indeed
touch: cannot touch 'indeed': Permission deniedCode:$ newgrp windowsbackup
$ touch indeed
ls -l
total 0
-rw-rw-r-- 1 jason windowsbackup 0 May 2 11:12 indeedI am so confused. I figured this should be simple. I'm clearly a member of the group. The permissions on the directory are 775. I can't write to the directory. I've logged out and in several times. I can however write just fine after using Code:newgrp windowsbackup I've done nothing involving special acls or anything.
I've hit this before but I've never tested with the newgrp command. So if it doesn't ask me for a password on the newgrp command, then I'm a member of the group... but I can't write anything? As wrong as it is I've bypassed by just tossing 777 and leaving it. But it bugs the hell out of me. I've posted this issue elsewhere and get nowhere. Google just says chmod 775 and chgrp the folder.


jason adm sudo kvm libvirt lxd windowsbackupCode:ls -al
total 8
drwxrwxr-x 2 root windowsbackup 4096 May 2 11:14 .
drwxr-xr-x 5 jason jason 4096 May 2 10:49 ..Code:$ touch indeed
touch: cannot touch 'indeed': Permission deniedCode:$ newgrp windowsbackup
$ touch indeed
ls -l
total 0
-rw-rw-r-- 1 jason windowsbackup 0 May 2 11:12 indeedI am so confused. I figured this should be simple. I'm clearly a member of the group. The permissions on the directory are 775. I can't write to the directory. I've logged out and in several times. I can however write just fine after using Code:newgrp windowsbackup I've done nothing involving special acls or anything.
I've hit this before but I've never tested with the newgrp command. So if it doesn't ask me for a password on the newgrp command, then I'm a member of the group... but I can't write anything? As wrong as it is I've bypassed by just tossing 777 and leaving it. But it bugs the hell out of me. I've posted this issue elsewhere and get nowhere. Google just says chmod 775 and chgrp the folder.