![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Adding user to a group without SAM | paqman | HP-UX | 2 | 08-15-2007 04:05 AM |
| Adding a user to a group | TRUEST | UNIX for Dummies Questions & Answers | 5 | 11-14-2003 08:28 AM |
| User and Group Structure | dwchapman | UNIX for Dummies Questions & Answers | 1 | 04-01-2002 02:49 AM |
| user/group | sdharmap | UNIX for Dummies Questions & Answers | 2 | 03-08-2002 08:46 AM |
| User Group | errolg | UNIX for Dummies Questions & Answers | 1 | 01-03-2002 07:50 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
how can i add a user to a group
All,
How i can add a user to a group so that the user will ahve all permsion on that directory . (sys12 canusr and (sys12 pfw users i am having the .ssh in the directory /work/cn/ which has permision as drwx------ . My code is running as pfmgr . So when my code try to find the directory .ssh it fails with permision no permision to read . If i add canusr to my group pfmgr . Will my code will have permission to .ssh file ?? . Again how i add canusr to my group pfmgr . Please let me know . Thanks, Arun |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
check the "usermod" command, with "-g" option to add a primary group, and "-G" to add secondary group:
Code:
#usermod -g group username Regards Aladdi |
|
#3
|
||||
|
||||
|
Hello...
What is the difference between a primary and secondary group for an user? Thanks, Fernanda |
|
#4
|
|||
|
|||
|
Primary Versus Secondary Groups
One final note on groups is that it is important to understand the difference between the primary and secondary group. A user can only be a member of one primary group. The primary group is the group that any files they create will belong to by default. However, a user can be a member of multiple secondary groups. The primary group is the one that is listed in the /etc/passwd file along with the user's entry. Any other group that the user is a member of in /etc/group is considered to be a secondary group. |
|
#5
|
||||
|
||||
|
be a member of a secondary group means that this user will have same privileges that users in this group?
|
||||
| Google The UNIX and Linux Forums |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|