Write only directory.

Erik Nørgaard norgaard at locolomo.org
Mon May 7 20:34:43 UTC 2012

On 07/05/2012 20:38, Paul Halliday wrote:
> Is it possible to let a user write to a directory but not access the
> file after they write it?
> The file is being transferred via scp and after the transfer I don't
> want them to be able to re-fetch or even get a directory listing.


If user has no shell access I suppose the problem is that the user might 
be able to overwrite an existing file. The problem is what 
owner/permissions/flags the files will have after transfer.

I don't know if this will work, but check if setting append only flag on 
a directory might do. I would expect the append only flag on a directory 
to allow only creating new files, so existing files cannot be overwritten.

Other flags might also be required, also check what you can do with ACL 
and extended attributes.

BR, Erik

M: +34 666 334 818
T: +34 915 211 157

More information about the freebsd-questions mailing list