/etc/group question


 
Thread Tools Search this Thread
Operating Systems Solaris /etc/group question
# 1  
Old 10-04-2005
/etc/group question

is there a O/S command in solaris 9 that adds a user to a group?
Or do you have to do it manually?
# 2  
Old 10-05-2005
Code:
root@jumpy # groups pressy
other
root@jumpy # usermod -g staff pressy
root@jumpy # groups pressy
staff
root@jumpy # usermod -G other pressy
root@jumpy # groups pressy
staff other
root@jumpy #

where g changes the primary group and G add new groups

gP
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

awk question in relation to finding "top 3" by group.

Hi, I have a file that contains 3 key element fields with the fourth being a total value, something along the lines of this "Site,Region,Town,Total" . What I need to be able to do is find out the top 3 totals by Site using an AWK program. In my efforts so far I have managed to create either a... (2 Replies)
Discussion started by: timberley
2 Replies

2. UNIX for Advanced & Expert Users

Group permissions question

I have a user who has had an id change. His old id was xl00 his new id b000999. Both id's are in group bauser. The user now cannot access his old files even though he is in the same group and permissions seem to be ok. See below, first 2 files he can't see, second two are no problem. ... (2 Replies)
Discussion started by: dw82199
2 Replies

3. Shell Programming and Scripting

need a one liner to grep a group info from /etc/group and use that result to search passwd file

/etc/group tiadm::345:mk789,po312,jo343,ju454,ko453,yx879,iy345,hn453 bin::2:root,daemon sys::3:root,bin,adm adm::4:root,daemon uucp::5:root /etc/passwd mk789:x:234:1::/export/home/dummy:/bin/sh po312:x:234:1::/export/home/dummy:/bin/sh ju454:x:234:1::/export/home/dummy:/bin/sh... (6 Replies)
Discussion started by: chidori
6 Replies

4. Shell Programming and Scripting

Merge group numbers and add a column containing group names

I have a file in the following format. Groups of data merge together and the group number is indicated above each group. 1 adrf dfgr dfg 2 dfgr dfgr 3 dfef dfr fd 4 fgrt fgr fgg 5 fgrt fgr (3 Replies)
Discussion started by: Lucky Ali
3 Replies

5. UNIX for Dummies Questions & Answers

Question: /etc/group

Hi Expert, I am newbies here. When I do cat /etc/group it will list example: cdrom:x:24 floppy:x:19 postfix:!:51 avahi:!:105 I can see the following: My question are as below: 1. why there is x sign, what is the meaning of that? 2. why there is ! sign, what is... (3 Replies)
Discussion started by: regmaster
3 Replies

6. UNIX for Dummies Questions & Answers

user & group read/write access question

folks; I created a new users on my SUSE box and i need to give this user/group a read write access to one specific folder. here's the details: - I created new user "funny" under group "users". - I need to give this user "funny" a read/write access to another directory that is owned by "root".... (3 Replies)
Discussion started by: Katkota
3 Replies

7. UNIX for Dummies Questions & Answers

group & user permission question

Folks; I'd like to create a group on my Linux box & add a few users to it. Is there a way to do so and restrict this group/users to have access to only one or directory trees? Let's say i need this group to only have a read write access to only these two directories /opt/Virtu & /fsn/comers ... (10 Replies)
Discussion started by: Katkota
10 Replies

8. UNIX for Dummies Questions & Answers

home directory & group in UNIX question

folks; I'm going to use LDAP on Solaris 10 to authenticate users, i have 3 questions, i'm hoping it can be possible: 1. when users login for the first time, Is there a way to auto create a home directory like "/home/"user_name" so we don't have to a create a home directory for every single... (3 Replies)
Discussion started by: Katkota
3 Replies

9. Solaris

newbie question on server spamming exchange group list.

At work we just reinstalled a new system and started scheduled backups. It is spamming all users through exchange with 'Superuser' email stating: 'x server doing down for unscheduled maintance'. Can be literally 10-20 super user email. At the moment we do not want to completely stop the email.... (1 Reply)
Discussion started by: pmoores
1 Replies
Login or Register to Ask a Question