How do I add a user to multiple groups?
Dallas Clement
dallas.a.clement at gmail.com
Sat Jul 28 12:26:37 UTC 2007
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 at 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
Thanks,
Dallas
More information about the busybox
mailing list