Installing Samba Linux/Windows networking
From NewbieDOC
- Chris Lale
- chrislale AT users DOT berlios DOT de
Go to NewbieDOC index
Revision History
Revision 1.0 | 9th March 2006 | Revised by Chris Lale | ||||||||||
Initial release. | ||||||||||||
| ||||||||||||
Revision 1.1 | 27th November 2007 | Revised by Chris Lale | ||||||||||
Reformatted for newbiedoc package. | ||||||||||||
These are some notes I made when I installed Samba in Debian Sarge. I hope that they may be helpful to anyone starting with Samba.
1 BackgroundFor background theory see http://searchopensource.techtarget.com/tip/1,289483,sid39_gci1138772,00.html 2 In Win98In 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.)
3 In Debianinstall samba etc choose encrypted passwords choose to create samba password database (add passwords later using smbpasswd) smbpasswd pw ******** 4 swatBy 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 ******** 4.1 Check connectionIn 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 --------- ------- #
5 Share win98 drive C5.1 In Win98My Computer -> right-click drive C -> Sharing Shared As -> Share Name C Passwords -> Full Access Password -> normal-user-password 5.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.) 6 Share Debian /home/*6.1 In DebianSet Samba passwords for users, keeping Windows usernames and passwords the same as Samba usernames and passwords. # smbpasswd -a username 6.2 In win98Contol 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.
7 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 7.1 CUPSNow 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. 8 Appendix A: LicenceCopyright © 2006-2007 Chris Lale, chrislale AT users DOT berlios DOT de.
Go to NewbieDOC index |