LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 09-19-2007, 12:54 AM   #16
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654

During the VirtualBox installation. The instructions in the dialog even say that you need to logout after adding yourself to the vboxusers group.

Last edited by jschiwal; 09-19-2007 at 11:29 AM.
 
Old 09-19-2007, 12:17 PM   #17
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 231Reputation: 231Reputation: 231
Problem Summary

  1. Does anyone disagree that logging in is the key act to getting a newly added group recognized? It does not matter whether you want this group recognized w/in a tty, Xterm, Desktop Environment, or Window Manager -- you must log in after being added to a group in order to exercise that group's privileges.

  2. No one knows if there is way to "reload" the /etc/group info. w/o logging out & logging back in. This is analogous to daemons, e.g. dnsmasq, that can be made to reload their config files w/o having to be shut down & restarted, let alone needing a full re-boot of the whole OS.

  3. OP, myself, & others find this very inconvenient.
 
Old 09-20-2007, 01:48 AM   #18
Bernard Swiss
LQ Newbie
 
Registered: Sep 2007
Location: Just outside Vancouver, Canada
Distribution: Debian (for now)
Posts: 25

Original Poster
Rep: Reputation: 15
I'd say that's an excellent summary.
 
Old 09-20-2007, 05:10 AM   #19
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 231Reputation: 231Reputation: 231
Now, can anyone give us a solution, or explain why one is not possible? And I mean impossible, as opposed to not available or not convenient.
 
Old 09-21-2007, 08:10 AM   #20
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 13.1 / 12.3_64-KDE, Ubuntu 14.04, Fedora 20, Mint 17, Chakra
Posts: 3,675

Rep: Reputation: Disabled
Well, I can't as I'm no expert. I just have that nagging suspicion, that it is possible.

Here http://www.tldp.org/LDP/abs/html/system.html there is something about "newgrp" and "chgrp". Possibly more about the .bashrc(s) can be found in the rest of the manual.

Probably a stupid question: Did you try to "export $GROUPS" so that the new groups is made available system wide, or is that a different mechanism...?
 
Old 09-23-2007, 08:25 AM   #21
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 231Reputation: 231Reputation: 231
Problem Summary Clarification

Although I included "tty, Xterm" in my summary for the sake of completeness, the real problem, at least for me, is w/ the GUI's, where logging out & back in is real problem: time consuming & the risks losing session info -- what web pages & what files are open in which work spaces -- that sort of thing, not to mention losing unsaved data.

We have discussed some relatively painless solutions for tty's & Xterm's. My favorite is "[sudo] su <current_user>". I believe it does not pass the current command history through; however, that can be cured by (a preceding) "history -w".

I don't use screen, so I have no idea what its problems w/ new groups might be. Given that it allows more complicated tty/Xterm sessions, this might be analogous to the GUI problem.


FWIW, I don't think that exporting $GROUPS will work, because it gets its info from /etc/group at log in.
 
  


Reply

Tags
bash, groups, login, shell


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
How to automatically add smb user when unix user added Winanjaya Linux - Newbie 3 01-07-2007 11:17 AM
New Volume Group Doesnt Show added Hard Drive shawnbishop Linux - Hardware 8 08-25-2006 03:45 AM
bash won't recognise "make"command suse 9.1 whoops Linux - Newbie 1 08-12-2005 06:17 AM
reboot so user can access fs space limited by group recently added to? bdp Linux - General 4 09-27-2003 01:21 AM
bash to recognise CR/LF jhorvath Programming 2 12-04-2002 01:03 PM


All times are GMT -5. The time now is 07:33 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