Changeset 44 for trunk/samba/docs/manpages/smbpasswd.8
- Timestamp:
- Jun 29, 2007, 1:34:14 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/samba/docs/manpages/smbpasswd.8
r39 r44 22 22 smbpasswd - change a user's SMB password 23 23 .SH "SYNOPSIS" 24 .HP 1 025 \fBsmbpasswd\fR[-a] [-c <config file>] [-x] [-d] [-e] [-D debuglevel] [-n] [-r <remote machine>] [-R <name resolve order>] [-m] [-U username[%password]] [-h] [-s] [-w pass] [-W] [-i] [-L] [username]24 .HP 1 25 smbpasswd [-a] [-c <config file>] [-x] [-d] [-e] [-D debuglevel] [-n] [-r <remote machine>] [-R <name resolve order>] [-m] [-U username[%password]] [-h] [-s] [-w pass] [-W] [-i] [-L] [username] 26 26 .SH "DESCRIPTION" 27 27 .PP … … 35 35 .PP 36 36 By default (when run with no arguments) it will attempt to change the current user's SMB password on the local machine. This is similar to the way the 37 \fBpasswd(1)\fR 37 passwd(1) 38 38 program works. 39 \fB smbpasswd\fR 39 smbpasswd 40 40 differs from how the passwd program works however in that it is not 41 41 \fBsetuid root\fR … … 52 52 .PP 53 53 When run by root, smbpasswd allows new users to be added and deleted in the smbpasswd file, as well as allows changes to the attributes of the user in this file to be made. When run by root, 54 \fB smbpasswd\fR 54 smbpasswd 55 55 accesses the local smbpasswd file directly, thus enabling changes to be made even if smbd is not running. 56 56 .SH "OPTIONS" … … 100 100 .sp 101 101 If the smbpasswd file is in the 'old' format, then 102 \fB smbpasswd\fR 102 smbpasswd 103 103 will FAIL to enable the account. See 104 104 \fBsmbpasswd\fR(5) … … 126 126 file : 127 127 .sp 128 \fBnull passwords = yes\fR 128 null passwords = yes 129 129 .sp 130 130 This option is only available when running smbpasswd as root. … … 156 156 .RS 3n 157 157 .TP 3n 158 • 158 \(bu 159 159 \fBlmhosts\fR: 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 160 160 \fBlmhosts\fR(5) 161 161 for details) then any name type matches for lookup. 162 162 .TP 3n 163 • 163 \(bu 164 164 \fBhost\fR: Do a standard host name to IP address resolution, using the system 165 165 \fI/etc/hosts \fR, NIS, or DNS lookups. This method of name resolution is operating system depended for instance on IRIX or Solaris this may be controlled by the … … 167 167 file). Note that this method is only used if the NetBIOS name type being queried is the 0x20 (server) name type, otherwise it is ignored. 168 168 .TP 3n 169 • 169 \(bu 170 170 \fBwins\fR: Query a name with the IP address listed in the 171 171 \fIwins server\fR 172 172 parameter. If no WINS server has been specified this method will be ignored. 173 173 .TP 3n 174 • 174 \(bu 175 175 \fBbcast\fR: Do a broadcast on each of the known local interfaces listed in the 176 176 \fIinterfaces\fR … … 179 179 .IP "" 3n 180 180 The default order is 181 \fBlmhosts, host, wins, bcast\fR 181 lmhosts, host, wins, bcast 182 182 and without this parameter or any entry in the 183 183 \fBsmb.conf\fR(5) … … 202 202 .RS 3n 203 203 This option prints the help string for 204 \fB smbpasswd\fR, selecting the correct one for running as root or as an ordinary user.204 smbpasswd, selecting the correct one for running as root or as an ordinary user. 205 205 .RE 206 206 .PP … … 210 210 \fI/dev/tty\fR 211 211 (like the 212 \fBpasswd(1)\fR 212 passwd(1) 213 213 program does). This option is to aid people writing scripts to drive smbpasswd 214 214 .RE … … 228 228 -W 229 229 .RS 3n 230 \fBNOTE: \fR 230 NOTE: 231 231 This option is same as "-w" except that the password should be entered using stdin. 232 232 .sp … … 262 262 .PP 263 263 Since 264 \fBsmbpasswd\fR 264 smbpasswd 265 265 works in client-server mode communicating with a local smbd for a non-root user then the smbd daemon must be running for this to work. A common problem is to add a restriction to the hosts that may access the 266 \fB smbd\fR 266 smbd 267 267 running on the local machine by specifying either 268 268 \fIallow hosts\fR
Note:
See TracChangeset
for help on using the changeset viewer.