![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
| Defaults number of users and Groups | tirupathiraju_t | SUN Solaris | 2 | 06-06-2009 09:09 AM |
| users and groups | sammet | UNIX for Dummies Questions & Answers | 1 | 12-06-2007 11:52 AM |
| Removing user from multiple groups via command line | jquizon62 | SUN Solaris | 1 | 10-28-2004 12:56 PM |
| listing users and groups | jalburger | Linux | 2 | 06-16-2004 12:37 PM |
| Users and groups | rsanz | Security | 2 | 08-05-2002 02:46 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Removing users from groups
How do I remove a user from a group? I'm using the usermod command but its not working.
I have a user "abc" who is a member of the groups root and other. I'm trying to remove him from the group "other" (using CLI) which is his secondary group but it's not working. How do I do this? Is there any other command that I am supposed to use instead of usermod?? |
|
||||
|
Well, it's not working. That's why I ended up posting it here!! Let me rephrase my doubt. I don't want make the user a member of any secondary group. He should continue to be a member of the primary group but I want to delete him from his secondary group. Usermod is not working.
|
|
||||
|
Hi! Yes thats right i thinks you are missing /etc/group other wise go try with Chmode --help for list of multiple commands you may perform.
|
|
||||
|
Hey jlliagre,
I saw that the first time you posted. Two issues: 1. I'm trying to find out if I can do it using usermod. 2. I have no clue how to edit the /etc/group to remove a user from there. The entry in the file is [other::1:] So, here I am scratching my head how to edit that and remove him from the group!! ---------- Post updated at 03:50 PM ---------- Previous update was at 03:45 PM ---------- In case if my command worked and removed the user from the group, why is it still showing the group 'other' when I say [groups user]??? I'm totally lost!! ---------- Post updated at 07:32 PM ---------- Previous update was at 03:50 PM ---------- Guys, Thanks for your support and all the suggestions. The user "was" removed from the group but it was only updated after reboot. I think I'll give it a break before I start to think why I needed a reboot!! ---------- Post updated at 07:33 PM ---------- Previous update was at 07:32 PM ---------- Guys, Thanks for your support and all the suggestions. The user "was" removed from the group but it was only updated after reboot. I think I'll give it a break before I start to think why I needed a reboot!! |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|