Hello all,
Re-sending due to incorrect mapping of linefeeds from hotmail.
I'm having an issue with group permissions.
I have created a group called smbusers which I have added myself to, with the following commands:
# groupadd smbusers # usermod -G smbusers michael
I then create a directory called foodir, owned by adm with group smbusers. Permissions are correct (770) but I cannot access the directory. When I change permissions to 777, I can access.
Below is output from various commands, run as user michael:
$ groups michael michael: michael, smbusers
$ groups michael adm
$ id uid=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 believed I added myself to the adm group when I installed CentOS).
Clearly, I don't know what I'm doing and I'm confused. Can anybody guide me to where I need to go?
Thanks, Michael
On Tuesday, December 13, 2011 12:10:47 PM Michael Velez wrote:
$ groups michael michael: michael, smbusers
This seems to be ok but these:
$ groups michael adm
$ id uid=500(michael) gid=500(michael) groups=4(adm), 500(michael)
Say otherwise.
Might sound stupid but... did you make sure to logoff and back in with your user?
Regards
This seems to be ok but these:
$ groups michael adm
$ id uid=500(michael) gid=500(michael) groups=4(adm), 500(michael)
Say otherwise.
Might sound stupid but... did you make sure to logoff and back in with your user?
Regards
Ok. I did not know I needed to log back off and on. OK. I'll try that although I can't do it now due to a currently running process. I'm actually accessing the machine through VNC. Could this be part of the issue as well? The session needs to be closed and re-opened before the new groups will take effect? Thanks,Michael
-----Original Message----- From: centos-bounces@centos.org [mailto:centos-bounces@centos.org] On Behalf Of Michael Velez Sent: Tuesday, December 13, 2011 8:14 To: centos@centos.org Subject: Re: [CentOS] Group permission problems [RESEND]
This seems to be ok but these:
$ groups michael adm
$ id uid=500(michael) gid=500(michael) groups=4(adm), 500(michael)
Say otherwise.
Might sound stupid but... did you make sure to logoff and back in
with your user?
Regards
Ok. I did not know I needed to log back off and on. OK. I'll try that although I can't do it now due to a currently running process. I'm actually accessing the machine through VNC. Could this be part of the issue as well? The session needs to be closed and re-opened before the new groups will take effect? Thanks,Michael
With Unix unless you are changing X or the kernel, you can most times just start a new instance of you. :) i.e., `xterm -ls -sb` or (in gnome) start a terminal click Edit -> Current Profile click 'Title and Command' make sure "Run command as login shell"** is checked, and click close. Start a new gnome terminal.
**you'll have to look back into the mists of time to see the argument about why neither gdm nor gnome-terminal made this the default. You may or may not want to undo the change later.
With Unix unless you are changing X or the kernel, you can most times just start a new instance of you. :) i.e., `xterm -ls -sb` or (in gnome) start a terminal click Edit -> Current Profile click 'Title and Command' make sure "Run command as login shell"** is checked, and click close. Start a new gnome terminal.
Tried both of those. I still get the same conflicting output from the three commands: groups michael, groups and id. I had to try those in the same VNC session. Would that make a difference? Still can't logout of this VNC session due to existing running process. I will have access to the console in a few hours. I could try it there. Thanks for the help/ Michael
В Втр, 13/12/2011 в 12:10 +0100, Michael Velez пишет:
I'm having an issue with group permissions.
I have created a group called smbusers which I have added myself to, with the following commands:
# groupadd smbusers # usermod -G smbusers michael
usermod -G smbusers,adm michael
I'm having an issue with group permissions.
I have created a group called smbusers which I have added myself to, with the following commands:
# groupadd smbusers # usermod -G smbusers michael
usermod -G smbusers,adm michael
I understand what this command does; however, it will not solve my original problem which is to access a directory as a member of smbusers. I will try the logoff and log back in to see if that helps. Thanks.