<?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 FTP umask per user in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-ftp-umask-per-user/m-p/2590103#M32764</link>
    <description>&lt;BR /&gt;You can only set the ftp umask globally in /etc/inetd.conf, not for a particular user or area. The only way to do what you want is have a cron job which runs frequently which detects new ftp files to certain areas/users and then changes their permissions.</description>
    <pubDate>Fri, 05 Oct 2001 06:39:55 GMT</pubDate>
    <dc:creator>Stefan Farrelly</dc:creator>
    <dc:date>2001-10-05T06:39:55Z</dc:date>
    <item>
      <title>Setting FTP umask per user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-ftp-umask-per-user/m-p/2590101#M32762</link>
      <description>Hi everybody,&lt;BR /&gt;the default ftpd permission is 027. Can I set the umask&lt;BR /&gt;per user/group basis. If I do ftp from MS-Dos to Unix&lt;BR /&gt;the file takes permissions of 640. i want this file to be readable by all. But this has to only for that particular area.&lt;BR /&gt;&lt;BR /&gt;thanks&lt;BR /&gt;Prosanjit</description>
      <pubDate>Fri, 05 Oct 2001 06:31:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-ftp-umask-per-user/m-p/2590101#M32762</guid>
      <dc:creator>PROSANJIT MALLICK</dc:creator>
      <dc:date>2001-10-05T06:31:06Z</dc:date>
    </item>
    <item>
      <title>Re: Setting FTP umask per user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-ftp-umask-per-user/m-p/2590102#M32763</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;1.  put -u &lt;UMASK&gt; option to ftp line in /etc/inetd.conf file&lt;BR /&gt;2. inetd -c &lt;BR /&gt;3. new ftp session will work with new umask&lt;BR /&gt;&lt;BR /&gt;Later,&lt;/UMASK&gt;</description>
      <pubDate>Fri, 05 Oct 2001 06:37:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-ftp-umask-per-user/m-p/2590102#M32763</guid>
      <dc:creator>Marcin Wicinski</dc:creator>
      <dc:date>2001-10-05T06:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: Setting FTP umask per user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-ftp-umask-per-user/m-p/2590103#M32764</link>
      <description>&lt;BR /&gt;You can only set the ftp umask globally in /etc/inetd.conf, not for a particular user or area. The only way to do what you want is have a cron job which runs frequently which detects new ftp files to certain areas/users and then changes their permissions.</description>
      <pubDate>Fri, 05 Oct 2001 06:39:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-ftp-umask-per-user/m-p/2590103#M32764</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2001-10-05T06:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: Setting FTP umask per user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-ftp-umask-per-user/m-p/2590104#M32765</link>
      <description>You can do something like this by using the ftpaccess file to designate that all files uploaded to a particular area gets specified permissions and a specified owned/group.&lt;BR /&gt;&lt;BR /&gt;First you have to enable the ftpaccess file by specifying the -a option for the ftp entry in the /etc/inetd.conf file and then restart inetd (inetd -c).&lt;BR /&gt;&lt;BR /&gt;Then set up your ftpaccess file with the upload directive as shown:&lt;BR /&gt;&lt;BR /&gt;upload root-dir dirglob yes|no owner group mode dirs|nodirs &lt;BR /&gt;&lt;BR /&gt;Define a directory with dirglob that permits or denies uploads.&lt;BR /&gt;&lt;BR /&gt;If it does permit uploads, all files will be owned by owner and group and will have the permissions set according to mode.&lt;BR /&gt;&lt;BR /&gt;Directories are matched on a best-match basis.&lt;BR /&gt;&lt;BR /&gt;For example: &lt;BR /&gt;&lt;BR /&gt;         upload  /var/ftp  *               no &lt;BR /&gt;         upload  /var/ftp  /incoming       yes  ftp  daemon  0666 &lt;BR /&gt;         upload  /var/ftp  /incoming/gifs  yes  jlc  guest   0600  nodirs &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;This would only allow uploads into /incoming and /incoming/gifs. Files that were uploaded to /incoming would be owned by ftp/daemon and would have permissions of 0666. File uploaded to /incoming/gifs would be owned by jlc/guest and have permissions of 0600. Note that the root-dir here must match the home directory specified in the password database for the ftp user.&lt;BR /&gt;&lt;BR /&gt;The optional dirs and nodirs keywords can be specified to allow or disallow the creation of new subdirectories using the mkdir command.&lt;BR /&gt;&lt;BR /&gt;The upload keyword only applies to users who have a home directory (the argument to the chroot()) of root-dir.&lt;BR /&gt;&lt;BR /&gt;See the ftpd(1M) and ftpaccess(4) man pages for more details.&lt;BR /&gt;&lt;BR /&gt;-Santosh</description>
      <pubDate>Fri, 05 Oct 2001 08:00:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-ftp-umask-per-user/m-p/2590104#M32765</guid>
      <dc:creator>Santosh Nair_1</dc:creator>
      <dc:date>2001-10-05T08:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: Setting FTP umask per user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-ftp-umask-per-user/m-p/2590105#M32766</link>
      <description>Also, when a user connecting to the server puts a file they can set the file permissions of the file through their session, using the site command, eg:&lt;BR /&gt;&lt;BR /&gt;$ ftp&lt;BR /&gt;ftp&amp;gt; open foo&lt;BR /&gt;ftp&amp;gt; user username password&lt;BR /&gt;ftp&amp;gt; put bar.txt&lt;BR /&gt;ftp&amp;gt; site chmod 0764 bar.txt&lt;BR /&gt;&lt;BR /&gt;or:&lt;BR /&gt;&lt;BR /&gt;ftp&amp;gt; user username password&lt;BR /&gt;ftp&amp;gt; site umask 022&lt;BR /&gt;ftp&amp;gt; put bar.txt&lt;BR /&gt;&lt;BR /&gt;dave&lt;BR /&gt;</description>
      <pubDate>Fri, 05 Oct 2001 12:49:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-ftp-umask-per-user/m-p/2590105#M32766</guid>
      <dc:creator>David Lodge</dc:creator>
      <dc:date>2001-10-05T12:49:30Z</dc:date>
    </item>
  </channel>
</rss>

