Technology news and Jobs arrow Information Technology News arrow The ever cunning Linux dances the Samba
The ever cunning Linux dances the Samba E-mail
by David M Williams   
Thursday, 25 October 2007
Alternatively, if you prefer to set up accounts per user, instead edit that file and locate the authentication section. Find the line, also commented out, which reads “; security = user”. Just as with above, remove the semicolon to leave “security = user”. Add a new line directly below it, which reads username map = /etc/samba/smbusers. This line instructs Samba to find the list of permissible users contained within the file /etc/samba/smbusers.

Use the command sudo smbpasswd –a <username> to set up users for Samba. Modify <username> for the username you are setting up. Next, use a text editor to add that username to the end of the /etc/samba/smbusers file in the form <username> = “<username>”. This syntax seems cryptic, but the reason is that you may have a different username within Linux than you do on your Windows systems. If you keep the usernames consistent across platforms you should find a minimum of fuss; Windows will attempt to provide the credentials of the currently logged-in user when it encounters a new file share on the network. If you are confident about what you are doing then you may opt for different details, but you may find Windows prompts for these each time it is rebooted.

The proof is in the testing, so move position to a Microsoft Windows computer. You can use the Printers control panel to go through the steps of adding a network printer, or you might go for the quick keyboard method of clicking Start, Run, then typing \\computername where computername is the name of your Linux computer. After a short while, Windows will display all the shared folders and printers on that computer; you might not have any shared folders yet but all the printers you chose to share previously will now be listed.

Double-click on each printer; Windows will give a message alert that it is going to install drivers and set up a connection to the chosen printer. This is not an error message and is not any cause for alarm. You will be prompted, though, to supply a disk with Windows versions of the printer drivers.

Once complete, do try printing a test page. If this is unsuccessful, think clearly where the problem may have occurred and which step caused you difficulties. One of the most common problems I have faced with shared printers is that no matter how many times users insist they “get it”, people will invariably forget that to print to a shared printer, the computer which the printer is physically plugged in to has to be powered on and running. If the printer is plugged in to the back of a computer, then this computer most definitely has to be working in order to print to its printer.

This is Samba in a nutshell, and it will solve a good deal of Windows interoperability problems. The steps may have seemed lengthy but are all straightforward and logical.

First, share any printers you wish. install Samba. Next, configure its security settings. Fourthly, open the firewall to suit. Finally, try it from Windows.

Please enable JavaScript in your browser to post your comment!


Get stories like this delivered daily - FREE - subscribe now


 
< Next story in category   Previous story in the category >
iTWire user statistics Visitors last 30 days
Suscribers
904,266
13,751
#1 independent technology news advertise here
  •   *  
  • Search
  • AdvSeach
  • Login
  • Events
  • FreeStuff
Subscribe to our free e-newsletter