LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Samba - access denied on windows (https://www.linuxquestions.org/questions/linux-software-2/samba-access-denied-on-windows-360197/)

time112852 09-04-2005 05:16 PM

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

MaTrIx709 09-05-2005 08:46 AM

Is the directory that you share read/writeable by the correct users?

time112852 09-05-2005 09:58 AM

Yeah it is. I can even take off the user restriction and it still wont work.

time112852 09-06-2005 09:25 PM

Anyone have an idea?

time112852 09-07-2005 01:35 PM

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.

-X- 09-07-2005 03:11 PM

Personally, I'm glad you posted the answer for later searches.

littlebear91 10-30-2009 06:41 PM

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

time112852 12-21-2009 03:30 PM

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.

kromberg 12-22-2009 03:08 PM

Check for SELinux errors/messages in dmesg.

worm5252 12-22-2009 03:13 PM

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.

pdxlooie 03-13-2010 07:17 AM

Quote:

Originally Posted by time112852 (Post 3800380)
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.

Hello,

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

Zero187 06-04-2010 10:08 AM

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.