<?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: How to create ACLs in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-acls/m-p/2894903#M103803</link>
    <description>Hi Ralph,&lt;BR /&gt;&lt;BR /&gt;If you are using vxfs, it needs to be JFS 3.3 version 4, which is the default on 11i. This is an example:&lt;BR /&gt;&lt;BR /&gt;# pwd&lt;BR /&gt;/home/james&lt;BR /&gt;# bdf /home|tail -1                    &lt;BR /&gt;/dev/vg00/lvol5      57344   17261   37623   31% /home&lt;BR /&gt;# fstyp -v /dev/vg00/lvol5|grep -i vers&lt;BR /&gt;version: 4&lt;BR /&gt;# ll james.ksh       &lt;BR /&gt;-r-xr-----   1 james      users           31 Dec 31 12:27 james.ksh&lt;BR /&gt;# getacl james.ksh&lt;BR /&gt;# file: james.ksh&lt;BR /&gt;# owner: james&lt;BR /&gt;# group: users&lt;BR /&gt;user::r-x&lt;BR /&gt;group::r--&lt;BR /&gt;class:r--&lt;BR /&gt;other:---&lt;BR /&gt;# setacl -m user:oracle:r-x james.ksh&lt;BR /&gt;# getacl james.ksh                   &lt;BR /&gt;# file: james.ksh&lt;BR /&gt;# owner: james&lt;BR /&gt;# group: users&lt;BR /&gt;user::r-x&lt;BR /&gt;user:oracle:r-x&lt;BR /&gt;group::r--&lt;BR /&gt;class:r-x&lt;BR /&gt;other:---&lt;BR /&gt;&lt;BR /&gt;Please see the getacl and setacl manpages.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;James.&lt;BR /&gt;</description>
    <pubDate>Mon, 03 Feb 2003 12:34:16 GMT</pubDate>
    <dc:creator>James Murtagh</dc:creator>
    <dc:date>2003-02-03T12:34:16Z</dc:date>
    <item>
      <title>How to create ACLs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-acls/m-p/2894897#M103797</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I have the requirement to grant access to a certain configuration file to a certain account at a level of finer granularity than what standard Unix file permission modes allow.&lt;BR /&gt;&lt;BR /&gt;Though I could well use sudo to this end I would like to find out how this can be accomplished by ACLs, as I haven't used them before and want to get familiar with this feature of modern Unices.&lt;BR /&gt;&lt;BR /&gt;Despite having read the manpages of "acl", "chacl", "setacl" etc. I yet haven't got a clue how to create an ACL for a file to start with.&lt;BR /&gt;&lt;BR /&gt;As I had to realize setacl() is a system call, but if possible I'd like to avoid having to code something in C first just to get my first ACL.&lt;BR /&gt;Or is one expected to create an ACL manually by simply editing a file's ACL-file that includes the special Operator Form syntax mentioned in the manpages?&lt;BR /&gt;But then I still haven't found out what this file needs to be named.&lt;BR /&gt;&lt;BR /&gt;I tried these for a test on a left over  nohup.out file:&lt;BR /&gt;&lt;BR /&gt;# chacl -Z nohup.out&lt;BR /&gt;chacl: file "nohup.out": Function is not available (errno = 251)&lt;BR /&gt;# chacl '%.% =' nohup.out&lt;BR /&gt;chacl: file "nohup.out": Function is not available (errno = 251)&lt;BR /&gt;&lt;BR /&gt;Hm, looks like something more is still required.&lt;BR /&gt;&lt;BR /&gt;From Linux I remember to have read in some Howto that in order to make your Linux ACL aware the kernel first needs to be patched.&lt;BR /&gt;&lt;BR /&gt;Does the same hold true for the HP-UX kernel (i.e. is the prior installation of some SW or patch required)?&lt;BR /&gt;I always thought "grown" Unices such as HP-UX, Solaris, AIX are ACL aware per se.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Rgds.&lt;BR /&gt;&lt;BR /&gt;Ralph</description>
      <pubDate>Mon, 03 Feb 2003 09:39:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-acls/m-p/2894897#M103797</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2003-02-03T09:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to create ACLs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-acls/m-p/2894898#M103798</link>
      <description>You do it like this;&lt;BR /&gt;&lt;BR /&gt;cd /tmp&lt;BR /&gt;touch t&lt;BR /&gt;lsacl t&lt;BR /&gt;(shows acl values)&lt;BR /&gt;chacl "(%.users,rwx)" t&lt;BR /&gt;lsacl t&lt;BR /&gt;This now shows youve added permissions for the *.users group to rwx to file t.&lt;BR /&gt;</description>
      <pubDate>Mon, 03 Feb 2003 09:46:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-acls/m-p/2894898#M103798</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2003-02-03T09:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to create ACLs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-acls/m-p/2894899#M103799</link>
      <description>If I remember correctly you require Online JFS(Online JFs) version 3 and above to support ACLs.</description>
      <pubDate>Mon, 03 Feb 2003 09:47:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-acls/m-p/2894899#M103799</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2003-02-03T09:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to create ACLs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-acls/m-p/2894900#M103800</link>
      <description>oops, change the cd /tmp to cd /stand (works on hfs).&lt;BR /&gt;</description>
      <pubDate>Mon, 03 Feb 2003 09:47:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-acls/m-p/2894900#M103800</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2003-02-03T09:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to create ACLs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-acls/m-p/2894901#M103801</link>
      <description>Nope, doesnt work on 11 or 11i with OnlineJfS or JFS v3.3 installed. I dont think ACL's are supported at all on vxfs, only hfs.&lt;BR /&gt;</description>
      <pubDate>Mon, 03 Feb 2003 09:50:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-acls/m-p/2894901#M103801</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2003-02-03T09:50:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to create ACLs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-acls/m-p/2894902#M103802</link>
      <description>Well, first question is what file system type are you doing this on?&lt;BR /&gt;The standard commands are for HFS file systems only.&lt;BR /&gt;If you want to do this on Vxfs file systems, you must be running with JFS 3.3 file systems, and then you use separate commands for these types of ACL's, e.g. getacl is JFS only&lt;BR /&gt;</description>
      <pubDate>Mon, 03 Feb 2003 09:52:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-acls/m-p/2894902#M103802</guid>
      <dc:creator>melvyn burnard</dc:creator>
      <dc:date>2003-02-03T09:52:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to create ACLs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-acls/m-p/2894903#M103803</link>
      <description>Hi Ralph,&lt;BR /&gt;&lt;BR /&gt;If you are using vxfs, it needs to be JFS 3.3 version 4, which is the default on 11i. This is an example:&lt;BR /&gt;&lt;BR /&gt;# pwd&lt;BR /&gt;/home/james&lt;BR /&gt;# bdf /home|tail -1                    &lt;BR /&gt;/dev/vg00/lvol5      57344   17261   37623   31% /home&lt;BR /&gt;# fstyp -v /dev/vg00/lvol5|grep -i vers&lt;BR /&gt;version: 4&lt;BR /&gt;# ll james.ksh       &lt;BR /&gt;-r-xr-----   1 james      users           31 Dec 31 12:27 james.ksh&lt;BR /&gt;# getacl james.ksh&lt;BR /&gt;# file: james.ksh&lt;BR /&gt;# owner: james&lt;BR /&gt;# group: users&lt;BR /&gt;user::r-x&lt;BR /&gt;group::r--&lt;BR /&gt;class:r--&lt;BR /&gt;other:---&lt;BR /&gt;# setacl -m user:oracle:r-x james.ksh&lt;BR /&gt;# getacl james.ksh                   &lt;BR /&gt;# file: james.ksh&lt;BR /&gt;# owner: james&lt;BR /&gt;# group: users&lt;BR /&gt;user::r-x&lt;BR /&gt;user:oracle:r-x&lt;BR /&gt;group::r--&lt;BR /&gt;class:r-x&lt;BR /&gt;other:---&lt;BR /&gt;&lt;BR /&gt;Please see the getacl and setacl manpages.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;James.&lt;BR /&gt;</description>
      <pubDate>Mon, 03 Feb 2003 12:34:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-acls/m-p/2894903#M103803</guid>
      <dc:creator>James Murtagh</dc:creator>
      <dc:date>2003-02-03T12:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to create ACLs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-acls/m-p/2894904#M103804</link>
      <description>It can only work with JFS version 3.3(minimum level)&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 03 Feb 2003 12:53:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-acls/m-p/2894904#M103804</guid>
      <dc:creator>T G Manikandan</dc:creator>
      <dc:date>2003-02-03T12:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to create ACLs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-acls/m-p/2894905#M103805</link>
      <description>Melvyn,&lt;BR /&gt;&lt;BR /&gt;I'm trying this on an vxfs filesystem.&lt;BR /&gt;&lt;BR /&gt;Didn't know that it should only work on hfs.&lt;BR /&gt;Then it'd be of no use for me since only /stand on our boxes uses the "high-performance file system".&lt;BR /&gt;&lt;BR /&gt;How can I find out the version (i.e. release) of vxfs our filesystems are on?&lt;BR /&gt;&lt;BR /&gt;E.g. this is jfs-related software on the box:&lt;BR /&gt;&lt;BR /&gt;# swlist|grep -i jfs&lt;BR /&gt;  B3929BA                       B.11.00        HP OnLineJFS (Advanced VxFS) &lt;BR /&gt;  PHKL_18452                    1.0            Invalid I/O sizes from JFS causes hangs &lt;BR /&gt;  PHKL_18800                    1.0            Cumulative JFS patch - panic:dirty inval &lt;BR /&gt;  PHKL_18801                    1.0            Fix for JFS fsadm ENOSPC errors &lt;BR /&gt;  PHKL_19991                    1.0            Fixes mmap &amp;amp; I/O coherency, enables JFS ACLs &lt;BR /&gt;</description>
      <pubDate>Mon, 03 Feb 2003 12:54:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-acls/m-p/2894905#M103805</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2003-02-03T12:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to create ACLs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-acls/m-p/2894906#M103806</link>
      <description>white paper for acl&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.docs.hp.com/hpux/onlinedocs/os/jfs_acl.pdf" target="_blank"&gt;http://www.docs.hp.com/hpux/onlinedocs/os/jfs_acl.pdf&lt;/A&gt;</description>
      <pubDate>Mon, 03 Feb 2003 12:59:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-acls/m-p/2894906#M103806</guid>
      <dc:creator>T G Manikandan</dc:creator>
      <dc:date>2003-02-03T12:59:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to create ACLs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-acls/m-p/2894907#M103807</link>
      <description>Shoot,&lt;BR /&gt;looks my vxfs release isn't prepared for ACLs:&lt;BR /&gt;&lt;BR /&gt;# fstyp -v $(bdf .|awk '$1~/dev/{print $1}')|grep version&lt;BR /&gt;version: 3&lt;BR /&gt;&lt;BR /&gt;:-(&lt;BR /&gt;&lt;BR /&gt;Ok, back to sudo...</description>
      <pubDate>Mon, 03 Feb 2003 13:27:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-acls/m-p/2894907#M103807</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2003-02-03T13:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to create ACLs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-acls/m-p/2894908#M103808</link>
      <description>Hi Ralph,&lt;BR /&gt;&lt;BR /&gt;If you have JFS 3.1 you should be able to upgrade to 3.3 at no extra cost. The following link is from the software recovery handbook written by the German Response Centre Engineers and describes the different versions, how to upgrade etc and is very good.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://us-support3.external.hp.com/iv/data/documents/DE_SW_UX_swrec_EN_01_E/JFS.pdf" target="_blank"&gt;http://us-support3.external.hp.com/iv/data/documents/DE_SW_UX_swrec_EN_01_E/JFS.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;James.</description>
      <pubDate>Mon, 03 Feb 2003 13:37:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-acls/m-p/2894908#M103808</guid>
      <dc:creator>James Murtagh</dc:creator>
      <dc:date>2003-02-03T13:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to create ACLs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-acls/m-p/2894909#M103809</link>
      <description>ACLs.... I haven't had to think about ACLs since the old Apollo Domain/OS days.....</description>
      <pubDate>Tue, 04 Feb 2003 13:56:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-acls/m-p/2894909#M103809</guid>
      <dc:creator>Greg OBarr</dc:creator>
      <dc:date>2003-02-04T13:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to create ACLs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-acls/m-p/2894910#M103810</link>
      <description>Hi guys&lt;BR /&gt;&lt;BR /&gt;I certainly learnt something here ie that I can't use ACL's if I haven't got HFS or OnlineJFS3.3 at least.&lt;BR /&gt;&lt;BR /&gt;My scenario, a client of mine need to give some people read access to files owned by root. ACL's would be perfect, but is now out of the question since they don't have JFS.&lt;BR /&gt;Other option would be to copy the file and change the permissions, but that's probably not a good idea since the file can be quite large and waste space (that I don't have!) :-)&lt;BR /&gt;&lt;BR /&gt;What other options do I have to give these certain users access to the required files?&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;BR /&gt;George</description>
      <pubDate>Thu, 29 May 2003 05:09:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-acls/m-p/2894910#M103810</guid>
      <dc:creator>George Rudman</dc:creator>
      <dc:date>2003-05-29T05:09:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to create ACLs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-acls/m-p/2894911#M103811</link>
      <description>Maybe you could try this:&lt;BR /&gt;&lt;BR /&gt;1) create a new group for this access in /etc/group&lt;BR /&gt;2) change group ownership of these files to this new group and change group permissions to r-- on these files&lt;BR /&gt;3) add the users to this group who need read access to these files.&lt;BR /&gt;</description>
      <pubDate>Thu, 29 May 2003 12:24:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-acls/m-p/2894911#M103811</guid>
      <dc:creator>Greg OBarr</dc:creator>
      <dc:date>2003-05-29T12:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to create ACLs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-acls/m-p/2894912#M103812</link>
      <description>Hi&lt;BR /&gt;I played around with this idea and came up with the following.&lt;BR /&gt;&lt;BR /&gt;Take the following file:&lt;BR /&gt;-rwxr-x---   1 root       mail            314 Dec 21  2001 filename&lt;BR /&gt;In this case only root and users in the "mail" group have read access to the file.  Now I create a separate group, say "test", and add all the users currently in the "mail" group to it as their secondary group as well as add the id's of people you require to have access on a secondary level.&lt;BR /&gt;&lt;BR /&gt;Thus the file would look like this :&lt;BR /&gt;-rwxr-xr--   1 root       test            314 Dec 21  2001 filename&lt;BR /&gt;&lt;BR /&gt;Now, all previous users from the "mail" group(which are only root) still have their original access plus the additional users also have that same access.&lt;BR /&gt;The problem here is that the additional users now have read and write access where we originally needed only read access.  The only solution here is to change the group permission to read only access to look like this :&lt;BR /&gt;-rwxr--r--   1 root       test            314 Dec 21  2001 filename&lt;BR /&gt;&lt;BR /&gt;The most system groups only includes root as a member, so by changing this group permission will have no impact since root is the owner and still have full access. &lt;BR /&gt;&lt;BR /&gt;To conclude, I can only implement this solution where we can change the permissions to read only for the group without decreasing the normal users' permission in the current group (ie "mail" in my example).  In this example only root is in the "mail" group so this can be done, but once there are other id's in the group as well I cannot change the group permission, because this will affectively decrease their permissions which can lead to other problems.&lt;BR /&gt;&lt;BR /&gt;Thanks for the feedback.&lt;BR /&gt;George</description>
      <pubDate>Fri, 30 May 2003 06:50:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-acls/m-p/2894912#M103812</guid>
      <dc:creator>George Rudman</dc:creator>
      <dc:date>2003-05-30T06:50:30Z</dc:date>
    </item>
  </channel>
</rss>

