[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Is there a work-around for a umask bug in rssh/chroot ??



On Tue, 26 Aug 2008, Bob Goldberg wrote:
> running etch; rssh/chroot with users allowed sftp only
> I have my umask=007 in my rssh.conf; I have setgid=true on all home dir's.
> 
> When a user uploads a file, that file does NOT have mode=660 as I would
> expect - instead it's 640.

Did you check that the code is trying to create the file with file mode 777
(so that umask has full control of what will end up on the inode)?  If it
does, e.g, 644, your umask will never be able to get a 660 out of it.

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh


Reply to: