<?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: File Permission problem in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/file-permission-problem/m-p/3055643#M137458</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;After setting umask 006 i get -rw-rw---- while i create a file. It is ok. but when i use ftp from another machine to put file the permission again changes to -rw-r--r--. &lt;BR /&gt;&lt;BR /&gt;I need  -rw-rw----  when i ftp from another server.&lt;BR /&gt;&lt;BR /&gt;what should be the umask</description>
    <pubDate>Mon, 25 Aug 2003 03:29:42 GMT</pubDate>
    <dc:creator>M. Tariq Ayub</dc:creator>
    <dc:date>2003-08-25T03:29:42Z</dc:date>
    <item>
      <title>File Permission problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-permission-problem/m-p/3055633#M137448</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have crearted a user with umask 022. it should get -wxr-xr-x bu deafault. but when he creats a file it has -rw-r--r-- and this is also true for ftp.&lt;BR /&gt;&lt;BR /&gt;Can any one help me regarding this.</description>
      <pubDate>Mon, 25 Aug 2003 02:22:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-permission-problem/m-p/3055633#M137448</guid>
      <dc:creator>M. Tariq Ayub</dc:creator>
      <dc:date>2003-08-25T02:22:18Z</dc:date>
    </item>
    <item>
      <title>Re: File Permission problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-permission-problem/m-p/3055634#M137449</link>
      <description>The man page for umask explains this. Files *always* start with the permission 666 while directories start with 777. The execute bit is a special case and should not be the norm for plain files since they may not be executable at all. Turning on the execute bit should be an explicit task requiring a decision by the creator of the file, not the default.</description>
      <pubDate>Mon, 25 Aug 2003 02:29:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-permission-problem/m-p/3055634#M137449</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2003-08-25T02:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: File Permission problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-permission-problem/m-p/3055635#M137450</link>
      <description>Bill H. has hit the nail on the head! (When does he not?)  The behavior you are seeing is absolutely normal.&lt;BR /&gt;&lt;BR /&gt;No there is no way to have the execute bit automagically set.  As Bill said, you must explicitly set the e(x)ecute bit if, and only if, it is needed.</description>
      <pubDate>Mon, 25 Aug 2003 02:35:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-permission-problem/m-p/3055635#M137450</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2003-08-25T02:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: File Permission problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-permission-problem/m-p/3055636#M137451</link>
      <description>By default the permission of files are like &lt;BR /&gt;&lt;BR /&gt;directories and exe's 777 -rwxrwxrwx &lt;BR /&gt;other files 666 rw-rw-rw- &lt;BR /&gt;&lt;BR /&gt;i.e.the umask being 000. &lt;BR /&gt;&lt;BR /&gt;When you have umask as 022 then you have &lt;BR /&gt;&lt;BR /&gt;directories as 755 and files as 644 &lt;BR /&gt;&lt;BR /&gt;(subtracting 022 from 777 and 666) &lt;BR /&gt;</description>
      <pubDate>Mon, 25 Aug 2003 03:02:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-permission-problem/m-p/3055636#M137451</guid>
      <dc:creator>T G Manikandan</dc:creator>
      <dc:date>2003-08-25T03:02:54Z</dc:date>
    </item>
    <item>
      <title>Re: File Permission problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-permission-problem/m-p/3055637#M137452</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;but it should have rw permission from group with umask 022.&lt;BR /&gt;&lt;BR /&gt;i am not getting that.</description>
      <pubDate>Mon, 25 Aug 2003 03:06:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-permission-problem/m-p/3055637#M137452</guid>
      <dc:creator>M. Tariq Ayub</dc:creator>
      <dc:date>2003-08-25T03:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: File Permission problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-permission-problem/m-p/3055638#M137453</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;i want to set -rwxrw---- for a user. what should i do. what will be the umask</description>
      <pubDate>Mon, 25 Aug 2003 03:14:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-permission-problem/m-p/3055638#M137453</guid>
      <dc:creator>M. Tariq Ayub</dc:creator>
      <dc:date>2003-08-25T03:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: File Permission problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-permission-problem/m-p/3055639#M137454</link>
      <description>Tariq,&lt;BR /&gt;  As said, the umask is substracted from 777 and 666 for dir and files respectively.&lt;BR /&gt;  r - 4&lt;BR /&gt;  w - 2&lt;BR /&gt;  x - 1&lt;BR /&gt;&lt;BR /&gt;  So for the files with umask 022 the value is 644 which leads to rw-r--r--&lt;BR /&gt;&lt;BR /&gt;  Hope I understood your problem correctly.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Umapathy&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 25 Aug 2003 03:18:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-permission-problem/m-p/3055639#M137454</guid>
      <dc:creator>Umapathy S</dc:creator>
      <dc:date>2003-08-25T03:18:48Z</dc:date>
    </item>
    <item>
      <title>Re: File Permission problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-permission-problem/m-p/3055640#M137455</link>
      <description>022&lt;BR /&gt;&lt;BR /&gt;produces&lt;BR /&gt;-rw-r--r--&lt;BR /&gt;&lt;BR /&gt;i want to set -rwxrw---- for a user. what should i do. what will be the umask&lt;BR /&gt;&lt;BR /&gt;007&lt;BR /&gt;&lt;BR /&gt;will produce -rw-rw-r--&lt;BR /&gt;&lt;BR /&gt;Executable permission isn't done automatically because its a security hazard.  The user needs to make files excutable themselves.&lt;BR /&gt;&lt;BR /&gt;SEP&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 25 Aug 2003 03:21:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-permission-problem/m-p/3055640#M137455</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-08-25T03:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: File Permission problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-permission-problem/m-p/3055641#M137456</link>
      <description>Tariq,&lt;BR /&gt;  The umask will be 006.  After creating the file, set the executable bit for the file like&lt;BR /&gt;&lt;BR /&gt;  chmod u+x a&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Umapathy&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 25 Aug 2003 03:22:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-permission-problem/m-p/3055641#M137456</guid>
      <dc:creator>Umapathy S</dc:creator>
      <dc:date>2003-08-25T03:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: File Permission problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-permission-problem/m-p/3055642#M137457</link>
      <description>umask 017 then &lt;BR /&gt;for directories &amp;amp; exe's it would be&lt;BR /&gt;&lt;BR /&gt;rwxrw----&lt;BR /&gt;&lt;BR /&gt;for files&lt;BR /&gt;&lt;BR /&gt;rw-rw----&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 25 Aug 2003 03:28:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-permission-problem/m-p/3055642#M137457</guid>
      <dc:creator>T G Manikandan</dc:creator>
      <dc:date>2003-08-25T03:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: File Permission problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-permission-problem/m-p/3055643#M137458</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;After setting umask 006 i get -rw-rw---- while i create a file. It is ok. but when i use ftp from another machine to put file the permission again changes to -rw-r--r--. &lt;BR /&gt;&lt;BR /&gt;I need  -rw-rw----  when i ftp from another server.&lt;BR /&gt;&lt;BR /&gt;what should be the umask</description>
      <pubDate>Mon, 25 Aug 2003 03:29:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-permission-problem/m-p/3055643#M137458</guid>
      <dc:creator>M. Tariq Ayub</dc:creator>
      <dc:date>2003-08-25T03:29:42Z</dc:date>
    </item>
    <item>
      <title>Re: File Permission problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-permission-problem/m-p/3055644#M137459</link>
      <description>If you want to do this for ftp&lt;BR /&gt;&lt;BR /&gt;change in your /etc/inetd.conf file as&lt;BR /&gt;&lt;BR /&gt;ftp  stream tcp nowait root /usr/lbin/ftpd  ftpd -l&lt;BR /&gt;to&lt;BR /&gt;&lt;BR /&gt;      ftp  stream tcp nowait root /usr/lbin/ftpd  ftpd -l -u017&lt;BR /&gt;&lt;BR /&gt;Then do a &lt;BR /&gt;&lt;BR /&gt;inetd -c &lt;BR /&gt;&lt;BR /&gt;This will effect for all the users for the ftp.&lt;BR /&gt;&lt;BR /&gt;If you are just trying for some sessions you can just do a &lt;BR /&gt;&lt;BR /&gt;umask 017 from the ftp &lt;BR /&gt;&lt;BR /&gt;ftp &amp;lt;&amp;gt;hostname&amp;gt;&lt;BR /&gt;ftp&amp;gt;umask 017&lt;BR /&gt;ftp&amp;gt;mput &lt;FILE-NAME&gt;&lt;BR /&gt;&lt;BR /&gt;Revert&lt;/FILE-NAME&gt;</description>
      <pubDate>Mon, 25 Aug 2003 03:47:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-permission-problem/m-p/3055644#M137459</guid>
      <dc:creator>T G Manikandan</dc:creator>
      <dc:date>2003-08-25T03:47:35Z</dc:date>
    </item>
    <item>
      <title>Re: File Permission problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-permission-problem/m-p/3055645#M137460</link>
      <description>i cahnged on inetd,conf and it works perfectly.&lt;BR /&gt;&lt;BR /&gt;Can i do it for a specific user.&lt;BR /&gt;&lt;BR /&gt;if i set 017 then is not owner will get rwx permission.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 25 Aug 2003 04:05:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-permission-problem/m-p/3055645#M137460</guid>
      <dc:creator>M. Tariq Ayub</dc:creator>
      <dc:date>2003-08-25T04:05:54Z</dc:date>
    </item>
  </channel>
</rss>

