D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] sshfs new file permissions

 

On Fri, 18 Sep 2009 14:23:26 +0100
Kevin Bailey wrote:

> 
> 
> Simon Williams wrote:
> > Hi everyone.
> > I've been using sshfs for a few weeks, and have just realised that 
> > it's been creating all my files with permissions 600 or 700. This
> > is not helpful when I'm editing websites!
> >
> > I tried the umask option to sshfs, but that did completely the
> > wrong thing. 
> 
> Isn't umask AND'd to the permissions - i.e. a umask of 022  will
> result in permissions set to 755 - i.e. take umask away from 999.
> 
> Kev

Surely it's be taken away from 777... ie:
 777
-022
====
 755

Grant.

-- 
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html