The Samba-Bugzilla – Attachment 960 Details for
Bug 2330
Don't use /dev/null as home directory in the documentation
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Replace /dev/null by /var/lib/nobody
no_dev_null.diff (text/plain), 5.79 KB, created by
Lars Müller
on 2005-02-09 13:31:59 UTC
(
hide
)
Description:
Replace /dev/null by /var/lib/nobody
Filename:
MIME Type:
Creator:
Lars Müller
Created:
2005-02-09 13:31:59 UTC
Size:
5.79 KB
patch
obsolete
>Index: trunk/smbdotconf/logon/addmachinescript.xml >=================================================================== >--- trunk/smbdotconf/logon/addmachinescript.xml (revision 354) >+++ trunk/smbdotconf/logon/addmachinescript.xml (working copy) >@@ -16,5 +16,5 @@ > </description> > > <value type="default"/> >-<value type="example">/usr/sbin/adduser -n -g machines -c Machine -d /dev/null -s /bin/false %u</value> >+<value type="example">/usr/sbin/adduser -n -g machines -c Machine -d /var/lib/nobody -s /bin/false %u</value> > </samba:parameter> >Index: trunk/Samba-HOWTO-Collection/FastStart.xml >=================================================================== >--- trunk/Samba-HOWTO-Collection/FastStart.xml (revision 354) >+++ trunk/Samba-HOWTO-Collection/FastStart.xml (working copy) >@@ -890,7 +890,7 @@ > <smbconfoption><name>delete group script</name><value>/usr/sbin/groupdel %g</value></smbconfoption> > <smbconfoption><name>add user to group script</name><value>/usr/sbin/usermod -G %g %u</value></smbconfoption> > <smbconfoption><name>add machine script</name><value>/usr/sbin/useradd -s /bin/false \</value></smbconfoption> >-<member><parameter> -d /dev/null %u</parameter></member> >+<member><parameter> -d /var/lib/nobody %u</parameter></member> > <smbconfcomment>Note: The following specifies the default logon script.</smbconfcomment> > <smbconfcomment>Per user logon scripts can be specified in the user account using pdbedit </smbconfcomment> > <smbconfoption><name>logon script</name><value>scripts\logon.bat</value></smbconfoption> >Index: trunk/Samba-HOWTO-Collection/DomainMember.xml >=================================================================== >--- trunk/Samba-HOWTO-Collection/DomainMember.xml (revision 354) >+++ trunk/Samba-HOWTO-Collection/DomainMember.xml (working copy) >@@ -200,7 +200,7 @@ > <indexterm><primary>useradd</primary></indexterm> > <indexterm><primary>vipw</primary></indexterm> > <screen> >-&rootprompt;<userinput>/usr/sbin/useradd -g machines -d /dev/null -c <replaceable>"machine nickname"</replaceable> \ >+&rootprompt;<userinput>/usr/sbin/useradd -g machines -d /var/lib/nobody -c <replaceable>"machine nickname"</replaceable> \ > -s /bin/false <replaceable>machine_name</replaceable>$ </userinput> > > &rootprompt;<userinput>passwd -l <replaceable>machine_name</replaceable>$</userinput> >@@ -378,7 +378,7 @@ > <para><smbconfblock> > <smbconfsection>[global]</smbconfsection> > <smbconfcomment><...remainder of parameters...></smbconfcomment> >-<smbconfoption><name>add machine script</name><value>/usr/sbin/useradd -d /dev/null -g 100 \</value></smbconfoption> >+<smbconfoption><name>add machine script</name><value>/usr/sbin/useradd -d /var/lib/nobody -g 100 \</value></smbconfoption> > <member><parameter> -s /bin/false -M %u</parameter></member> > </smbconfblock></para> > >Index: trunk/Samba-Guide/Chap05-500UserNetwork.xml >=================================================================== >--- trunk/Samba-Guide/Chap05-500UserNetwork.xml (revision 354) >+++ trunk/Samba-Guide/Chap05-500UserNetwork.xml (working copy) >@@ -957,7 +957,7 @@ > <smbconfoption><name>add group script</name><value>/usr/sbin/groupadd '%g'</value></smbconfoption> > <smbconfoption><name>delete group script</name><value>/usr/sbin/groupdel '%g'</value></smbconfoption> > <smbconfoption><name>add user to group script</name><value>/usr/sbin/usermod -G '%g' '%u'</value></smbconfoption> >-<smbconfoption><name>add machine script</name><value>/usr/sbin/useradd -s /bin/false -d /dev/null '%u'</value></smbconfoption> >+<smbconfoption><name>add machine script</name><value>/usr/sbin/useradd -s /bin/false -d /var/lib/nobody '%u'</value></smbconfoption> > <smbconfoption><name>preferred master</name><value>Yes</value></smbconfoption> > <smbconfoption><name>wins support</name><value>Yes</value></smbconfoption> > <smbconfoption><name>include</name><value>/etc/samba/dc-common.conf</value></smbconfoption> >Index: trunk/Samba-Guide/Chap03-TheSmallOffice.xml >=================================================================== >--- trunk/Samba-Guide/Chap03-TheSmallOffice.xml (revision 354) >+++ trunk/Samba-Guide/Chap03-TheSmallOffice.xml (working copy) >@@ -665,7 +665,7 @@ > <smbconfoption><name>delete group script</name><value>/usr/sbin/groupdel '%g'</value></smbconfoption> > <smbconfoption><name>add user to group script</name><value>/usr/sbin/usermod -G '%g' '%u'</value></smbconfoption> > <smbconfoption><name>add machine script</name><value>/usr/sbin/useradd \</value></smbconfoption> >-<member><parameter>-s /bin/false -d /dev/null '%u'</parameter></member> >+<member><parameter>-s /bin/false -d /var/lib/nobody '%u'</parameter></member> > <smbconfoption><name>logon script</name><value>scripts\login.bat</value></smbconfoption> > <smbconfoption><name>logon path</name><value> </value></smbconfoption> > <smbconfoption><name>logon drive</name><value>X:</value></smbconfoption> >@@ -751,7 +751,7 @@ > delete group script = /usr/sbin/groupdel '%g' > add user to group script = /usr/sbin/usermod -G '%g' '%u' > add machine script = /usr/sbin/useradd >- -s /bin/false -d /dev/null '%u' >+ -s /bin/false -d /var/lib/nobody '%u' > logon script = scripts\logon.bat > logon path = > logon drive = X: >Index: trunk/Samba-Guide/Chap04-SecureOfficeServer.xml >=================================================================== >--- trunk/Samba-Guide/Chap04-SecureOfficeServer.xml (revision 354) >+++ trunk/Samba-Guide/Chap04-SecureOfficeServer.xml (working copy) >@@ -1924,7 +1924,7 @@ > delete group script = /usr/sbin/groupdel %g > add user to group script = /usr/sbin/usermod -G %g %u > add machine script = /usr/sbin/useradd \ >- -s /bin/false -d /dev/null %u >+ -s /bin/false -d /var/lib/nobody %u > shutdown script = /var/lib/samba/scripts/shutdown.sh > abort shutdown script = /sbin/shutdown -c > logon script = scripts\logon.bat
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 2330
: 960