a linux user can b addd in more than one group

Taking care of your Linux box.
hb
Lance Naik
Posts: 36
Joined: Sun Jul 13, 2003 12:45 pm
Location: internet

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

we
Lance Naik
Posts: 43
Joined: Wed Jan 21, 2004 6:36 pm
Location: Dubai, UAE
Contact:

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

lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

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

some applications, like nfs for example, will only see the first sixteen groups.

LinuxFreaK
Site Admin
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
Location: Karachi
Contact:

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

hb
Lance Naik
Posts: 36
Joined: Sun Jul 13, 2003 12:45 pm
Location: internet

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

lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

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.


Return to “Administration”

Who is online

Users browsing this forum: No registered users and 1 guest