Unable to access files from XP via Samba after upgrade to FC6
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Unable to access files from XP via Samba after upgrade to FC6
I had a working Samba configuration on a Linux box so that I could access some files in a public share on the Linux box from an XP desktop. When working, the Linux version was FC3 with Samba version 3.0.10-1.
I upgraded the Linux box to FC6, which included upgrading the Samba to 3.0.23c-2.
Now when I try and access the Linux files in the 'public' share. I can see the files (in explorer or using dir in a DOS box), but I can't copy the files or open them. In the dos box, when I try and copy them I get an 'Access is denied' error.
The smb.conf file is pretty minimal, but it worked before the upgrade and doesn't work following the upgrade.
[global]
workgroup = WWG
netbios name = SRV1
username map = /etc/samba/smbusers
security = user
[public]
path = /export
read only = yes
guest ok = yes
browseable = yes
I'm not sure whether the problem is with Samba, FC6 or XP, which is why I'm posting here.
try adding "valid users = (xp address) to your smb.conf file if it is not already there. I will warn you tho, I have the same problem
It seems to me that fedora has incorporated a KDC controller that is messing mine up and it's beond me. neither have had any luck asking around about it. I get the same error you have in explorer but when I also try telnet,ftp or ssh I get "cannot resolve network address while getting inital credentials in KDC realm."
thers's not really much good documentation on Kurbose that I have found.
Just out of curiosity, but did you run the smbpasswd script and add the necessary users? I have configured Samba under Slackware so not sure what small differences there are between it and FC. Was this an upgrade to FC6 or did you just reinstall? And if it is a permission error, I'd be looking at permissions on those said directories/files.
I read the smb.conf and couldn't see anything wrong with my simple smb.conf file. However I decided to restrict all of the user access to the 'nobody' account.
To do this I changed the security from 'user' to 'share', opened up the public share to be writeable by setting the 'read only' parameter to 'no', and set the 'guest only' parameter to yes. I also changed the ownership of all the files in the 'public' share to 'nobody'.
I don't knowingly use Kerberos, so I don't think that has any bearing on the issue.
I put in a 'valid users' parameter, but according to the man page for smb.conf, this should be a list of users rather than an xp address, so I set it to 'nobody'.
[public]
path = /export
read only = No
guest only = Yes
guest ok = Yes
However, now that the share is writeable, the behaviour of files is more ionteresting. I can create files in XP, but not rename them. I can copy files to the share, but then cannot read them. Having created a file under XP, I can rename it on the Linux box, and amend the contents. I can then read the amended file on the XP box, and can copy it elsewhere, but I can't rename it under XP or do any further editing on XP.
keep hacking. If you find the answer, I'm sure everyone here would thank you for writing it up. Samba problems are such a bear to figure out. I think its because of all the reverse-engineering involved; micros0ft doesn't exactly stick to specifications very well, even their own.
As far as kerberos, I have to admit I'm clueless. Does samba use kerberos for authentication by default? Kerberos is an authentication/encryption scheme originally developed by MIT.
Fedora 6 by default uses kerberos. However, your problem is sounding more like permissions...
See if adding "public = yes" helps any. are your logs giving any hints? also found the following that might be usefull:
create mask = 0644
The option create mask specifies and sets the necessary permissions according to the mapping from DOS modes to UNIX permissions. With this option set to 0644, all file copying or creating from a Windows system to the Unix system will have a permission of 0644 by default.
directory mask = 0755
The option directory mask specifies and set the octal modes, which are used when converting DOS modes to UNIX modes when creating UNIX directories. With this option set to 0755, all directory copying or creating from a Windows system to the Unix system will have a permission of 0755 by default.
hosts allow = 192.168.1.4 127.0.0.1
The option hosts allow specifies which hosts are permitted to access a Samba service. By default, we allow hosts from IP class C 192.168.1.4 and our localhost 127.0.0.1 to access the Samba server. Note that the localhost must always be set or you will receive some error messages.
I'm attempting to do an install of FC6 rather than an upgrade, and will re-enable Samba once I have got it up & running again.
However while waiting for the install to finish, I found an interesting article which seems to relate to my original problem and the article suggested that the issue might be SELinux related.
It also suggested that this theory can be checked by switching off SELinux for Samba by: /usr/sbin/setsebool -P smbd_disable_trans 1
But this will obviously lose the benefits of SELinux
I also found a post in a different forum which explains how to configure for Samba/SELinux properly and also how to upgrade and reset the permissions properly. The post is at http://lists.samba.org/archive/samba...ay/120632.html
Last edited by billybadfoot; 01-06-2007 at 05:30 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.