a linux user can b addd in more than one group

Taking care of your Linux box.

a linux user can b addd in more than one group

Postby hb » Fri Jan 30, 2004 12:52 pm

Salaam.

Is it possible to add user in more than one group

guest:x:1024:1025::/home/guest:/bin/bash

like that...
guest:x:1024:1025:1024::/home/guest:/bin/bash


tc.
AH.
Never be afraid to try something new. Remember, amateurs built the ark; professionals built the Titanic. -- Anonymous
hb
Lance Naik
 
Posts: 36
Joined: Sun Jul 13, 2003 12:45 pm
Location: internet

Postby we » Fri Jan 30, 2004 3:24 pm

Dear hb,
Assalam-O-Alaikum,

using
#usermod -G groupname
u can add as much groups as u want but all will be secondary groups coz primary group will be only one

Ejaz Khalid Farooqui
Regards
EKF
+971 50 7861136
we
Lance Naik
 
Posts: 43
Joined: Wed Jan 21, 2004 6:36 pm
ICQ: 32164473
WLM: ekfarooqui@msn.com
Yahoo Messenger: ekfarooqui@yahoo.com
Location: Dubai, UAE

Postby lambda » Fri Jan 30, 2004 4:15 pm

some applications, like nfs for example, will only see the first sixteen groups.
lambda
Major General
 
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Website: http://www.hungry.com/~fn/
Location: Lahore

Re:

Postby LinuxFreaK » Fri Jan 30, 2004 11:45 pm

Dear hb,
Salam,

[root@tandoori root]# id root
uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel)
[root@tandoori root]#

Best Regards.
Farrukh Ahmed
LinuxFreaK
Site Admin
 
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
ICQ: 82075802
Website: http://www.linuxpakistan.net/wiki/index.php?pagename=LinuxFreak
WLM: f4fahmed@hotmail.com
Yahoo Messenger: f4fahmed@yahoo.com
AOL: linuxpakistan@aol.com
Location: Karachi

Postby hb » Sat Jan 31, 2004 2:40 pm

[Salaam]


thnx. [at the instant i was in hotwater later i found tht myself, thx all guys for ur time.]

usermode -G
adds this user to another group?
one by one, rite? [ i assume yes :) ]

and to act as diff grp user one havto chgrp ?
or just work as its the way it is workign, it will get the rights of appropriate gropus automatically when required by some programs...
[like in windws].


tc all,
AH.
Never be afraid to try something new. Remember, amateurs built the ark; professionals built the Titanic. -- Anonymous
hb
Lance Naik
 
Posts: 36
Joined: Sun Jul 13, 2003 12:45 pm
Location: internet

Postby lambda » Sun Feb 01, 2004 2:41 pm

hb wrote:usermode -G
adds this user to another group?
one by one, rite? [ i assume yes :) ]


you know, there's nothing wrong with reading man pages. you can specify multiple groups with the -G argument.
lambda
Major General
 
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Website: http://www.hungry.com/~fn/
Location: Lahore


Return to “%s” Administration

Who is online

Users browsing this forum: No registered users and 1 guest

cron