[Samba] Samba serving sshfs shares: can't delete files

Jeremy Allison jra at samba.org
Thu Jun 2 12:41:57 MDT 2011


On Thu, Jun 02, 2011 at 02:33:21PM +0400, TLoD,Snake wrote:
> >   error packet at smbd/reply.c(2637) cmd=6 (SMBunlink)
> > NT_STATUS_ACCESS_DENIED
> 
> Also I think I have to say that all files on remote server are owned by
> remote server's 'nobody'. As I saw in logfile samba tries to locate such
> a nobody locally which is wrong cause sshfs will handle translation
> local user (any local user due to 'allow_other' option) to remote nobody
> (as it's mounted with remote nobody rights) itself.

smbd has to check at open time to see if an unlink would
succeed (it's just the way Windows does it :-( ). If all
files are owned by 'nobody' and that user doesn't have
write access into the directory that might explain your
problem.

Jeremy.


More information about the samba mailing list