Update to new newusers behavior:

* users are not added automatically to the list of supplementary groups
 * newusers use the same algorithm as useradd to define the new UIDs.
This commit is contained in:
nekral-guest
2008-03-09 01:59:59 +00:00
parent b53ea15a4d
commit bebb89c93b
29 changed files with 29 additions and 20 deletions

View File

@@ -39,4 +39,4 @@ users:x:100:
nogroup:x:65534:
crontab:x:101:
Debian-exim:x:102:
foo:x:65535:foo
foo:x:1000:

View File

@@ -39,3 +39,4 @@ users:*::
nogroup:*::
crontab:x::
Debian-exim:x::
foo:*::

View File

@@ -17,4 +17,4 @@ irc:x:39:39:ircd:/var/run/ircd:/bin/sh
gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
Debian-exim:x:102:102::/var/spool/exim4:/bin/false
foo:x:65535:65535:User Foo - Gecos Field::/bin/sh
foo:x:1000:1000:User Foo - Gecos Field::/bin/sh

View File

@@ -39,4 +39,4 @@ users:x:100:
nogroup:x:65534:
crontab:x:101:
Debian-exim:x:102:
foo:x:65535:foo
foo:x:4242:

View File

@@ -39,3 +39,4 @@ users:*::
nogroup:*::
crontab:x::
Debian-exim:x::
foo:*::

View File

@@ -17,4 +17,4 @@ irc:x:39:39:ircd:/var/run/ircd:/bin/sh
gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
Debian-exim:x:102:102::/var/spool/exim4:/bin/false
foo:x:4242:65535:User Foo - Gecos Field::/bin/sh
foo:x:4242:4242:User Foo - Gecos Field::/bin/sh

View File

@@ -39,4 +39,4 @@ users:x:100:
nogroup:x:65534:
crontab:x:101:
Debian-exim:x:102:
foo:x:4242:foo
foo:x:4242:

View File

@@ -39,3 +39,4 @@ users:*::
nogroup:*::
crontab:x::
Debian-exim:x::
foo:*::

View File

@@ -17,4 +17,4 @@ irc:x:39:39:ircd:/var/run/ircd:/bin/sh
gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
Debian-exim:x:102:102::/var/spool/exim4:/bin/false
foo:x:65535:4242:User Foo - Gecos Field::/bin/sh
foo:x:1000:4242:User Foo - Gecos Field::/bin/sh

View File

@@ -39,4 +39,4 @@ users:x:100:
nogroup:x:65534:
crontab:x:101:
Debian-exim:x:102:
foo:x:4242:foo
foo:x:4242:

View File

@@ -39,3 +39,4 @@ users:*::
nogroup:*::
crontab:x::
Debian-exim:x::
foo:*::

View File

@@ -39,4 +39,4 @@ users:x:100:
nogroup:x:65534:
crontab:x:101:
Debian-exim:x:102:
foo:x:4243:foo
foo:x:4243:

View File

@@ -39,3 +39,4 @@ users:*::
nogroup:*::
crontab:x::
Debian-exim:x::
foo:*::

View File

@@ -40,4 +40,4 @@ nogroup:x:65534:
crontab:x:101:
Debian-exim:x:102:
bar:x:1042:
foo:x:65535:foo
foo:x:1043:

View File

@@ -40,3 +40,4 @@ nogroup:*::
crontab:x::
Debian-exim:x::
bar:x::
foo:*::

View File

@@ -18,4 +18,4 @@ gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
Debian-exim:x:102:102::/var/spool/exim4:/bin/false
bar:x:1042:1042::/:/bin/false
foo:x:1042:65535:User Foo - Gecos Field::/bin/sh
foo:x:1042:1043:User Foo - Gecos Field::/bin/sh

View File

@@ -39,4 +39,4 @@ users:x:100:
nogroup:x:65534:
crontab:x:101:
Debian-exim:x:102:
bar:x:1043:foo
bar:x:1043:

View File

@@ -18,4 +18,4 @@ gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
Debian-exim:x:102:102::/var/spool/exim4:/bin/false
bar:x:1042:1043::/:/bin/false
foo:x:65535:1043:User Foo - Gecos Field::/bin/sh
foo:x:1043:1043:User Foo - Gecos Field::/bin/sh

View File

@@ -39,4 +39,4 @@ users:x:100:
nogroup:x:65534:
crontab:x:101:
Debian-exim:x:102:
foo:x:65535:foo
foo:x:1000:

View File

@@ -39,3 +39,4 @@ users:*::
nogroup:*::
crontab:x::
Debian-exim:x::
foo:*::

View File

@@ -17,4 +17,4 @@ irc:x:39:39:ircd:/var/run/ircd:/bin/sh
gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
Debian-exim:x:102:102::/var/spool/exim4:/bin/false
foo:x:65535:65535:User Foo - Gecos Field:/tmp/test-newusers:/bin/sh
foo:x:1000:1000:User Foo - Gecos Field:/tmp/test-newusers:/bin/sh

View File

@@ -39,4 +39,4 @@ users:x:100:
nogroup:x:65534:
crontab:x:101:
Debian-exim:x:102:
foo:x:65535:foo
foo:x:1000:

View File

@@ -39,3 +39,4 @@ users:*::
nogroup:*::
crontab:x::
Debian-exim:x::
foo:*::

View File

@@ -17,4 +17,4 @@ irc:x:39:39:ircd:/var/run/ircd:/bin/sh
gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
Debian-exim:x:102:102::/var/spool/exim4:/bin/false
foo:x:65535:65535:User Foo - Gecos Field:/tmp/test-newusers:/bin/sh
foo:x:1000:1000:User Foo - Gecos Field:/tmp/test-newusers:/bin/sh

View File

@@ -40,4 +40,4 @@ nogroup:x:65534:
crontab:x:101:
Debian-exim:x:102:
bar:x:1042:
foo:x:65535:foo
foo:x:1043:

View File

@@ -40,3 +40,4 @@ nogroup:*::
crontab:x::
Debian-exim:x::
bar:x::
foo:*::

View File

@@ -18,4 +18,4 @@ gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
Debian-exim:x:102:102::/var/spool/exim4:/bin/false
bar:x:1042:1042::/:/bin/false
foo:x:1042:65535:User Foo - Gecos Field::/bin/sh
foo:x:1042:1043:User Foo - Gecos Field::/bin/sh

View File

@@ -39,4 +39,4 @@ users:x:100:
nogroup:x:65534:
crontab:x:101:
Debian-exim:x:102:
bar:x:1043:foo
bar:x:1043:

View File

@@ -18,4 +18,4 @@ gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
Debian-exim:x:102:102::/var/spool/exim4:/bin/false
bar:x:1042:1043::/:/bin/false
foo:x:65535:1043:User Foo - Gecos Field::/bin/sh
foo:x:1043:1043:User Foo - Gecos Field::/bin/sh