Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Other Community Discussions > Tutorials & Tips
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Tutorials & Tips
The place to find Ubuntu related Tips & Tricks.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old April 12th, 2005   #1
vnbuddy2002
Gee! These Aren't Roasted!
 
Join Date: Apr 2005
Beans: 65
Talking How to share files using Samba (the more secure way)

Required tools:

- samba
- samba-common

To install: sudo apt-get install samba

Once the server is install, issue the following command:

Code:
sudo gedit /etc/samba/smb.conf
Make the following changes:

Code:
 workgroup = WORKGROUP
underneath it, add

netbios name = name_of_your_server (no spaces)

For example:

Code:
netbios name = kenny_smb_server
Make sure "security" is set to "user".

Scroll down until you see "[homes]", set:
Code:
browseable = yes
writable = yes
Then save the changes.


Finally, create a SMB user, make sure this account exists on your Ubuntu Linux.

Code:
sudo smbpasswd -a `whoami`
and set your password

OKAY, you are finished configuring Samba on your Ubuntu Linux.

------------------------------------------------------------------------------------------------
Winblowz
------------------------------------------------------------------------------------------------

There are two ways to access it:

Method 1:
My network places > Entire Network > My Windows Network > Workgroup

Method 2:
in the address barm type in "\\[whatever you named the Samba server]". From my example above, I used "\\kenny_smb_server\".


You should see a folder call "homes", click on it, and it will ask you for your username and password, enter your Ubuntu Login Name and whatever you choose for the password when you used command "smbpasswd". You should be able to take it from here.

Keep in mind that you are sharing, /home/[login name]/*

------------------------------------------------------------------------------------------------
Linux
------------------------------------------------------------------------------------------------

Install smbfs:

Code:
sudo apt-get install smbfs
mkdir Network
sudo mount -t smbfs -o username=[network user],password=[network pass],uid=`whoami`,gid=`whoami`,fmask=000,dmask=000  //[whatever you named the Samba server]/[network user] /home/`whoami`/Network
Example:
Code:
sudo mount -t smbfs -o username=kenny,password=test,uid=`whoami`,gid=`whoami`,fmask=000,dmask=000  //kenny_smb_server/kenny /home/`whoami`/Network
---- END

Good luck!

Last edited by vnbuddy2002; April 13th, 2005 at 12:02 AM..
vnbuddy2002 is offline   Reply With Quote
 

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:34 PM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry