I Need Help with SAMBA

Connection sharing, Firewall, Samba..etc
Forum rules
Before you post please read this

I Need Help with SAMBA

Postby plowran on Thu Mar 31, 2011 2:15 am

OK Everyone;
I'm a 15 year N00B, I am in desperate need of help to get SAMBA working...
I have been having issues with LM based on Ubuntu for some time now(Kept getting ERRNO5) so I switched to LMDE and it's awesome!
I try to create a share but when I do it keeps telling me I dont have the permissions or something like that, I couldn't tell you off hand my HDD in my server just took a unicorns and im working on it.
I need help getting LMDE set up with SAMBA so I can get the other PCs in my house and all my XBOX's (Set up with XBMC) so that I can stream all my media.
I know this is a stupid question but I would appreciate it.
Thanks
Phil
plowran
Level 2
Level 2
 
Posts: 93
Joined: Sun Aug 26, 2007 4:37 pm

Linux Mint is funded by ads and donations.
 

Re: I Need Help with SAMBA

Postby altair4 on Thu Mar 31, 2011 6:34 am

There are some preliminary steps to get Samba on LMDE working.
From Simple File Sharing in Mint: viewtopic.php?f=42&t=23169
For those of you that have installed Mint Debian you have probably noticed that Nautilus-share does not work. There are a few more steps required:

Step 1: "Guest Access" option is disabled by default. To enable it:

Open smb.conf as root:
Code: Select all
gksu gedit /etc/samba/smb.conf

Add the following lines to the [global] section:
Code: Select all
usershare allow guests = yes

Code: Select all
map to guest = Bad user

And restart samba:
Code: Select all
sudo service samba restart


Step 2: You do not have permissions to create a usershare because you are not included in the correct group.
Code: Select all
sudo gpasswd -a your_user_name sambashare


Step 3: Add samba client packages
Code: Select all
sudo apt-get install gvfs-fuse
sudo apt-get install libsmbclient
sudo apt-get install smbclient
sudo apt-get install python-smbc

Then add yourself to the fuse group:
Code: Select all
sudo gpasswd -a your-user-name fuse


Step 4: Logoff and Login again for all the group changes to take affect


BTW:
I know this is a stupid question but I would appreciate it.

No questions concerning Samba are stupid. Samba was originally designed for UNIX servers 20 years ago. It's a miracle that mere mortals are able to get it to work on their home desktops :wink:
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
altair4
Level 16
Level 16
 
Posts: 6215
Joined: Tue Feb 03, 2009 10:27 am

Re: I Need Help with SAMBA

Postby plowran on Thu Mar 31, 2011 12:22 pm

As Soon as i get my Server Functional again I will try this
Thanks
Phil!
plowran
Level 2
Level 2
 
Posts: 93
Joined: Sun Aug 26, 2007 4:37 pm

Re: I Need Help with SAMBA

Postby kwisher on Thu Mar 31, 2011 6:33 pm

I created a Samba Home File Server howto a while back when it was running on Mint-5. It is a little dated but the instructions should still work. I basically use the same setup on Ubuntu 10.04 now. The only thing that I do not do now is use the Samba GUI config app.

http://www.kwdesign-consulting.com/Files/Samba%20How-To.zip
The instructions suggested Windows XP or better, so I installed Linux :)
User avatar
kwisher
Level 5
Level 5
 
Posts: 643
Joined: Wed Mar 05, 2008 12:54 pm
Location: Greentown, Indiana USA

Re: I Need Help with SAMBA

Postby altair4 on Fri Apr 01, 2011 6:58 am

Just as a note on the HowTo offered by kwisher. You will need to make the following modifications to the smb.conf suggested in order to allow guest shares:

To the global section add the following lines:
Code: Select all
map to guest = Bad User

Code: Select all
usershare allow guests = yes


The first line is necessary to convert a remote unauthenticated user to the "guest account". Without that line the default "hard coded" samba option of "map to guest = Never" prevails and all guest access will be rejected.

The second line enables the "Guest Access" box in Usershare. Samba Usershare allows a user to create a samba share from Nautilus with a right click. Without that line the "Guest access" box is grayed out.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
altair4
Level 16
Level 16
 
Posts: 6215
Joined: Tue Feb 03, 2009 10:27 am

Re: I Need Help with SAMBA

Postby kwisher on Sun Apr 03, 2011 11:25 am

altair4,

Thanks for the tip, I was not aware of that since I do not use guest shares on my network. If I get time I plan on updating my How-To to reflect the current version of Mint. I will also add your suggestion for guest shares.
The instructions suggested Windows XP or better, so I installed Linux :)
User avatar
kwisher
Level 5
Level 5
 
Posts: 643
Joined: Wed Mar 05, 2008 12:54 pm
Location: Greentown, Indiana USA


Return to Other networking topics

Who is online

Users browsing this forum: No registered users and 1 guest