From 20967627378194121bc48bf387838b8bd7682478 Mon Sep 17 00:00:00 2001
From: Jelmer Vernooij
smbpasswd can also be used by a normal user to change their SMB password on remote machines, such as Windows NT Primary Domain - Controllers. See the (-r) and -r) and -U-U options below.
This option specifies that the username following should be added to the local smbpasswd file, with the - new password typed (type <Enter> for the old password). This + new password typed (type <Enter> for the old password). This option is ignored if the username following already exists in the smbpasswd file and it is treated like a regular change password command. Note that the default passdb backends require @@ -181,13 +177,13 @@ CLASS="FILENAME" >
This option specifies that the username following - should be disableddisabled in the local smbpasswd - file. This is done by writing a 'D''D' flag into the account control space in the smbpasswd file. Once this is done all attempts to authenticate via SMB using this username @@ -212,9 +208,9 @@ CLASS="REFENTRYTITLE" >
This option specifies that the username following - should be enabledenabled in the local smbpasswd file, if the account was previously disabled. If the account was not disabled this option has no effect. Once the account is enabled then @@ -240,11 +236,9 @@ CLASS="REFENTRYTITLE" >-D debuglevel
debugleveldebuglevel is an integer from 0 to 10. The default value if this parameter is not specified is zero.
This option allows a user to specify what machine they wish to change their password on. Without this parameter - smbpasswd defaults to the local host. The remote - machine name is the NetBIOS name of the SMB/CIFS server to contact to attempt the password change. This name is resolved into an IP address using the standard name resolution - mechanism in all programs of the Samba suite. See the -R - name resolve order parameter for details on changing this resolving mechanism.
The username whose password is changed is that of the - current UNIX logged on user. See the -U username-U username parameter for details on changing the password for a different username.
lmhosts
lmhosts: Lookup an IP
address in the Samba lmhosts file. If the line in lmhosts has
no name type attached to the NetBIOS name (see the
host
host: Do a standard host
name to IP address resolution, using the system
wins
wins: Query a name with
- the IP address listed in the wins serverwins server
parameter. If no WINS server has been specified this method
will be ignored.
bcast
bcast: Do a broadcast on
each of the known local interfaces listed in the
- interfacesinterfaces parameter. This is the least
reliable of the name resolution methods as it depends on the
target host being on a locally connected subnet.
This option may only be used in conjunction - with the -r-r option. When changing a password on a remote machine it allows the user to specify the user name on that machine whose password will be changed. It @@ -492,34 +474,28 @@ CLASS="COMMAND" --with-ldapsam option. The option. The -w-w switch is used to specify the password to be used with the ldap admin - dn. Note that the password is stored in the secrets.tdb and is keyed off - of the admin's DN. This means that if the value of ldap - admin dn ever changes, the password will need to be manually updated as well.
smbd running on the local machine by specifying either running on the local machine by specifying either allow - hosts or or deny hostsdeny hosts entry in the