<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Set umask for specific sftp users in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/set-umask-for-specific-sftp-users/m-p/4663818#M381280</link>
    <description>hi Bill&lt;BR /&gt;&lt;BR /&gt;which line should I put the file environment?</description>
    <pubDate>Wed, 21 Jul 2010 14:23:44 GMT</pubDate>
    <dc:creator>Fernando Boza</dc:creator>
    <dc:date>2010-07-21T14:23:44Z</dc:date>
    <item>
      <title>Set umask for specific sftp users</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/set-umask-for-specific-sftp-users/m-p/4663815#M381277</link>
      <description>How I can Set umask for certain sftp users?</description>
      <pubDate>Tue, 20 Jul 2010 20:06:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/set-umask-for-specific-sftp-users/m-p/4663815#M381277</guid>
      <dc:creator>Fernando Boza</dc:creator>
      <dc:date>2010-07-20T20:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: Set umask for specific sftp users</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/set-umask-for-specific-sftp-users/m-p/4663816#M381278</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;sftp if part of openssh respects user umask, unless overridden in sshd_config for the daemon.&lt;BR /&gt;&lt;BR /&gt;It will never transfer a file as executable.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 20 Jul 2010 20:21:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/set-umask-for-specific-sftp-users/m-p/4663816#M381278</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2010-07-20T20:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: Set umask for specific sftp users</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/set-umask-for-specific-sftp-users/m-p/4663817#M381279</link>
      <description>Actually, sftpd (the remote side daemon) sets the umask value, similar to ftp. However, there appears to be a couple of useful options in sftpd. See man sshd_config. There are two options in the sshd_config file:&lt;BR /&gt; &lt;BR /&gt;PermitUserEnvironment yes &lt;BR /&gt;SftpUmask 027&lt;BR /&gt; &lt;BR /&gt;According to the sshd_config man page, if a local user's environment is permitted, then $HOME/.ssh/environment is read and the values are put in place. I could not get this to work with HP's sshd A.04.20.009. It appeared that the user environment was not implemented.&lt;BR /&gt; &lt;BR /&gt;However, SftpUmask 027 in the sshd_config file did work as expected. As Steven said, the execute bit will never be set. However, the sshd directive is global -- all user files will have the sshd_config umask.&lt;BR /&gt; &lt;BR /&gt;Since you have sftp working, you might consider using scp instead which is ideal for scripts. With scp, you can specify -p to preserve the mode on the remote side.</description>
      <pubDate>Tue, 20 Jul 2010 21:59:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/set-umask-for-specific-sftp-users/m-p/4663817#M381279</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2010-07-20T21:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: Set umask for specific sftp users</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/set-umask-for-specific-sftp-users/m-p/4663818#M381280</link>
      <description>hi Bill&lt;BR /&gt;&lt;BR /&gt;which line should I put the file environment?</description>
      <pubDate>Wed, 21 Jul 2010 14:23:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/set-umask-for-specific-sftp-users/m-p/4663818#M381280</guid>
      <dc:creator>Fernando Boza</dc:creator>
      <dc:date>2010-07-21T14:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: Set umask for specific sftp users</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/set-umask-for-specific-sftp-users/m-p/4663819#M381281</link>
      <description>The man pages say that you can put environment values in the file so what I did was:&lt;BR /&gt; &lt;BR /&gt;echo "SftpUmask 027" &amp;gt; $HOME/.ssh/environment&lt;BR /&gt; &lt;BR /&gt;This assumes that you are logged in as a user. Or replace $HOME with the location of the user's home directory. Be sure to set owner and permissions to: 600. But as I said, this had no effect. The SfpUmask did work in the sshd_config but sets umask for all sftp transfers.</description>
      <pubDate>Wed, 21 Jul 2010 14:54:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/set-umask-for-specific-sftp-users/m-p/4663819#M381281</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2010-07-21T14:54:49Z</dc:date>
    </item>
  </channel>
</rss>

