Fedora Linux Support Community & Resources Center
  #1  
Old 20th March 2012, 08:02 AM
cebrimal Offline
Registered User
 
Join Date: Mar 2012
Location: Canada
Posts: 3
linuxchrome
Samba - Win7 Cannot Access

It has been a long time since I've set up a samba server, but I don't remember it involving hours of frustration. Here's the situation:

Fedora 16

smb.conf
Code:
[global]
	workgroup = workgroup
	security = share
	guest ok = yes

[Videos]
	comment = Movies and TV
	path = /home/user/Videos
	read only = no
	guest ok = yes
;	browseable = yes
Firewall configured to allow both Samba and Samba Client

Code:
smbpasswd -an User
has been entered.

Try to access the share from the Windows 7 PC. First off, it does not detect the share as part of the workgroup, and I have to manually type in \\192.168.0.2 into explorer address bar. Once there, it sees the 'Videos' share, but clicking on it reads:

Windows cannot access \\192.168.0.2\Videos

You do not have the permission to access \\192.168.0.2\Videos. Contact your network administrator to request access.

I have been playing with it for a few hours and just want it to work. It's a simple file share.... or should be.

**EDIT** I should also mention that I have done a chmod -R 777 on the Videos folder just to try and eliminate everything. Once I get it working, I'll put all my securities back in.

Last edited by cebrimal; 20th March 2012 at 08:06 AM.
Reply With Quote
  #2  
Old 20th March 2012, 08:22 AM
glennzo Offline
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Age: 57
Posts: 14,714
linuxfirefox
Re: Samba - Win7 Cannot Access

Open a terminal and try
PHP Code:
su
setsebool 
-P samba_export_all_rw 1 
See if you can access the share now. If not, try restarting samba first.
PHP Code:
systemctl restart smb.service
systemctl restart nmb
.service 
After the restart it may take a few minutes for things to sync up.

Failing that, here's something else I've discovered. Might not hurt to give it a shot. Open a terminal and type
PHP Code:
[glenn@localhost ~>$ getsebool -grep samba
samba_create_home_dirs 
--> off
samba_domain_controller 
--> off
samba_enable_home_dirs 
--> off
samba_export_all_ro 
--> off
samba_export_all_rw 
--> off
samba_run_unconfined 
--> off
samba_share_fusefs 
--> off
samba_share_nfs 
--> off
sanlock_use_samba 
--> off
use_samba_home_dirs 
--> off
virt_use_samba 
--> off 
You're looking for the line that mentions samba_share_fusefs. You need to turn it on if it's off.
PHP Code:
sudo setsebool samba_share_fusefs on 
Try to access the Windows shares.
__________________
Glenn
The Bassinator © ®

[SIGPIC][/SIGPIC]
Laptop: Toshiba Satellite / Intel Core 2 Duo 1.73 GHz / 2GB / 160GB / Intel Mobile 945GM/GMS/GME/943/940GML Integrated Graphics
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / 1TB SATA / 500GB SATA / EVGA GeForce 8400 GS 1GB
Reply With Quote
  #3  
Old 20th March 2012, 08:49 AM
cebrimal Offline
Registered User
 
Join Date: Mar 2012
Location: Canada
Posts: 3
linuxchrome
Re: Samba - Win7 Cannot Access

Thank you! I have no idea what that did, but it fixed it. It looks like it may have set some permissions on the directories where the Samba shares are. I don't know.... but it worked; that's the most important thing.
Reply With Quote
  #4  
Old 20th March 2012, 08:56 AM
glennzo Offline
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Age: 57
Posts: 14,714
linuxfirefox
Re: Samba - Win7 Cannot Access

What command did you use to fix it?
__________________
Glenn
The Bassinator © ®

[SIGPIC][/SIGPIC]
Laptop: Toshiba Satellite / Intel Core 2 Duo 1.73 GHz / 2GB / 160GB / Intel Mobile 945GM/GMS/GME/943/940GML Integrated Graphics
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / 1TB SATA / 500GB SATA / EVGA GeForce 8400 GS 1GB
Reply With Quote
  #5  
Old 20th March 2012, 05:15 PM
cebrimal Offline
Registered User
 
Join Date: Mar 2012
Location: Canada
Posts: 3
linuxsafari
Re: Samba - Win7 Cannot Access

I used the first one you gave me.
Reply With Quote
  #6  
Old 22nd March 2012, 11:04 PM
Sicinthemind Offline
Registered User
 
Join Date: May 2009
Location: Tampa, FL, previously Chicago, IL
Posts: 137
windows_7ie
Re: Samba - Win7 Cannot Access

Ahh, SELinux was preventing an action that has to be given explicit permissions for access. SELinux is a Mandatory Access Control system on top of a file permissions Discretionary Access Control.

Good to see this was resolved. Cheers!!
__________________
Steve Kline - RHCSA, MCITP: Server Admin
Reply With Quote
  #7  
Old 5th February 2014, 07:51 PM
Gladiator Offline
Registered User
 
Join Date: Feb 2014
Location: usa
Posts: 1
windows_xp_2003ie
Re: Samba - Win7 Cannot Access


Hi glennzo!

i have been seaching the web for solutions for many many days to no avail then i found this forum though i am using centos yet your solution worked for me, you rock!!!!!
Reply With Quote
Reply

Tags
access, samba, win7

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] can't access Fedora, dual boot (win7+fedora15). help~ pd1986 Installation, Upgrades and Live Media 1 15th November 2011 06:35 PM
[SOLVED] Access samba share by hostname from win7 Grub3r Servers & Networking 14 16th March 2011 08:40 PM
Another Samba can't see XP or Win7 machines issue bmd919 Using Fedora 1 13th September 2010 10:21 PM
Win7 can't view Samba shares in F12 fordperf Using Fedora 3 4th May 2010 03:49 PM
Cannot connect my Win7 and Mac0S 10.6 computers to Samba share urhumblefedora Servers & Networking 5 3rd January 2010 10:31 PM


Current GMT-time: 02:10 (Monday, 22-09-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat