tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: "Garsha, Adam" <adam.garsha@marquette.edu>
Subject: SFTP and umask and enhanced security (only using shadow passwords)
Date: Mon, 25 Jul 2005 11:59:05 -0500	[thread overview]
Message-ID: <C589FE027C31F4428508DB656248376B053AC894@EMARQ2.marqnet.mu.edu> (raw)



After moving to use shadow passwords, our sftp users now end up creating
files with mode -rw------- (600).

When users actually log in via ssh and create files locally, the files
are instead -rw-r--r-- (644); this also used to be true for sftp prior
to using shadow passwords.

In /etc/profile the umask is set to 022. So, my working theory is that
enhanced security changed the default umask from 022 to 077 and that
sftp does not run commands in /etc/profile.

1.) What do you think about this theory.
2.) Do you know a way to force the sshd daemon to make sftp use a
certain umask and/or run /etc/profile?
3.) Do you know a reasonable way to change the default system umask to
022?



Adam Garsha
Systems Engineer
Marquette University IT Services
414-288-3750 (Office)
414-235-0112 (Cell)
adam.garsha@marquette.edu



                 reply	other threads:[~2005-07-25 16:59 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox