[Samba] Cannot write over root owned file

Adam Nielsen adam.nielsen at uq.edu.au
Wed May 3 04:02:08 GMT 2006


> Is there something built-in to Samba to prevent root overwriting a
> file?

Unless you have "invalid users = root" there shouldn't be a problem.
Try creating a file instead:

 $ touch /mnt/tillie/tmp/test.txt

And then see who owns the file - it should be root (if you're connected
as root) but I suspect it'll be some other user.  You probably need to
specify the user when you connect, i.e.

 $ smbmount smbmount tillie/all /mnt/tillie -o uid=0,username=root

Cheers,
Adam.


More information about the samba mailing list