bugzilla-daemon at mindrot.org
2002-Mar-01  19:18 UTC
[Bug 133] New: hard-coded umask(022) in ssh.c:main() too inflexible
http://bugzilla.mindrot.org/show_bug.cgi?id=133
           Summary: hard-coded umask(022) in ssh.c:main() too inflexible
           Product: Portable OpenSSH
           Version: -current
          Platform: ix86
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: scp
        AssignedTo: openssh-unix-dev at mindrot.org
        ReportedBy: wspraul at q-ag.de
There is a hardcoded umask(022) call right at the beginning of ssh.c:main(). 
The getuserattr() system does not exist in Linux, so there is no way to 
predefine other umasks for scp (scp does not evaluate .bashrc etc.).
E.g. I would like to define umask(002) to that uploaded files are group 
writable.
I understand the umask(022) might be important in some cases (setuid root), but 
I also think there should be a switch to turn that off and just continue with 
the previous process umask.
Either in the config file or as a command line switch.
Wolfgang
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.