ability to specify new GID with useradd on user creation
Peter Vrabec <[email protected]> Mon, 24 Oct 2005 09:58:16 -0400
| Newsgroups | gmane.linux.pld.shadow.general |
|---|---|
| Message-ID | <[email protected]> |
Hi all,
what do u think about this:
Description:
The customer needs to create specific unique GID's for users when added.
They would like a command line option to do so. This patch implements
the functionality so that the '-a' flag will request the GID creation
and assignment:
[root@testserver1 redhat]# useradd -u 1000 -a 1001 joeblow
[root@testserver1 redhat]# grep joeblow /etc/{passwd,group}
/etc/passwd:joeblow:x:1000:1001::/home/joeblow:/bin/bash
/etc/group:joeblow:x:1001:
[root@testserver1 redhat]# ls -l /home/ | grep joeblow
drwx------ 3 joeblow joeblow 4096 Mar 18 10:36 joeblow
[root@testserver1 redhat]# ls -ln /home/ | grep joeblow
drwx------ 3 1000 1001 4096 Mar 18 10:36 joeblow
I don't think u like it, neither do i. I just want to know upstream opinion.