Home | Hardware | Internet News |Web Hosting |IT Management |Network Storage
LinuxPlanet
Search 
  Power Search | Tips 

 Front Door
 Discussion
 LinuxEngine
 Opinions
 Reports
 Reviews
 Tutorials
 News
 Technology Jobs

 Browse by subject.
Free Newsletter

Linux Planet
Linux Today
More Free Newsletters

Be a Commerce Partner


















internet.com
IT
Developer
Internet News
Small Business
Personal Technology
International

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

Print this article
Email this article

   LinuxPlanet / Tutorials



Networking with Ubuntu 8.04 and Windows Part 1
Creating a SMB Password in Ubuntu

Eric Geier
Monday, June 23, 2008 01:18:45 PM

By default, Samba requires you to configure a password for use when accessing the shares from other computers. (In a later part of this series we'll discuss advanced sharing configuration, like guest shares) This will be, for example, the password you'll use in conjunction with your Ubuntu username when prompted to enter logon credentials after double-clicking a computer icon in the My Network Places or Network window in Windows.

Creating a username for Samba only takes one line of code in Terminal:

  1. Click Applications | Accessories | Terminal.
  2. Type sudo smbpasswd -a username and hit the Enter key.

Replace the word username above with the login or user name of your Ubuntu account, as you can see in the example shown in Figure 2.

If Terminal comes back and says sudo: unable to resolve host <your domain/workgroup name | , you'll need to refer to the next set of steps before moving on.

  1. Type your Ubuntu account password and hit the Enter key.
  2. Type a password for the SMB account and hit the Enter key.
  3. Retype the same password and hit the Enter key.

If you received the unable to resolve host error after executing the smbpasswd command, it's probably because you were fiddling around with settings and you specified a Domain Name in the General tab of the Network Settings. (We discuss changing the Workgroup value later.) Yet you can revert to being domain name-less (so you can continue setting up SMB) by editing the hosts file. Here's exactly how to perform the fix:

  1. Click Applications | Accessories | Terminal.
  2. Type sudo gedit /etc/hosts and hit the Enter key.
  3. Type in your Ubuntu account password and hit the Enter key.

The text editor should pop-up with the hosts file opened.

  1. Delete the Domain Name, including the preceding period, that's just after 127.0.1.1 and your Computer Name; such as Figure 3 shows.
  2. Click the Save button on the text editor's toolbar, close the window, and proceed with the previous set of steps.

Next: Allowing Ubuntu Desktop Users to Share »

Skip Ahead

1 Installing the Samba Package for Ubuntu
2 Creating a SMB Password in Ubuntu
3 Allowing Ubuntu Desktop Users to Share
4 Changing the Computer Name in Ubuntu
5 What's Next
Figure 2: Changing the smb Password
Figure 2: Changing the smb Password

Figure 3: Edit the Domain Name
Figure 3: Edit the Domain Name





Linux is a trademark of Linus Torvalds.


internet.com home | search | help! | about us

Jupiter Online Media

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Web Hosting | Newsletters | Tech Jobs | Shopping | E-mail Offers