<?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: Directory permissions in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/directory-permissions/m-p/3064332#M139301</link>
    <description>David as a 4th alternative to Leifs suggestions:&lt;BR /&gt;change inittab to respawn this "daemon" script in run level 3&lt;BR /&gt;&lt;BR /&gt;###############################################&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;cd /your_ftp_dir&lt;BR /&gt;while true&lt;BR /&gt;do&lt;BR /&gt;ll | grep -v total | while read line&lt;BR /&gt; do&lt;BR /&gt; if [ `echo $line | awk '{print $3}'` != ftpuser ] ||  [ `echo $line | awk '{print $4}'` != applgroup ] ||  [ `echo $line | awk '{print $1}'` != '-rwxrwx---' ]&lt;BR /&gt;        then&lt;BR /&gt;        chown ftpuser *&lt;BR /&gt;        chgrp applgroup *&lt;BR /&gt;        chmod 750 *&lt;BR /&gt; fi&lt;BR /&gt; done&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;###############################################&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Bernhard</description>
    <pubDate>Fri, 05 Sep 2003 10:02:55 GMT</pubDate>
    <dc:creator>Bernhard Mueller</dc:creator>
    <dc:date>2003-09-05T10:02:55Z</dc:date>
    <item>
      <title>Directory permissions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/directory-permissions/m-p/3064329#M139298</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have a question about two complete different users that need to have read/write access in the same directory.&lt;BR /&gt;Both users should be able to add files in that dir, but the new files should always have the same ownership :&lt;BR /&gt;&lt;BR /&gt;drwxrwx--- ftpuser  applgroup 1024 /ftp/in&lt;BR /&gt;&lt;BR /&gt;Each file that is created should get above UID and GROUPID OWNER. By setting an s bit on the group does not make any difference. By setting permission as :&lt;BR /&gt;drwxrws--- &lt;BR /&gt;will create files still under it's own USERid. Does anyone know a method how to always set the permission to the above standard ??&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regs David&lt;BR /&gt;</description>
      <pubDate>Fri, 05 Sep 2003 08:42:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/directory-permissions/m-p/3064329#M139298</guid>
      <dc:creator>David_246</dc:creator>
      <dc:date>2003-09-05T08:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: Directory permissions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/directory-permissions/m-p/3064330#M139299</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I don't think there is any direct way to do this. When created files is always owned by the creator. &lt;BR /&gt;Some suggestions:&lt;BR /&gt;&lt;BR /&gt;- Pre-create the files as empty files with correct owner.&lt;BR /&gt;- If possible, have the application to change owner.&lt;BR /&gt;- Running a cron job every 10 minute (for ex.) which find and changes the files with wrong owner.</description>
      <pubDate>Fri, 05 Sep 2003 09:25:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/directory-permissions/m-p/3064330#M139299</guid>
      <dc:creator>Leif Halvarsson_2</dc:creator>
      <dc:date>2003-09-05T09:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: Directory permissions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/directory-permissions/m-p/3064331#M139300</link>
      <description>Hi David, i think this is the correct behaviour.&lt;BR /&gt;&lt;BR /&gt;You must add the two users to a common group, this can be a secondary group, then with the s bit set on in the directory, the two users can share the files in that directory.&lt;BR /&gt;&lt;BR /&gt;The new files created will have user and group permissions and there will be no problems to share.&lt;BR /&gt;&lt;BR /&gt;Frank.</description>
      <pubDate>Fri, 05 Sep 2003 09:26:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/directory-permissions/m-p/3064331#M139300</guid>
      <dc:creator>Francisco J. Soler</dc:creator>
      <dc:date>2003-09-05T09:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: Directory permissions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/directory-permissions/m-p/3064332#M139301</link>
      <description>David as a 4th alternative to Leifs suggestions:&lt;BR /&gt;change inittab to respawn this "daemon" script in run level 3&lt;BR /&gt;&lt;BR /&gt;###############################################&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;cd /your_ftp_dir&lt;BR /&gt;while true&lt;BR /&gt;do&lt;BR /&gt;ll | grep -v total | while read line&lt;BR /&gt; do&lt;BR /&gt; if [ `echo $line | awk '{print $3}'` != ftpuser ] ||  [ `echo $line | awk '{print $4}'` != applgroup ] ||  [ `echo $line | awk '{print $1}'` != '-rwxrwx---' ]&lt;BR /&gt;        then&lt;BR /&gt;        chown ftpuser *&lt;BR /&gt;        chgrp applgroup *&lt;BR /&gt;        chmod 750 *&lt;BR /&gt; fi&lt;BR /&gt; done&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;###############################################&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Bernhard</description>
      <pubDate>Fri, 05 Sep 2003 10:02:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/directory-permissions/m-p/3064332#M139301</guid>
      <dc:creator>Bernhard Mueller</dc:creator>
      <dc:date>2003-09-05T10:02:55Z</dc:date>
    </item>
    <item>
      <title>Re: Directory permissions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/directory-permissions/m-p/3064333#M139302</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;Thanks for all your help !&lt;BR /&gt;Bernhard; It doesn't solve my issue as prefer not to use that many extra entries (I need multiple of these users). Still your time in this deffinitly earnes a 8 points !!&lt;BR /&gt;Thanks for your help&lt;BR /&gt;&lt;BR /&gt;Regs David</description>
      <pubDate>Fri, 05 Sep 2003 11:16:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/directory-permissions/m-p/3064333#M139302</guid>
      <dc:creator>David_246</dc:creator>
      <dc:date>2003-09-05T11:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: Directory permissions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/directory-permissions/m-p/3064334#M139303</link>
      <description>Hi David,&lt;BR /&gt;&lt;BR /&gt;something really alternative....&lt;BR /&gt;Make use of ftpaccess: you can define that files delivered into a certain users' home directory via ftp should be owned by a certain user, belong to a certain group and have certain predefined permissions.&lt;BR /&gt;(man ftpaccess, search for the keyword upload to see the examples.)&lt;BR /&gt;One tricky thing is that the file destination dir must be an ftp users' home directory: in the script below the file david ends in the home dir of the xxxxxx user.&lt;BR /&gt;Another tricky thing is of course to make use of this facility without the user being aware of making an ftp session. &lt;BR /&gt;I have just tried this primitive script, ftpjk, which tries to hide the ftp session for the user:&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;# cd to where the file is&lt;BR /&gt;cd /tmp/jxk&lt;BR /&gt;YOUR_MACHINE=$(uname -n)&lt;BR /&gt;USERNAME=xxxxxx&lt;BR /&gt;PASSWORD=yyy1234&lt;BR /&gt;(&lt;BR /&gt;echo "&lt;BR /&gt;open $YOUR_MACHINE&lt;BR /&gt;user $USERNAME $PASSWORD&lt;BR /&gt;put $1&lt;BR /&gt;close&lt;BR /&gt;"&lt;BR /&gt;) | ftp -i -n&lt;BR /&gt;&lt;BR /&gt;# end of script.&lt;BR /&gt;&lt;BR /&gt;the source file used to put into the xxxxxx users home directory:&lt;BR /&gt;ls -l /tmp/jxk/david&lt;BR /&gt;-rw-r--r--   1 jxk        users            0 Sep  5 14:38 /tmp/jxk/david&lt;BR /&gt;&lt;BR /&gt;the filename used as parameter for the above script:&lt;BR /&gt;# ./ftpjk david&lt;BR /&gt;&lt;BR /&gt;and when david appeared in the xxxxxx users' home dir, it had these permissions:&lt;BR /&gt;-rw-rw-rw-   1 root       dba              0 Sep  5 14:39 david&lt;BR /&gt;&lt;BR /&gt;because of the upload config in /etc/ftpd/ftpaccess.&lt;BR /&gt;Perhaps you can elaborate on it yourself.&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;John K.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 05 Sep 2003 12:12:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/directory-permissions/m-p/3064334#M139303</guid>
      <dc:creator>john korterman</dc:creator>
      <dc:date>2003-09-05T12:12:37Z</dc:date>
    </item>
  </channel>
</rss>

