[Samba] Windows users can create files but Linux users can not?

Jacob Friis Larsen jfl at list.idg.dk
Fri Jul 9 14:10:57 GMT 2004


> I still think the problem has to do with the way you are using smbfs.  I 
> suspect that you have mounted the remote filesystem in such a way that the 
> account you are using does not have write access.
> 
> After you mount this filesystem, do a "ls -ld /mnt/jfl".  What is the 
> result?

jfl at debidg:~$ ls -ld /mnt/jfl
drwxr-xr-x    1 root     root         4096 Jul  9 13:31 /mnt/jfl

When I create a dir as root, it works, but when I try to delete it I get
"rm: cannot remove directory `test': Device or resource busy"

> Does it appear that the current user (whoever it is) has 
> appropriate unix filesystem permissions?  In other words, if you are 
> running as user "jfl", is the directory /mnt/jfl "owned" by jfl, and/or is 
> there group or other write permission?

When nothing is mounted at /mnt/jfl it is owned by jfl. When mounted it 
is owned by root.
I think it is because I need to tell fstab that ordinary users can mount 
the drive. Could that be it? If so how do I do that?

> Remember, smbfs does not actually map the remote filesystem's file 
> ownership and permision information onto the client system (with the 
> exception of read-only permission) - you have to specify the apparent 
> owner and group and access mask at mount time.  Truthfully, Smbfs is a 
> LOUSY way to do unix to unix filesystem sharing.

How do I do this?

Thanks,
Jacob


More information about the samba mailing list