LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (http://www.linuxquestions.org/questions/fedora-35/)
-   -   reload user/group settings (http://www.linuxquestions.org/questions/fedora-35/reload-user-group-settings-541911/)

apocolpse 03-30-2007 09:34 AM

reload user/group settings
 
I'm currently running core 6 on the 2.6.20 kernel, on gnome 2.16.3. I used the gui in system->administration->users and groups to add a group, and place users in that group. I gave the group permissions, rws,on the foler.
Now when i go to the command line, to edit a file in the folder i says permission denied

the group is there:

$ cat /etc/group | grep code
code:x:501:phes

but when i do and id I get..
$ id
uid=500(phes) gid=500(phes) groups=500(phes)

i'm guessing i need to reload user/group settings or something. how do I do that w/o rebooting ?

ranger_nemo 03-31-2007 08:22 PM

Logout and log-in again, and it should show you in the new group. I just did it and it worked here.

Be sure to chown and chmod any existing files in the directory, otherwise they might retain their original permissions/ownership. Unless you took care of that with a recursive (-R) chown/chmod on the directory. "ls -l" will list everything along with the owner/group/permissions.

apocolpse 04-05-2007 06:40 PM

Can you do this without rebooting ?

ranger_nemo 04-07-2007 08:35 PM

Yes.

I have KDE as my desktop environment. Just click the KMenu button, Logout, and End Current Session. It will log you out, restart X, and let you log-in again.

I'm sure GNOME and all the other GUIs have a similar process.

apocolpse 04-10-2007 08:53 PM

ah .... ok thanks guys. What about doing this without ending the current session ... ??

dggoldst 07-08-2007 08:06 AM

Quote:

Originally Posted by apocolpse
ah .... ok thanks guys. What about doing this without ending the current session ... ??

I'd be interested to know if this is possible as well!

dggoldst 09-20-2007 04:49 PM

anybody know?

chrism01 09-20-2007 09:15 PM

man newgrp

ajarmoniuk 06-27-2011 06:02 AM

only way I'm aware of:

su - $USER


All times are GMT -5. The time now is 02:53 AM.