Hello all, I'm having an issue with group permissions which I really find hard to understand why. I have created a group called smbusers which I am a part of by doing the following: # groupadd smbusers# usermod -G smbusers michael I then created a directory called foodir, owned by adm with group smbusers and give the following permissions to it: 770 I verify the permissions are correct and are accessible by members of its group, but I cannot access the directory. Everytime I try to cd into the directory, I get a permission denied error. It is a group issue because when I change the permission to 777, I do have access. Below is output I get from different commands: # groups michaelmichael: michael, smbusers # groupsmichael adm #iduid=500(michael) gid=500(michael) groups=4(adm), 500(michael) The /etc/group file shows I'm in the smbusers group but does not show I'm in the adm group (although I believe I added myself to the adm group when I installed the operating system). Clearly, I don't know what I'm doing and I am confused. Can anybody guide me to where I need to go? Thanks,Michael
On Tue, Dec 13, 2011 at 11:50 PM, Michael Velez mikev777@hotmail.com wrote:
Hello all, I'm having an issue with group permissions which I really find hard to understand why. I have created a group called smbusers which I am a part of by doing the following: # groupadd smbusers# usermod -G smbusers michael I then created a directory called foodir, owned by adm with group smbusers and give the following permissions to it: 770 I verify the permissions are correct and are accessible by members of its group, but I cannot access the directory. Everytime I try to cd into the directory, I get a permission denied error. It is a group issue because when I change the permission to 777, I do have access. Below is output I get from different commands: # groups michaelmichael: michael, smbusers # groupsmichael adm #iduid=500(michael) gid=500(michael) groups=4(adm), 500(michael) The /etc/group file shows I'm in the smbusers group but does not show I'm in the adm group (although I believe I added myself to the adm group when I installed the operating system). Clear ly, I don't know what I'm doing and I am confused. Can anybody guide me to where I need to go? Thanks,Michael
Use the id command to check what groups you are in. Stop nscd if it is running and run id again.
Cheers,
Cliff