<?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: Setting umask for incoming sftp users in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/setting-umask-for-incoming-sftp-users/m-p/5148110#M50210</link>
    <description>looks similar to ~home/.netrc file on HP-UX .</description>
    <pubDate>Fri, 02 Jan 2009 01:44:35 GMT</pubDate>
    <dc:creator>skt_skt</dc:creator>
    <dc:date>2009-01-02T01:44:35Z</dc:date>
    <item>
      <title>Setting umask for incoming sftp users</title>
      <link>https://community.hpe.com/t5/operating-system-linux/setting-umask-for-incoming-sftp-users/m-p/5148108#M50208</link>
      <description>We have users that send files to our server via sftp... We normallyhave umask set to 022 but for these files we would like to force a umask of 002...&lt;BR /&gt;&lt;BR /&gt;I've tried to change in the .bash_profile but does not seem to make any difference...&lt;BR /&gt;&lt;BR /&gt;Is there a way to change this???&lt;BR /&gt;&lt;BR /&gt;We are running Red Hat Version 5 on this server..</description>
      <pubDate>Mon, 29 Dec 2008 20:21:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/setting-umask-for-incoming-sftp-users/m-p/5148108#M50208</guid>
      <dc:creator>MikeL_4</dc:creator>
      <dc:date>2008-12-29T20:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: Setting umask for incoming sftp users</title>
      <link>https://community.hpe.com/t5/operating-system-linux/setting-umask-for-incoming-sftp-users/m-p/5148109#M50209</link>
      <description>Found the resolution:&lt;BR /&gt;&lt;BR /&gt;What I found is that according to the bash man page, .bash_profile is executed for login shells, while .bashrc is executed for interactive non-login shells.&lt;BR /&gt;&lt;BR /&gt;[ftpuser=&amp;gt;]$ cat ./.bashrc&lt;BR /&gt;# .bashrc&lt;BR /&gt;&lt;BR /&gt;# Source global definitions&lt;BR /&gt;if [ -f /etc/bashrc ]; then&lt;BR /&gt;        . /etc/bashrc&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;# User specific aliases and functions&lt;BR /&gt;&lt;BR /&gt;umask 0002&lt;BR /&gt;&lt;BR /&gt;#EOF</description>
      <pubDate>Mon, 29 Dec 2008 21:13:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/setting-umask-for-incoming-sftp-users/m-p/5148109#M50209</guid>
      <dc:creator>MikeL_4</dc:creator>
      <dc:date>2008-12-29T21:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: Setting umask for incoming sftp users</title>
      <link>https://community.hpe.com/t5/operating-system-linux/setting-umask-for-incoming-sftp-users/m-p/5148110#M50210</link>
      <description>looks similar to ~home/.netrc file on HP-UX .</description>
      <pubDate>Fri, 02 Jan 2009 01:44:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/setting-umask-for-incoming-sftp-users/m-p/5148110#M50210</guid>
      <dc:creator>skt_skt</dc:creator>
      <dc:date>2009-01-02T01:44:35Z</dc:date>
    </item>
  </channel>
</rss>

