Bug#473179: libuuid should use useradd/groupadd
On Fri, Mar 28, 2008 at 11:14:04PM -0400, Theodore Tso wrote: I will gladly accept a patch which manually parses adduser.conf and passes said information to useradd, but I don't care enough to change it. In my mind, the fact that a required package is dragging in libuuid1, and we don't want to effectively promote adduser to required is enough of a justification to override the normal should recommendation in debian-policy. It is, after all a should, not a must. - Ted Okay. My problem is that the uid/gid allocation policy of useradd is quite broken. It takes the highest uid in the target range, adds 1, and uses that. I have configured adduser not to use uids between 500 and 1000, and useradd inevitably uses IDs in that range. Either using adduser if its installed or reading adduser.conf if it exists would solve my problem. I'll send a patch for the latter in a moment. Thanks, -- Michael Spang -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#473179: libuuid should use useradd/groupadd
Package: libuuid1 Version: 1.40.2-1+lenny1 Severity: important The postinst uses useradd to add a user/group. Policy section 9.2.2 says: Packages which need a user or group, but can have this user or group allocated dynamically and differently on each system, should use adduser --system to create the group and/or user. adduser will check for the existence of the user or group, and if necessary choose an unused id based on the ranges specified in adduser.conf. Using useradd directly will ignore any user tuning of the ranges used in adduser.conf. Thanks. Michael Spang -- System Information: Debian Release: lenny/sid APT prefers testing APT policy: (500, 'testing'), (250, 'unstable'), (250, 'stable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.25-0-amd64 (SMP w/2 CPU cores) Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages libuuid1 depends on: ii libc6 2.7-6 GNU C Library: Shared libraries libuuid1 recommends no packages. -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]