[SOLVED] Permission denied on Samba share
I have a samba server setup locally and I can connect to the specified shared home drive on the FreeBSD Server from the Linux and Windows machines.
I can delete, save or create only single files and folders but when i try to copy, move folders I get an "Permission Denied" error message. Everything appears to be correct to allow full access to users so I dont know what is happening. Anyone got any advice? Thanks Code:
paleksic@overlord ~ 0 $ sudo mount -t cifs //192.168.1.3/Unix /mnt/samba -o username=paleksic,password=xxxxxxxx,uid=paleksic,gid=users,rw,iocharset=utf8,file_mode=0777,dir_mode=0777 Code:
[ ] LDAP With LDAP support Code:
[root@medved ~]# cat /usr/local/etc/smb.conf Code:
[root@medved /var/log/samba]# tail -n 7 log.smbd |
Did you double check to make sure you have write permission on the directory you're trying to copy into, not just for the other files around it?
|
Permissions appears to be correct to allow full access to user
Code:
paleksic@overlord mnt 0 $ id :eek: how is this even possible Code:
paleksic@overlord mnt 0 $ cp -R /home/paleksic/Desktop/Downloads/screenshots samba/ |
Solved
The UID and GID of the users do not match on the server and client, so user have no proper rights to files in mounted shares on his local machine. I changed UID/GID's in the Linux box to bring them in sync with FreeBSD and as a result I can write to the share.
|
Samba Permission Denied Solution
I was having the same "Permission Denied" trying to connect via Windows or Linux to Samba box. Tried multiple things for days, but the following worked for me, so I hope it helps someone else out there!
I am running SLES 9, SP4. AppArmor is the problem on SLES 10. On SLES 9, it's called subdomain. Stop the service and disable on boot if you don't need the app. disable it with "rcapparmor stop" (SLES 10) /etc/init.d/boot.subdomain stop" (SLES 9). |
add this to your [Unix] share
force user = paleksic I noticed you used windbind, unless you are using a domain it is not needed and should not be enabled in the rc.conf. |
All times are GMT -5. The time now is 11:25 AM. |