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

Questions about Wi-Fi and other network devices, file sharing, firewalls, connection sharing etc
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
crosstie69

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

Post by crosstie69 »

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 LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
altair4
Level 20
Level 20
Posts: 11419
Joined: Tue Feb 03, 2009 10:27 am

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

Post by altair4 »

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.
crosstie69

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

Post by crosstie69 »

tyler@Tyler ~ $ ls -dl /home/tyler/Music
drwxr-xr-x 8 tyler tyler 4096 Dec 14 19:02 /home/tyler/Music
altair4
Level 20
Level 20
Posts: 11419
Joined: Tue Feb 03, 2009 10:27 am

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

Post by altair4 »

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.
crosstie69

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

Post by crosstie69 »

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

Thank you for your help,

Tyler
northofnowhere

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

Post by northofnowhere »

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!
Locked

Return to “Networking”