Re: Samba: password for mapping network drives
Brian:
I had similar problems for a long time and was able to fix the problem
by specifying on the smbclient line user name, password, and workgroup
from which the password server is serving. For example, to mount W95
drives onto the Linux machine I give
smbclient \\\\machine_id\\service -U uid%passwd -W workgroup
On the W95 side, to "mount" a Linux drive onto the W95 machine
you must issue the mount command (see DOS or W95 docs if you can find
any). The entry is controlled by the settings in the /etc/smb.conf
file on the Linux machine. Below is a modified (for security) version
of my /etc/smb.conf file (comments welcomed from other samba users as
smb.conf is tricky)
[global]
announce as = Win95
client code page = 437
domain logons = no
hide dot files = no
local master = no
security = USER
wins server = iii.kkk.lll.mmm
wins proxy = no
wins support = no
printing = bsd
printcap name = /etc/printcap
load printers = yes
guest account = nobody
invalid users = root
hosts allow = iii.kkk.lll localhost
hosts equiv = /etc/hosts.equiv
log file = /dev/null
max log size = 10
debuglevel = 0
workgroup = workgroup
preferred master = no
os level = 0
server string = Samba %v running Linux on %h
browseable = yes
[homes]
comment = Home Directories
path = /home/%u
public = no
writable = yes
create mode = 0700
[cdrom]
comment = NEC Multispon 4X cd-rom
path = /mnt/cdrom
public = yes
writable = no
create mode = 0700
[printers]
comment = all printers
path = /tmp
print command = lpr -h -r -P%p %s
postscript = no
printable = yes
public = yes
--
/------------------------------------------------------------------\
|James D. Freels, P.E._i, Ph.D. |Phone: (423)576-8645 | | L | A |
|Oak Ridge National Laboratory |FAX: (423)574-9172 | H | I | L |
|Research Reactors Division |work e-m: fea@ornl.gov| F | N | P |
|P. O. Box 2008 |home e-m: fea@icx.net | I | U | H |
|Oak Ridge, Tennessee 37831-6392|world's best neutrons | R | X | A |
\------------------------------------------------------------------/
--
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
--
Unsubscribe? mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null
Reply to: