LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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, 05: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, 07:04 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,360

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
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



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

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

All times are GMT -5. The time now is 09:34 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
Open Source Consulting | Domain Registration