LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-03-2009, 10:25 AM   #1
gearoid_murphy
Member
 
Registered: Mar 2006
Location: Ireland
Distribution: Debian Etch
Posts: 72

Rep: Reputation: 18
is there a /etc/group cache?


Hello,

can anybody tell me if there is a group cache, I ask this because I have just updated my group membership using usermod, specifically, in a root shell, I have granted myself access to the "disk" group on my machine, like so: "usermod -G dialout,audio,video,games,wheel,disk gmurphy"

Still as root, I validate with the command: "groups gmurphy", producing this output: "gmurphy disk dialout audio video games wheel".

So far, so good, but when I revert back to a normal shell and use the command: "groups", the output indicates that I have not been placed in the "disk" group: "gmurphy dialout audio video games wheel"

In the same shell, when I explicitly specify my username with the groups command like so: "groups gmurphy", it gives the correct output: "gmurphy disk dialout audio video games wheel"

The program that requires access to the disk group is still not functioning so it must be using the faulty information as well.


I have run into this problem before but I was in a hurry and just rebooted the machine (i'll probably do the same thing now ;-) ) but there must be a solution for this, does anyone know?
 
Old 08-03-2009, 10:37 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980
Yes, there is a cache, if you're running the nscd server, BUT groups are assigned when an environment starts, and don't change outside of the environment that changes one until a new one is started. So you're seeing correct behaviour, just log out and in again.
 
  


Reply


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
openSUSE 10: Samba failed to create the cache directory in /var/cache mianmajidali Linux - Server 0 05-09-2008 02:00 AM
cache folder like /var/cache/apt/packages on Debian Shaddy SUSE / openSUSE 0 08-13-2006 10:02 AM
Ram wiht suse, cache Disk cache??? fadelhomsi Linux - Newbie 2 02-05-2006 11:29 PM
Error: Caching enabled and local cache: //var/cache/yum/base/primary.xml.gz does... dr_zayus69 Linux - Software 2 07-06-2005 04:32 AM
Group Admin, Group Root, or God over Group crickett Linux - General 5 07-12-2004 04:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:30 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration