Bug#346234: samba-common: example command for the "add machine script" option do not work on Debian
Package: samba-common Version: 3.0.14a-3sarge1 Severity: minor Here is the example command for the "add machine script" option in smb.conf manpage : add machine script = /usr/sbin/adduser -n -g machines -c Machine -d /var/lib/nobody -s /bin/false %u It do not work for two reasons : 1. Unlike Red Hat systems, adduser is not useradd , and these parameters are for useradd. 2. the option "-n" do not exist for useradd ( neither for adduser ) Thanks for the good work. -- System Information: Debian Release: 3.1 Architecture: i386 (i686) Kernel: Linux 2.4.27-2-686 Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15) Versions of packages samba-common depends on: ii debconf1.4.30.13 Debian configuration management sy ii libc6 2.3.2.ds1-22 GNU C Library: Shared libraries an ii libcomerr2 1.37-2sarge1 common error description library ii libkrb53 1.3.6-2sarge2 MIT Kerberos runtime libraries ii libldap2 2.1.30-8 OpenLDAP libraries ii libpam-modules 0.76-22 Pluggable Authentication Modules f -- debconf information: * samba-common/encrypt_passwords: true * samba-common/dhcp: false * samba-common/workgroup: INTERNET samba-common/codepage: samba-common/character_set: samba-common/do_debconf: true -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#346234: samba-common: example command for the "add machine script" option do not work on Debian
tags 346234 confirmed thanks > Here is the example command for the "add machine script" option in smb.conf > manpage : > > add machine script = /usr/sbin/adduser -n -g machines -c Machine -d > /var/lib/nobody -s /bin/false %u > > It do not work for two reasons : > 1. Unlike Red Hat systems, adduser is not useradd , and these parameters > are for useradd. > 2. the option "-n" do not exist for useradd ( neither for adduser ) Seems right. I think that our example should be reverted to useradd which is more likely to be installed on all systems than adduser (useradd comes with passwd, which was "virtually Essential" up to recently and which we could soon turn into Essential). Moreover, this would leave the example in Debian as close as possible to genuine installs. I don't know what the "-n" option is intended for, though. The "-d" parameter should also be changed as /var/lib/nobody does not exist on Debian systems (Steve, advice? /nonexistent just like the "nobody" account?) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#346234: samba-common: example command for the "add machine script" option do not work on Debian
On Fri, Jan 06, 2006 at 06:15:24PM +0100, Christian Perrier wrote: > > Here is the example command for the "add machine script" option in smb.conf > > manpage : > > add machine script = /usr/sbin/adduser -n -g machines -c Machine -d > > /var/lib/nobody -s /bin/false %u > > It do not work for two reasons : > > 1. Unlike Red Hat systems, adduser is not useradd , and these parameters > > are for useradd. > > 2. the option "-n" do not exist for useradd ( neither for adduser ) > Seems right. > I think that our example should be reverted to useradd which is more > likely to be installed on all systems than adduser (useradd comes with > passwd, which was "virtually Essential" up to recently and which we > could soon turn into Essential). > Moreover, this would leave the example in Debian as close as possible > to genuine installs. > I don't know what the "-n" option is intended for, though. > The "-d" parameter should also be changed as /var/lib/nobody does not > exist on Debian systems (Steve, advice? /nonexistent just like the > "nobody" account?) IMHO, it's better for such accounts to have a real, non-writable home directory. Perhaps /var/lib/samba? -- Steve Langasek Give me a lever long enough and a Free OS Debian Developer to set it on, and I can move the world. [EMAIL PROTECTED] http://www.debian.org/ signature.asc Description: Digital signature
Bug#346234: samba-common: example command for the "add machine script" option do not work on Debian
The "-n" option is Red Hat specific. From the manpage : -n A group having the same name as the user being added to the system will be created by default. This option will turn off this Red Hat Linux specific behavior. When this option is used, users by default will be placed in whatever group is specified in /etc/default/ useradd. If no default group is defined, group 1 will be used. /var/lib/samba seems a good option for machine account. Thanks. Le 7 janv. 06 à 08:53, Steve Langasek a écrit : On Fri, Jan 06, 2006 at 06:15:24PM +0100, Christian Perrier wrote: Here is the example command for the "add machine script" option in smb.conf manpage : add machine script = /usr/sbin/adduser -n -g machines -c Machine - d /var/lib/nobody -s /bin/false %u It do not work for two reasons : 1. Unlike Red Hat systems, adduser is not useradd , and these parameters are for useradd. 2. the option "-n" do not exist for useradd ( neither for adduser ) Seems right. I think that our example should be reverted to useradd which is more likely to be installed on all systems than adduser (useradd comes with passwd, which was "virtually Essential" up to recently and which we could soon turn into Essential). Moreover, this would leave the example in Debian as close as possible to genuine installs. I don't know what the "-n" option is intended for, though. The "-d" parameter should also be changed as /var/lib/nobody does not exist on Debian systems (Steve, advice? /nonexistent just like the "nobody" account?) IMHO, it's better for such accounts to have a real, non-writable home directory. Perhaps /var/lib/samba? -- Steve Langasek Give me a lever long enough and a Free OS Debian Developer to set it on, and I can move the world. [EMAIL PROTECTED] http:// www.debian.org/
Bug#346234: samba-common: example command for the "add machine script" option do not work on Debian
tags 346234 pending thanks Quoting Renaud Duhaut ([EMAIL PROTECTED]): > The "-n" option is Red Hat specific. > From the manpage : > -n > A group having the same name as the user being added to the system > will be created by default. This option will turn off this Red Hat > Linux specific behavior. When this option is used, users by default > will be placed in whatever group is specified in /etc/default/ > useradd. If no default group is defined, group 1 will be used. > > /var/lib/samba seems a good option for machine account. I've added a new patch to the patch series, which changes smb.conf.5: Goal: Adapt example script to Debian Fixes: #346234 Status wrt upstream: Debian specific Index: samba-3.0.21a/docs/manpages/smb.conf.5 === --- samba-3.0.21a.orig/docs/manpages/smb.conf.5 2005-12-29 17:19:48.0 +0100 +++ samba-3.0.21a/docs/manpages/smb.conf.5 2006-01-07 17:44:20.210534570 +0100 @@ -450,7 +450,7 @@ Default: \fB\fIadd machine script\fR = \fR -Example: \fB\fIadd machine script\fR = /usr/sbin/adduser \-n \-g machines \-c Machine \-d /var/lib/nobody \-s /bin/false %u \fR +Example for Debian: \fB\fIadd machine script\fR = /usr/sbin/useradd \-g machines \-c Machine \-d /var/lib/samba \-s /bin/false %u \fR .TP add printer command (G) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]