Can't access shared linux folder on Win7 machine (solved)

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

Can't access shared linux folder on Win7 machine (solved)

Postby crosstie69 on Sat Dec 15, 2012 10:24 am

I installed Mint 12 awhile back and love it. I personally have made the switch permanent from windows. My son however is still running win, 7 to be exact. I have shared my music folder and checked allow guest access on it. In my Samba config file my computer name is WORKGROUP and allow guest access is yes. The win7 machine is in WORKGROUP as well. From the win7 machine, He can see my computer and my shared music folder. When he tries to access the music folder it gives him this error. I have been reading some tutorials on sharing folders and it seems like everything is set right. I am not sure what elso to do and was wondering if someone could help me figure out what I am doing wrong?

Image

Here is the results from testparm -s

Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[printers]"
Processing section "[print$]"
Loaded services file OK.
Server role: ROLE_STANDALONE
[global]
server string = %h server (Samba, Ubuntu)
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
usershare allow guests = Yes
panic action = /usr/share/samba/panic-action %d
idmap config * : backend = tdb

[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
printable = Yes
print ok = Yes
browseable = No

[print$]
comment = Printer Drivers
path = /var/lib/samba/printers

and net usershare info --long

[MuSiC]
path=/home/tyler/Music
comment=Tyler
usershare_acl=Everyone:R,TYLER\(null):F,
guest_ok=y

Thanks in advance,

Tyler
Last edited by crosstie69 on Sat Dec 15, 2012 2:20 pm, edited 1 time in total.
User avatar
crosstie69
Level 1
Level 1
 
Posts: 40
Joined: Sun Jan 22, 2012 12:17 pm

Linux Mint is funded by ads and donations.
 

Re: Can't access shared linux folder on Win7 machine

Postby altair4 on Sat Dec 15, 2012 11:51 am

I don't see anything wrong with your samba share either but what samba allows ( read access to guests ) may not be the same as what Linux allows.

What are the Linux permissions on the target folder:
Code: Select all
ls -dl /home/tyler/Music
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: 6129
Joined: Tue Feb 03, 2009 10:27 am

Re: Can't access shared linux folder on Win7 machine

Postby crosstie69 on Sat Dec 15, 2012 11:56 am

tyler@Tyler ~ $ ls -dl /home/tyler/Music
drwxr-xr-x 8 tyler tyler 4096 Dec 14 19:02 /home/tyler/Music
User avatar
crosstie69
Level 1
Level 1
 
Posts: 40
Joined: Sun Jan 22, 2012 12:17 pm

Re: Can't access shared linux folder on Win7 machine

Postby altair4 on Sat Dec 15, 2012 1:17 pm

The only things I can think of at the moment:

** The entire path is not allowing the remote guest access:

Run these commands and see if they all come back like the one for /home/tyler/Music:
Code: Select all
ls -dl /home
ls -dl /home/tyler


** You have encrypted your home directory. If that's the case then only tyler can access the folder.

You might be able to circumvent this problem by adding a line to smb.conf:

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

Add a line - right under the workgroup line:
Code: Select all
force user = tyler

Then restart samba:
Code: Select all
sudo service smbd restart

The remote guest will be converted to the user tyler with the restriction that they can only read.

Note: Every time you restart smbd the network has a fit so wait a few minutes before trying to access the share again.
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: 6129
Joined: Tue Feb 03, 2009 10:27 am

Re: Can't access shared linux folder on Win7 machine

Postby crosstie69 on Sat Dec 15, 2012 2:19 pm

The "force user = tyler" fixed the problem. It is working now after adding that line.

Thank you for your help,

Tyler
User avatar
crosstie69
Level 1
Level 1
 
Posts: 40
Joined: Sun Jan 22, 2012 12:17 pm

Re: Can't access shared linux folder on Win7 machine (solved

Postby northofnowhere on Sat Mar 02, 2013 8:53 am

Registered to post this reply. Will probably get more use out of the registration, but was moved by your help to straighten this out. The force user = ******* line fixed all of my issues as well on a fresh install. I was almost ready to go back to that other OS that doesn't ever work so I REALLY appreciate your post. Thanks!
northofnowhere
Level 1
Level 1
 
Posts: 1
Joined: Sat Mar 02, 2013 8:50 am


Return to Other networking topics

Who is online

Users browsing this forum: No registered users and 6 guests