[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: Re: How do I add a user to multiple groups?
From: Tito <farmatito () tiscali ! it>
Date: 2007-07-28 21:27:33
Message-ID: 200707282327.33710.farmatito () tiscali ! it
[Download RAW message or body]
On Saturday 28 July 2007 14:26:37 Dallas Clement wrote:
> Hello All,
>
> I'd like to use the busybox 'adduser' command to add a user to multiple
> groups. Can anyone show me how to do this?
>
> This is an example of what I would like the group file to look like
> afterward:
>
> dallas@debian:~/fs-images/common/etc$ cat group
> root::0:root
> bin:x:1:root,bin,daemon
> daemon:x:2:root,bin,daemon
> sys:x:3:root,bin
> tty:*:4:root,tty
> sshd:x:33:sshd
>
> As you can see, the 'root' user is a member of multiple groups.
>
> It would be nice if I could do something like this, but it does not
> work:
>
>adduser -h /root -g "root user" -s /bin/ash -G 0 -G 1 -G 2 -G 3 -G 4 root
Hi,
something like this should do the trick:
adduser -h /root -g "root user" -s /bin/ash root
addgroup root root <- this is probably not needed as it is the user's default group
addgroup root bin
addgroup root daemon
addgroup root sys
addgroup root tty
Ciao,
Tito
>
> Thanks,
> Dallas
_______________________________________________
busybox mailing list
busybox@busybox.net
http://busybox.net/cgi-bin/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic