LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 01-14-2010, 06:00 PM   #1
williamhomanchun
LQ Newbie
 
Registered: Apr 2008
Posts: 17

Rep: Reputation: 0
Does it have way to temporay remove a unix group in one of the linux window


Hi all,

Does anyone know a way to temporary remove a unix group from only
one linux window.

ie. for example if I have groups as following.

%groups
group1 group2 group3 group4

Does it have a linux command to run to tempoary remove the group
permisson of one of the group, let say group1

then afterward, when I run the groups command I will not have the
group permission, group1 on this window

%groups
group2 group3 group4


thanks
William
 
Old 01-14-2010, 08:04 PM   #2
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.6, Centos 5.10
Posts: 16,324

Rep: Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041
usermod : http://linux.die.net/man/8/usermod

[quote]
If the user is currently a member of a group which is not listed, the user will be removed from the group.
[/code]
using the -G option
 
  


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
local Unix user's group odiliko Solaris / OpenSolaris 2 06-18-2007 12:20 PM
Southern Utah Unix Users Group (SU^3G) chienpo Linux User Groups (LUG) 0 05-16-2006 02:08 AM
do you guys use unix group? servnov Linux - General 2 12-22-2005 03:39 PM
How to list/remove the "package group" in RedHat linux ES 3.0? ajegu Linux - Software 1 06-25-2004 01:12 PM


All times are GMT -5. The time now is 06:55 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration