Installing Samba Linux/Windows networking
From NewbieDOC
--Chris Lale 10:53, 9 March 2006 (CET)
For background theory see http://searchopensource.techtarget.com/tip/1,289483,sid39_gci1138772,00.html
Contents |
1 In Win98
In control panel -> CLient for Microsoft Networks -> File and Print Sharing tick I want to be able to give others access to my files.
(Insert win98 CD when asked and reboot after files are installed.)
2 In Debian
install samba etc
choose encrypted passwords choose to create samba password database (add passwords later using smbpasswd)
smbpasswd pw ********
3 swat
By default, swat is not enabled. This has been done for security reasons. To enable swat you need to edit /etc/inetd.conf, uncomment the swat entry (usually at the end of the file), and then restart inetd. (Remove #<off># )
# /etc/init.d/inetd stop Stopping internet superserver: inetd. # /etc/init.d/inetd start Starting internet superserver: inetd. #
"http://localhost:901/".
Login as user root using the system root password.
username root pw ********
3.1 Check connection
In Win98 look in Network Neighbourhood Should see both Linux PC (eg Sempron) and Win98 PC (eg Win-notebook).
In Debian (commandline)
# smbclient -L win-notebook Password: Sharename Type Comment --------- ---- ------- IPC$ IPC Remote Inter Process Communication Server Comment --------- ------- Workgroup Master --------- ------- #
4 Share win98 drive C
4.1 In Win98
My Computer -> right-click drive C -> Sharing Shared As -> Share Name C Passwords -> Full Access Password -> normal-user-password
4.2 In Debian
$ LinNeighborhood
Edit -> Prefeneces -> Post Mount Tick Run File Manager after mounting nautilus --no-desktop --browser $MOUNTPOINT
Add -> Machine/Group/IP Address eg Win-notebook Double-click Win-notebook Double-click C (User password required, normal-user-name normal-user-password.)
5 Share Debian /home/*
5.1 In Debian
Set Samba passwords for users, keeping Windows usernames and passwords the same as Samba usernames and passwords.
# smbpasswd -a username
5.2 In win98
Contol Panel -> Users -> add user normal-user-name with password normal-user-password Start - logoff current user & login again as normal-user-name. Network Neighborhood -> double-click on name of Debian local host eg Sempron.
6 Share Debian printer
# adduser --system --disabled-password smbprint Adding system user `smbprint'... Adding new user `smbprint' (108) with group `nogroup'. Creating home directory `/home/smbprint'. The Samba configuration file is /etc/samba/smb.conf. The following is an example configuration file set up to use CUPS with the "smbprint" user: Pick relevant from these: [global] * printcap name = cups * printing = cups security = share [printers] * browseable = yes printable = yes public = yes create mode = 0700 * guest only = yes guest account = smbprint * path = /home/smbprint
6.1 CUPS
Now CUPS must be told to allow connections from other machines on the network. Add these lines to /etc/cups/cupsd.conf:
<Location /printers> AuthType None Order Deny,Allow Deny From None Allow From All </Location>
As in the Samba configuration, this configuration allows any computer to connect to your printers
Add printer to win98 and install driver.
Content is available under GNU Free Documentation License 1.2, unless otherwise stated.