LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 03-30-2007, 10:34 AM   #1
apocolpse
Member
 
Registered: Oct 2004
Distribution: Fedora Core 4
Posts: 91

Rep: Reputation: 15
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:501hes

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 ?
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 03-31-2007, 09:22 PM   #2
ranger_nemo
Senior Member
 
Registered: Feb 2003
Location: N'rn WI -- USA
Distribution: Kubuntu 8.04, ClarkConnect 4
Posts: 1,142

Rep: Reputation: 47
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.
 
Old 04-05-2007, 07:40 PM   #3
apocolpse
Member
 
Registered: Oct 2004
Distribution: Fedora Core 4
Posts: 91

Original Poster
Rep: Reputation: 15
Can you do this without rebooting ?
 
Old 04-07-2007, 09:35 PM   #4
ranger_nemo
Senior Member
 
Registered: Feb 2003
Location: N'rn WI -- USA
Distribution: Kubuntu 8.04, ClarkConnect 4
Posts: 1,142

Rep: Reputation: 47
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.
 
Old 04-10-2007, 09:53 PM   #5
apocolpse
Member
 
Registered: Oct 2004
Distribution: Fedora Core 4
Posts: 91

Original Poster
Rep: Reputation: 15
ah .... ok thanks guys. What about doing this without ending the current session ... ??
 
Old 07-08-2007, 09:06 AM   #6
dggoldst
LQ Newbie
 
Registered: Mar 2006
Posts: 12

Rep: Reputation: 0
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!
 
Old 09-20-2007, 05:49 PM   #7
dggoldst
LQ Newbie
 
Registered: Mar 2006
Posts: 12

Rep: Reputation: 0
anybody know?
 
Old 09-20-2007, 10:15 PM   #8
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,311

Rep: Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040
man newgrp
 
2 members found this post helpful.
Old 06-27-2011, 07:02 AM   #9
ajarmoniuk
LQ Newbie
 
Registered: Aug 2005
Posts: 2

Rep: Reputation: 0
only way I'm aware of:

su - $USER
 
  


Reply

Tags
group, permissions, user


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to list user in Linux box, add an user to a group! steady_lfcfan Linux - Newbie 12 01-27-2013 02:14 PM
how to load /etc/group settings without exiting session? fobster Linux - Newbie 4 09-14-2006 09:26 PM
Force group membership reload? humbletech99 Linux - General 2 06-03-2006 05:02 AM
Tomcat reload servlet is very slow, but reload jsp is fast and good? gsbarry Programming 2 04-28-2006 10:34 PM
User and Group Admin: How to tell Who is in What group? Akhran Linux - Newbie 1 11-13-2005 12:16 AM


All times are GMT -5. The time now is 08:26 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration