How to create a SAMBA share? [SOLVED]

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

How to create a SAMBA share? [SOLVED]

Postby luis.nando on Sat Apr 02, 2011 4:08 pm

Well, since I managed to fix (with the help of the community) the plymouth, the next problem I see with my system is how to create a samba share... I have a Wii wich I use to see movies OTA connected with a samba share on my windows 7 machine. I used to do the same with a ubuntu machine, but since Ubuntu became so slow on a Compac i decided to go back on Windows 7. How to do this on a LMDE machine? The nautilus-share package doesn`t solve the problem... any help here?
Last edited by luis.nando on Sat Apr 02, 2011 8:24 pm, edited 1 time in total.
ASUS UL30a2 LMDE 64bit
User avatar
luis.nando
Level 1
Level 1
 
Posts: 48
Joined: Tue Feb 22, 2011 6:09 pm
Location: Brazil

Linux Mint is funded by ads and donations.
 

Re: How to create a SAMBA share?

Postby Halzen on Sat Apr 02, 2011 4:34 pm

I'm not familiar with SAMBA myself, but a little Googling led me here: http://www.debianhelp.co.uk/samba.htm
Acer TimelineX: 13" LED, Intel Core i3 2.53Ghz dual-core, 4GB DDR3 RAM, Intel HD GMA graphics
Arch Linux + Openbox
User avatar
Halzen
Level 1
Level 1
 
Posts: 42
Joined: Wed Feb 23, 2011 1:03 pm
Location: Florida, USA

Re: How to create a SAMBA share?

Postby altair4 on Sat Apr 02, 2011 4:43 pm

The nautilus-share package doesn`t solve the problem... any help here?

LMDE has a few things disabled by default so you need extra steps to get get it to work for either Nautilus-share or Classic-share. You might want to go through this first. From Simple File Sharing in Mint:http://forums.linuxmint.com/viewtopic.php?f=42&t=23169
Linux Mint Debian Edition Preliminary Steps

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

If that doeesn't fix it then please post the output of the following commands:
Code: Select all
net usershare info --long

Code: Select all
testparm -s
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
altair4
Level 15
Level 15
 
Posts: 5757
Joined: Tue Feb 03, 2009 10:27 am

Re: How to create a SAMBA share?

Postby luis.nando on Sat Apr 02, 2011 5:41 pm

First of all, thanks for the mint community, when I migrated from windows to Ubuntu and finally got unhappy with the last changes, I decided to migrate to Mint, wich has such a plethora of good intentioned users... So far, I`ve managed to fix the main problems to get the best experience on Linux....

Well, that suggestion didn`t work, when I try to access that same W7 machine my Wii does I get an error on Nautilus, like fail to recover list from server, the logs are:

Code: Select all
luis@luis-desktop ~ $ testparm -s
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[homes]"
Processing section "[printers]"
Processing section "[print$]"
Loaded services file OK.
Server role: ROLE_STANDALONE
[global]
   server string = %h server
   map to guest = Bad User
   obey pam restrictions = Yes
   pam password change = Yes
   passwd program = /usr/bin/passwd %u
   passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
   unix password sync = Yes
   syslog = 0
   log file = /var/log/samba/log.%m
   max log size = 1000
   dns proxy = No


But the net usershare didn`t give me any answer...
ASUS UL30a2 LMDE 64bit
User avatar
luis.nando
Level 1
Level 1
 
Posts: 48
Joined: Tue Feb 22, 2011 6:09 pm
Location: Brazil

Re: How to create a SAMBA share?

Postby altair4 on Sat Apr 02, 2011 6:44 pm

Ah, you're going in the other direction. When you mentioned nautilus-share I thought you were trying to create a share on Mint and access it from Windows. Does this look like the error you get when trying to access the Win7 machine:
Unable to mount location: Failed to retrieve share list from server

Run one more diagnostic and post the output:
Code: Select all
smbtree

In the mean time don't browse to the share. Access it by ip address. In a terminal:
Code: Select all
nautilus smb://192.168.0.100

Change 192.168.0.100 to the ip address of the Win7 machine
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
altair4
Level 15
Level 15
 
Posts: 5757
Joined: Tue Feb 03, 2009 10:27 am

Re: How to create a SAMBA share?

Postby altair4 on Sat Apr 02, 2011 7:42 pm

I'm shutting down for the day so I thought I'd leave you with a few things:

Hopefully accessing it by ip address has worked. If so you can bookmark it in Nautilus so you won't need to use the terminal any more. This does require that you have a static ip address on the Win7 box though.

If you still need to browse to the share then you could try these two modifications to smb.conf:

Add the following lines to the [global] section of /etc/samba/smb.conf:
Code: Select all
name resolve order = bcast host lmhosts wins

Code: Select all
client use spnego = no

Then restart samba:
Code: Select all
sudo service samba restart
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
altair4
Level 15
Level 15
 
Posts: 5757
Joined: Tue Feb 03, 2009 10:27 am

Re: How to create a SAMBA share? [SOLVED]

Postby luis.nando on Sat Apr 02, 2011 8:25 pm

Those last suggestions, solved the problem in both directions, W7 to LMDE and back.... Thank you!!!
ASUS UL30a2 LMDE 64bit
User avatar
luis.nando
Level 1
Level 1
 
Posts: 48
Joined: Tue Feb 22, 2011 6:09 pm
Location: Brazil

Linux Mint is funded by ads and donations.
 

Return to Other networking topics

Who is online

Users browsing this forum: No registered users and 1 guest