Samba - access denied on windows
I recently configured samba for my slackware 10.1 fileserver. I have a few shares and when I try to write to any of the shares it says that access is denied.
I heard that this error could be cause by ms-chap not be enabled. I couldn't figure out how to enable it in samba. I do not want to send my password plain text. The user name and password is the same on the server and on my windows xp computer. The server is running Slackware 10.1 and my PC is Windows XP Pro SP2. this is my smb.conf: #======================= Global Settings ===================================== [global] workgroup = WORKGROUP server string = "Slackware Linux 10.1" log file = /var/log/samba.%m max log size = 50 socket options = TCP_NODELAY #============================ Share Definitions ============================== [homes] comment = Home Directories browseable = no writable = yes [Files] comment = Files path = /files public = yes writable = yes [backup-jeff] comment = Jeff's Backup Folder path = /mnt/hdb/backup-jeff public = no browseable = yes writable = yes valid users = jeff |
Is the directory that you share read/writeable by the correct users?
|
Yeah it is. I can even take off the user restriction and it still wont work.
|
Anyone have an idea?
|
just to let anyone know if they have this problem..
i forgot to do a chmod 777 /path/to/directory once i did the chmod it worked and i could write to it. |
Personally, I'm glad you posted the answer for later searches.
|
Which folder do you give the 777 to?
/usr/share/samba/drivers
/usr/share/samba /var/spool/samba /etc/samba I'm still stuck on Access_Denied |
you do chmod 777 on the directory that is being shared. i'm not quite sure how secure this is as you're giving all users who log onto the system locally access to this directory.
|
Check for SELinux errors/messages in dmesg.
|
Personally I would not chmod 777 cus that gives access to everyone. I would chown it to the respected users or group. Then you can add a 755 permission on it and add users to a group to access.
|
Quote:
The first thing to look at is the file permissions for the file you are trying to access. If the permissions are, say, 600, then it won't be accessible by anyone other than its owner. Over Samba, that probably won't be you. In my experience, the file must be world-readable (at a minimum) to be accessible over Samba. This seems to be mostly problematic for downloaded files, as the browser may set the permissions to 600 when it saves the file. Thanks. mp |
I had this same problem, it ended up I had a script ran by root that would backup my files to the share. The files would always say "access denied" no matter what permissions I gave (I tried 777). Ended up root was the owner, and it wouldn't let me access them in the samba share until I changed the owner using "chown share-user ./*"
once the owner of the files was the same as the samba user, I was able to access everything. |
All times are GMT -5. The time now is 05:02 AM. |