The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


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 !!

More UNIX and Linux Forum Topics You Might Find Helpful
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 07: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 07:46 AM
User Group errolg UNIX for Dummies Questions & Answers 1 01-03-2002 06:50 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-24-2008
Registered User
 

Join Date: Oct 2004
Posts: 227
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 .

(sys12nl:/work/cn/>) groups crcv1
canusr

and

(sys12nl:/work/cn/>) groups pfmgr
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
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 01-24-2008
Registered User
 

Join Date: Oct 2006
Posts: 78
check the "usermod" command, with "-g" option to add a primary group, and "-G" to add secondary group:
Code:
#usermod -g group username
or maybe you can edit the /etc/passwd if you know how to.

Regards
Aladdi
Reply With Quote
  #3 (permalink)  
Old 06-14-2008
ffpradella's Avatar
Registered User
 

Join Date: Jun 2008
Location: Sao Paulo - Brazil
Posts: 36
Question

Hello...

What is the difference between a primary and secondary group for an user?

Thanks,

Fernanda
Reply With Quote
  #4 (permalink)  
Old 06-15-2008
Registered User
 

Join Date: May 2008
Location: s'pore
Posts: 716
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.
Reply With Quote
  #5 (permalink)  
Old 06-15-2008
ffpradella's Avatar
Registered User
 

Join Date: Jun 2008
Location: Sao Paulo - Brazil
Posts: 36
Question

be a member of a secondary group means that this user will have same privileges that users in this group?
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 12:39 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0