Datasheet

“main” (Installation and Administration) 2004/6/25 13:29 page 583 #609
i
i
i
i
i
i
i
i
24
Heterogenous Networks
Example 24.4: Setting up a Machine Account
useradd hostname\$
smbpasswd -a -m hostname
With the useradd command, a dollar sign is added. The command
smbpasswd inserts this automatically when the parameter -m is used.
The commented configuration example (/usr/share/doc/packages/
Samba/examples/smb.conf.SuSE) contains settings that automate this
task.
Example 24.5: Automated Setup of a Machine Account
add machine script = /usr/sbin/useradd -g machines \
-c "NT Machine Account" -d \
/dev/null -s /bin/false %m\$
To make sure Samba can execute this script correctly, choose a Samba
user with the required administrator permissions. To do so, select one user
and add it to the ntadmin group. After that, all users belonging to this
Linux group can be assigned Domain Admin status with the command:
net groupmap add ntgroup="Domain Admins" unixgroup=ntadmin
More information about this topic is provided in Chapter 12 of the Samba
HOWTO Collection, found in /usr/share/doc/packages/samba/
Samba-HOWTO-Collection.pdf.
583
SUSE LINUX Enterprise Server