default group issue
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi folks,
I'm thinking Bug#166718 (add initial user to useful groups).
This bug looks be rejected by maintainer, but we know many novice
users complain us 'why can't I play sound? / use CD-ROM / access my
modem / blah, blah...'. Sigh.
Modifying shadow is rejected currently, but how about to support this
feature by base-config passwd menu?
Here is my proposal patch. Any comments are welcome.
- --
Kenshi Muto
kmuto@debian.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 <http://mailcrypt.sourceforge.net/>
iEYEARECAAYFAkBnkxMACgkQQKW+7XLQPLFa6QCeJW+PWsesRwMJ0pepCxQ1TgNf
PWMAnjFsM/GRmml8biBVtci9mSx+xu88
=yTNm
-----END PGP SIGNATURE-----
+++ lib/menu/passwd 29 Mar 2004 02:59:13 -0000
@@ -1,7 +1,19 @@
#!/bin/sh -e
# Password setup is done by the passwd package.
if [ "$1" = new ]; then
- exec dpkg-reconfigure --unseen-only --default-priority passwd
+ dpkg-reconfigure --unseen-only --default-priority passwd
else
- exec dpkg-reconfigure --default-priority passwd
+ dpkg-reconfigure --default-priority passwd
+fi
+
+# Set default user group
+. /usr/share/debconf/confmodule
+db_version 2.0
+db_get passwd/username
+if [ -n "$RET" ]; then
+ adduser $RET audio
+ adduser $RET cdrom
+ adduser $RET dialout
+ adduser $RET floppy
+ adduser $RET video
fi
Reply to: