<?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 User mode in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/user-mode/m-p/3606178#M233674</link>
    <description>We have a common directory , now we want all the files under this directory are mode 664 because we want all  users in the same group can delete it , but the umask we set is 0022 , so the new files are in 644 mode when the user newly create it , how to make sure all files ( include hidden files ) are mode 664 ? But I think set a crontab job is not work because the time interval is 1 minutes , is there other suggestion ? thx</description>
    <pubDate>Wed, 17 Aug 2005 20:59:11 GMT</pubDate>
    <dc:creator>hangyu</dc:creator>
    <dc:date>2005-08-17T20:59:11Z</dc:date>
    <item>
      <title>User mode</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-mode/m-p/3606178#M233674</link>
      <description>We have a common directory , now we want all the files under this directory are mode 664 because we want all  users in the same group can delete it , but the umask we set is 0022 , so the new files are in 644 mode when the user newly create it , how to make sure all files ( include hidden files ) are mode 664 ? But I think set a crontab job is not work because the time interval is 1 minutes , is there other suggestion ? thx</description>
      <pubDate>Wed, 17 Aug 2005 20:59:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-mode/m-p/3606178#M233674</guid>
      <dc:creator>hangyu</dc:creator>
      <dc:date>2005-08-17T20:59:11Z</dc:date>
    </item>
    <item>
      <title>Re: User mode</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-mode/m-p/3606179#M233675</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;change the umask to 0002.&lt;BR /&gt;&lt;BR /&gt;GOOD LUCK!</description>
      <pubDate>Wed, 17 Aug 2005 21:20:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-mode/m-p/3606179#M233675</guid>
      <dc:creator>Warren_9</dc:creator>
      <dc:date>2005-08-17T21:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: User mode</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-mode/m-p/3606180#M233676</link>
      <description>umask only masks the default file and directory permissions&lt;BR /&gt;&lt;BR /&gt;default file permission: -rw-rw-rw&lt;BR /&gt;default dir permission: -rwxrwxrwx&lt;BR /&gt;&lt;BR /&gt;if you apply umkas of 022&lt;BR /&gt;&lt;BR /&gt;access permissions of the new file created would be = 666 - 022 = 644 (rw-r--r--)&lt;BR /&gt;&lt;BR /&gt;for dir = 777 - 022 = 755 (rwxr-xr-x)&lt;BR /&gt;&lt;BR /&gt;If you need to set an executable bit from a shell created file, you must issue an explicit chmod after first creating the file.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 17 Aug 2005 21:27:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-mode/m-p/3606180#M233676</guid>
      <dc:creator>morganelan</dc:creator>
      <dc:date>2005-08-17T21:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: User mode</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-mode/m-p/3606181#M233677</link>
      <description>thx replies,&lt;BR /&gt;&lt;BR /&gt;I understand set the umask can change the file permission , but if change it , all the user created files are in the new mode ( 664 ) , I just want the files in the specific directory is 664 , not all the files in the system , could suggest how to make it ? thx.</description>
      <pubDate>Wed, 17 Aug 2005 21:48:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-mode/m-p/3606181#M233677</guid>
      <dc:creator>hangyu</dc:creator>
      <dc:date>2005-08-17T21:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: User mode</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-mode/m-p/3606182#M233678</link>
      <description>Hangyu,&lt;BR /&gt;&lt;BR /&gt;To achieve what you want the only way is to run a cron job and you will have to bear with the 1 minute delay because umask is for the id only and not for the filesystem&lt;BR /&gt;&lt;BR /&gt;thanks&lt;BR /&gt;DP</description>
      <pubDate>Wed, 17 Aug 2005 23:33:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-mode/m-p/3606182#M233678</guid>
      <dc:creator>Devesh Pant_1</dc:creator>
      <dc:date>2005-08-17T23:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: User mode</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-mode/m-p/3606183#M233679</link>
      <description>You must create a shell script that touch the new files in certain folder and then issue chmod 664 * command in that script.&lt;BR /&gt;&lt;BR /&gt;example script file:&lt;BR /&gt;&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;touch /newdir/new-file&lt;BR /&gt;chmod 664 /newdir/new-file&lt;BR /&gt;</description>
      <pubDate>Wed, 17 Aug 2005 23:39:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-mode/m-p/3606183#M233679</guid>
      <dc:creator>morganelan</dc:creator>
      <dc:date>2005-08-17T23:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: User mode</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-mode/m-p/3606184#M233680</link>
      <description>Why don't you make the directory writeable by the group in question? Simply do a chmod 77x on the "common directory".&lt;BR /&gt;&lt;BR /&gt;This will allow all members of the group to modify the directory, this will allow them the ability to write to any file in the directory. This would allow them to overwrite the 644 file settings and delete the files.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 18 Aug 2005 00:39:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-mode/m-p/3606184#M233680</guid>
      <dc:creator>Michael Jorgensen</dc:creator>
      <dc:date>2005-08-18T00:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: User mode</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-mode/m-p/3606185#M233681</link>
      <description>You can make a small script in the .profile&lt;BR /&gt;&lt;BR /&gt;alias for md, touch, and the commands creating files and directories&lt;BR /&gt;&lt;BR /&gt;if pwd = "directory_you_wanted" &amp;amp;&amp;amp; user ="you_wanted"&lt;BR /&gt;if $1==directory&lt;BR /&gt;chmod 774 $1&lt;BR /&gt;else&lt;BR /&gt;chmod 664 $1&lt;BR /&gt;fi&lt;BR /&gt;fi</description>
      <pubDate>Thu, 18 Aug 2005 01:21:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-mode/m-p/3606185#M233681</guid>
      <dc:creator>Vibhor Kumar Agarwal</dc:creator>
      <dc:date>2005-08-18T01:21:20Z</dc:date>
    </item>
  </channel>
</rss>

