when trying to connect to the share(s) via "Map Network Drive", Windows XP contacts the server, a password username and password dialog box pops up (so we know the server is at least responding to the request to connect), and I'll enter a valid username and password (there is no mistake here -- I already sync'ed Linux and Samba users, I know absolutely that the username and password is valid -- I can use it to log onto the server from the server's keyboard, etc.). Windows then complains that "The network path //blah/blah could not be found."
Looking into the Samba logs, I see an error recorded:
[2005/06/21 17:15:12, 0] smbd/service.c:make_connection_snum(615)
'/home/lab_shared' does not exist or is not a directory, when connecting to [Lab]
Error sending status request (Operation not permitted)
For the benefit of Google, here's how to fix it:
Solution 1 (temporary; won't survive a re-boot):
Issue the command:
[root]# setsebool samba_enable_home_dirs=1
Solution 2 (might survive a reboot; I didn't actually try this one):
[root]# setsebool -P samba_enable_home_dirs=1
Solution 3 (survives a reboot):
This is the solution I ultimately settled on. Go to the /etc/selinux/targeted directory. Create a text file called booleans.local, and put the "samba_enable_home_dirs=1" line in it (without the quotes, of course).
Solution 4 (surives a reboot, but removes all SELinux protection):
Edit /etc/selinux/config. Change the line SELINUX=enforcing to SELINUX=permissive or SELINUX=disabled. (not recommend)
for more details (from): http://www.linuxquestions.org/questions/showthread.php?postid=1709437
Starting SMB services: /etc/init.d/functions: line 83: 2741 Aborted $nice $*
/sbin/restorecon -R /etc/samba
本文介绍了解决Windows XP系统下无法访问Samba共享文件夹的问题。提供了四种不同的解决方案,包括临时调整设置及永久修改配置文件等方法。
3万+

被折叠的 条评论
为什么被折叠?



