SFTP Umask



I have virtual X86 Solaris 10 server I just installed the latest July CPU to.
Up until the patches were installed the umask applied to new directories and
files on the server was 002. I'm not sure if that was based on the users
umask in .login/.cshrc, or the default umask, but now all new files and
directories are being created with a mask of 077.



The sshd_config now has "Subsystem sftp internal-sftp" where before it was
"Subsystem sftp /usr/lib/ssh/sftp-server".



This is a web server that makes heavy use of group access rights for file
modification and read access for "other" to serve out files. What determines
a users umask when they are using sftp to access the server? I tried changing
the sftp subsystem to "Subsystems sftp internal-sftp -u 0002" with no affect.
I also tried putting back sftp-server but it didn't help. Can anyone tell me
how to fix this?



OS: Solaris 10 8/07

SSH-2.0-SUN_SSH_1.1.4 running.



Thanks,



Mark



Mark.Agostinelli@xxxxxxxxxx
_______________________________________________
sunmanagers mailing list
sunmanagers@xxxxxxxxxxxxxxx
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



Relevant Pages

  • Re: File Permissions problem : Cry for HELP
    ... is something wrnog with the server cause when i upload the same files from ... >> i have a problem with file permissions, each new file i need to create i ... >> Internal Server Error ... > You need to change the umask used when you are saving web files. ...
    (Fedora)
  • Re: File Permissions problem : Cry for HELP
    ... also about configuring the server i am uploading to, ... > i have a problem with file permissions, each new file i need to create i ... You need to change the umask used when you are saving web files. ... Depending on how you are uploading the files, ...
    (Fedora)
  • Re: [patch 12/13] ACL umask handling workaround in nfs client
    ... >> the umask locally, and sends the effective permissions to the server. ... >> only the default ACL determines the file's effective permissions. ...
    (Linux-Kernel)
  • Re: [patch 12/13] ACL umask handling workaround in nfs client
    ... > the umask locally, and sends the effective permissions to the server. ... > only the default ACL determines the file's effective permissions. ...
    (Linux-Kernel)
  • Re: sshfs and permissions
    ... sshfs, though it works on the server or through DokanFS. ... When creating a file in this directory while connect through the server ... fix for wrong file permissions on server ... propagates the umask of the client to the server. ...
    (Debian-User)