[Samba] cannot modify files on client

Gary Dale garydale at torfree.net
Sun Nov 25 12:01:39 MST 2012


When you are using samba to connect, the user, group and file permission 
get passed through it. Rather than trying to force a particular user, 
try mapping the Windows (samba) user to the local (server) user tommy.


On 25/11/12 10:10 AM, Dietrich Hentschel wrote:
> Hi,
>
> I want connect a linux client to linux server to modify files.
>
> On my server:
>
>    password file: tommy:x:1002:100:Tommy:/home/tommy:/bin/sh
>
>    smb.conf:
>     [global]
>     workgroup=WORKGROUP
>     security=share
>
>     [bilder]
>     path=/var/lib/export
>     force user=tommy
>     force group=users
>     valid users=tommy
>     write list=tommy
>
> On client:
>
>     mount.cifs //DESKTOP/bilder /home/dih/tommy/  -o user=tommy
>
>   I see the files on root:
>     -rwxr-xr-x 1 1002 users     628 Nov 11 19:15 configure.sh
>     -rw-r--r-- 1 1002 users       0 Nov 25 11:33 d
>     -rw-r--r-- 1 1002 users       0 Nov 25 12:49 dd
>     -rwxr--r-- 1 1002 users  753647 Nov 22 19:48 p6140385.jpg
>     -rwxr-xr-x 1 1002 users     720 Nov 19 14:29 photo-ma
>
>   I can "touch x" without trouble and have uid 1002:
>     -rw-r--r-- 1 1002 users       0 Nov 25 16:02 x
>
>
>   I have no user on uid 1002. I want modify the files not on root but 
> have wrong permissions.
>
> Can someone help me.
>
> With regards
>
> Dietrich
>



More information about the samba mailing list