The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Operating Systems > SUN Solaris
.
google unix.com



SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to use SFTP from command line without entering user and password Hangman2 UNIX for Advanced & Expert Users 7 03-07-2009 03:22 AM
Deny dba command to a user group!! masquerer UNIX for Dummies Questions & Answers 3 06-20-2007 11:58 AM
Removing user from multiple groups via command line jquizon62 SUN Solaris 1 10-28-2004 01:56 PM
smitty, remove user, remove directory as well.. yls177 UNIX for Dummies Questions & Answers 2 11-11-2002 02:43 AM
Can't delete the user from command line spavlov UNIX for Advanced & Expert Users 4 09-23-2002 10:38 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-08-2007
civic2005 civic2005 is offline
Registered User
  
 

Join Date: May 2005
Posts: 18
How to remove user from a group using command line

Hi,

Wanted to remove a user from a group , but no GUI , must use command line
  #2 (permalink)  
Old 05-08-2007
zazzybob's Avatar
zazzybob zazzybob is offline Forum Advisor  
Registered Geek
  
 

Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 2,100
You can use the -G option to usermod to specify a comma separated list of secondary groups you want the user to be a member of - i.e. include all their previous secondary group memberships excluding the group you want to remove them from.

I always just vi /etc/group directly. Far easier than specifying a list of secondary groups to usermod.

Cheers,
ZB
  #3 (permalink)  
Old 09-18-2008
jaghelp323 jaghelp323 is offline
Registered User
  
 

Join Date: Sep 2008
Posts: 3
Post

Its a good idea to change /etc/group file. But, the changes to this file doesnt get into effect immediately. For example, if root delete an user from a group, the user has to logout and login back to get the changes into effect.

Any suggestions for instant update of changes made??
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 05:31 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0