user command problem !!!
Dear Friends ,
Can u plz give me the following answer : 1) In the following example : [root@rptsvr ~]# groups paul paul : alice sysadmin In the above example How can I understand , what is the primary group and secondary group of the user 'PAUL'. 2) If I make a change like following : "usermod -G mygroup paul" Then now, how can i undo this change ? |
1. In my opinion, the first one is the initial group (primary group, as you say)
2. No idea. I think you have to use "usermod -G <group_list> paul" once more time. |
1. Primary group for user paul is always paul. alice and sysadmin are supplementary groups.
2. By douing this you deleted user paul from alice and sysadmin groups, and added it to mygroup group. Linux don't remember your previous status, so you're not able to simply undo change - you should assign an old grouplist to user paul by hands. |
Quote:
|
All times are GMT -5. The time now is 05:36 AM. |