[Samba] creating file on share getting "premission denied" on a linux client

kartheek katakam katakamkartheek at gmail.com
Fri Apr 27 11:23:34 MDT 2012


I have linux samba server trying to share user home directories, and I am
trying to mount the shares on a linux client. I am running into a issue.

here is truncated output of smb.conf

turncated o/p of my smb.conf for the share

        path = /home/50483
        users = dituser
        public = no
        writable = yes
        printable = no
        write list = 50483

on the samba server

[root at HOST1 50483]# cd /home/50483
[root at HOST1 50483]# ls -lrt
total 20
-rw-------  1 50483 admin   10 Apr 26 12:55 .bash_history
drwxr-xr-x 10 root    root        4096 Apr 26 14:11 ../
drwxrwxr-x  2 50483 admin 4096 Apr 26 14:42 dir1/
drwxr-xr-x  3 50483 admin 4096 Apr 26 14:42 ./
[root at HOST2 ~1]$ id 50483
uid=509(50483) gid=500(admin) groups=500(admin)

I mounted the share on a linux client, but when I create a file I am
getting permission denied, not sure what I am missing here.
on client server

[root at HOST2 ~]# mount -t cifs -o
username=dituser,password=ditpasswd,rw,workgroup=MYGROUP  '//' /mnt/cifs/
[root at HOST2 ~]# su - 50483
[50483 at HOST2 ~]$ cd /mnt/cifs/dir1/
[50483 at HOST2 dir1]$ touch file1
touch: cannot touch `file1': Permission denied
[50483 at HOST2 dir1]$ id
uid=509(50483) gid=500(admin) groups=500(admin)


More information about the samba mailing list