![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.
|
|
Desktop Environments Support for your Ubuntu desktop. Including Gnome, KDE and XFCE. |
|
|
Thread Tools | Display Modes |
|
|
#1 | |||
|
Guest
Beans: n/a
|
[SOLVED] How to share files using Samba (the more secure way)
Written by vnbuddy2002
Required tools: - samba - samba-common To install: Code:
sudo apt-get install samba Once the server is install, issue the following command: Code:
sudo gedit /etc/samba/smb.conf Quote:
netbios name = name_of_your_server (no spaces) For example: Quote:
Scroll down until you see "[homes]", set: Quote:
Finally, create a SMB user, make sure this account exists on your Ubuntu Linux. Code:
sudo smbpasswd -a `whoami` 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: sudo apt-get install smbfs mkdir Network Code:
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 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 |
|||
|
|
|
#2 |
|
First Cup of Ubuntu
![]() Join Date: Oct 2005
Beans: 2
|
Re: How to share files using Samba (the more secure way)
Thanks for the guide. I followed it, but have two questions
-When browsing the network (workgroup) from a Windows machine, my Linux machine (named Desktopsmb in Samba) doesn't appear. Typing \\Desktopsmb returns the error, "The network path was not found." Any ideas? -Is there a way to share printers with SAMBA? Sorry if this is a different guide, but my mom uses my printer. ;D Thanks! |
|
|
|
|
|
#3 | |
|
Guest
Beans: n/a
|
Re: How to share files using Samba (the more secure way)
Quote:
http://ubuntuforums.org/showthread.php?t=26438 use the "search this thread" tool |
|
|
|
|
#4 |
|
Just Give Me the Beans!
![]() Join Date: Oct 2005
Beans: 64
|
Re: How to share files using Samba (the more secure way)
apt-get install smbfs comes back with "package smbfs has no installation candidate". Can someone please help?
|
|
|
|
|
|
#5 |
|
Dipped in Ubuntu
![]() Join Date: Jul 2005
Location: olney, maryland
Beans: 532
Ubuntu 6.06 Dapper
|
Re: How to share files using Samba (the more secure way)
thanks so much....
why is this in gnome howtos?
__________________
Tux Files | My Blog | My last.fm page | Record Skype Conversations
One of the core developers for Specto VIdeo Tutorial thread w/ link |
|
|
|
|
|
#6 | |
|
Guest
Beans: n/a
|
Re: How to share files using Samba (the more secure way)
Quote:
Code:
sudo apt-get update |
|
|
|
|
#7 |
|
Guest
Beans: n/a
|
Re: How to share files using Samba (the more secure way)
can a moderator kindly move this to the general HOWTO's forum? I wrote this here by mistake.
|
|
|
|
#8 |
|
5 Cups of Ubuntu
![]() Join Date: Oct 2005
Beans: 15
|
Re: How to share files using Samba (the more secure way)
Thanks. Did every step there and it works fine. Not the way I wanted, but I'll be able to configure some things later on
|
|
|
|
|
|
#9 | |
|
Ubuntu Extra Shot
![]() Join Date: Oct 2005
Beans: 391
|
Re: How to share files using Samba (the more secure way)
Hi--
Not sure what I need to do, but I have a suspicion it relates to smbfs: Have a samba server named samba1 which has been serving up files to Win95 and WinXP machines for a couple years. I went to ubuntuguide.org and it says to enter this command to mount them on my new Ubuntu box: Code:
sudo mount //192.168.0.1/linux /media/sharename/ -o username=myusername,password=mypassword,dmask=777,fmask=777 Quote:
I am able to mount nfs shares, which is another way to do this, I suppose, but since I already have samba running on the server, it seems like I am opening another security hole to have nfs open, too. BTW, there is a graphical controller for samba: it is called swat. So what have I missed to be able to mount the samba shares from the server on my local Ubuntu box? Do I need to install samba and smbfs on my local ubuntu box? Both or just one? Maybe they are already there. Do I need to start either one? How? Neither one shows up on ps -aux. Thanks! {Edit:} I did install smbfs using Synaptic and that solved my issues here. Now I just need to figure out what the difference is between the options you used and the ones on ubuntuguide. Thanks!
__________________
:- Doug. Last edited by dgermann; October 25th, 2005 at 09:35 PM.. |
|
|
|
|
|
|
#10 |
|
Extra Foam Sugar Free Ubuntu
![]() |
Re: How to share files using Samba (the more secure way)
You may also want to add
Code:
/etc/samba/smb.conf [global] ... encrypt passwords = yes smb passwd file = /etc/samba/smbpasswd ... Code:
sudo cat /etc/passwd | sudo mksmbpasswd > /etc/samba/smbpasswd sudo chmod 600 /etc/samba/smbpasswd sudo smbpasswd username Last edited by FLeiXiuS; March 24th, 2006 at 02:19 AM.. |
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|