<?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: permissions of a link in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/permissions-of-a-link/m-p/3240868#M173643</link>
    <description>For those of us somewhat below the status of guru, can someone elaborate on why you would want to change the permissions of a link, when I understand that the permissions are ignored anyway?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;CW</description>
    <pubDate>Wed, 07 Apr 2004 03:26:38 GMT</pubDate>
    <dc:creator>Chris Watson</dc:creator>
    <dc:date>2004-04-07T03:26:38Z</dc:date>
    <item>
      <title>permissions of a link</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/permissions-of-a-link/m-p/3240860#M173635</link>
      <description>How do I set the permissions of symbolic link</description>
      <pubDate>Tue, 06 Apr 2004 04:56:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/permissions-of-a-link/m-p/3240860#M173635</guid>
      <dc:creator>N.D</dc:creator>
      <dc:date>2004-04-06T04:56:36Z</dc:date>
    </item>
    <item>
      <title>Re: permissions of a link</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/permissions-of-a-link/m-p/3240861#M173636</link>
      <description>you cannot change the permissions of a link.&lt;BR /&gt;&lt;BR /&gt;You should re-create the link to change its permissions.&lt;BR /&gt;Re-create the link as that specific user which you are changing the permissions</description>
      <pubDate>Tue, 06 Apr 2004 05:00:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/permissions-of-a-link/m-p/3240861#M173636</guid>
      <dc:creator>T G Manikandan</dc:creator>
      <dc:date>2004-04-06T05:00:44Z</dc:date>
    </item>
    <item>
      <title>Re: permissions of a link</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/permissions-of-a-link/m-p/3240862#M173637</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Normaly you can not change the permissions of a link. Attaching a binary file which can change the permission.&lt;BR /&gt;&lt;BR /&gt;Filename is lchmod.&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;Robert-Jan</description>
      <pubDate>Tue, 06 Apr 2004 05:02:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/permissions-of-a-link/m-p/3240862#M173637</guid>
      <dc:creator>Robert-Jan Goossens</dc:creator>
      <dc:date>2004-04-06T05:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: permissions of a link</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/permissions-of-a-link/m-p/3240863#M173638</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You can not change the rights of a symbolic link,&lt;BR /&gt;&lt;BR /&gt;check the chmod man page:&lt;BR /&gt;&lt;BR /&gt; If chmod is used on a symbolic link, the mode of the file referred to&lt;BR /&gt;      by the link is changed.&lt;BR /&gt;&lt;BR /&gt;You can do a chown with the -h option.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;&lt;BR /&gt;Gideon</description>
      <pubDate>Tue, 06 Apr 2004 05:05:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/permissions-of-a-link/m-p/3240863#M173638</guid>
      <dc:creator>G. Vrijhoeven</dc:creator>
      <dc:date>2004-04-06T05:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: permissions of a link</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/permissions-of-a-link/m-p/3240864#M173639</link>
      <description>man ln has following to say:&lt;BR /&gt;&lt;BR /&gt;Symbolic links are created with the ownership of the creator and the permissions are of the creator's current umask.  Once created, the symbolic link ownership and permissions will not change, since the mode and ownership of the symbolic link is ignored by the system.&lt;BR /&gt;&lt;BR /&gt;If file1 is a file and new_file is a link to an existing file or an existing file with other links, new_file is disassociated from the existing file and links and linked to file1.  When ln creates a link to a new or existing file name, ownerships and permissions are always identical to those for the file to which it is linked.  If chown, chgrp, or chmod is used to change ownership or permissions of a file&lt;BR /&gt;or link, the change applies to the file and all associated links. The last modification time and last access time of the file and all associated links are identical (see chown(1) and chmod(1)).</description>
      <pubDate>Tue, 06 Apr 2004 05:14:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/permissions-of-a-link/m-p/3240864#M173639</guid>
      <dc:creator>Sanjay Kumar Suri</dc:creator>
      <dc:date>2004-04-06T05:14:57Z</dc:date>
    </item>
    <item>
      <title>Re: permissions of a link</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/permissions-of-a-link/m-p/3240865#M173640</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;as already said you cannot change permissions on link. Then:&lt;BR /&gt;&lt;BR /&gt;# touch pippo&lt;BR /&gt;# ll pippo&lt;BR /&gt;-rw-r--r--   1 root       sys              0 Apr  6 12:02 pippo&lt;BR /&gt;# umask u=rw,g=r,o=r&lt;BR /&gt;# ln -s pippo peppe&lt;BR /&gt;# ll peppe&lt;BR /&gt;lrw-r--r--   1 root       sys              5 Apr  6 12:03 peppe -&amp;gt; pippo&lt;BR /&gt;&lt;BR /&gt;Anyway you can use umask (man umask for more details) in order to change umask on your need.&lt;BR /&gt;&lt;BR /&gt;# umask -S&lt;BR /&gt;to see the current setting for umask.&lt;BR /&gt;&lt;BR /&gt;HTH.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Ettore</description>
      <pubDate>Tue, 06 Apr 2004 05:16:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/permissions-of-a-link/m-p/3240865#M173640</guid>
      <dc:creator>Fabio Ettore</dc:creator>
      <dc:date>2004-04-06T05:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: permissions of a link</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/permissions-of-a-link/m-p/3240866#M173641</link>
      <description>The permissions of symbolic link are create together creating of link.&lt;BR /&gt;After change not possible.&lt;BR /&gt;Bruno</description>
      <pubDate>Tue, 06 Apr 2004 07:38:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/permissions-of-a-link/m-p/3240866#M173641</guid>
      <dc:creator>Bruno Ganino</dc:creator>
      <dc:date>2004-04-06T07:38:34Z</dc:date>
    </item>
    <item>
      <title>Re: permissions of a link</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/permissions-of-a-link/m-p/3240867#M173642</link>
      <description>The permissions of a symbolic CAN be changed; there is an undocumented system call, lchmod, which will do just that.&lt;BR /&gt;&lt;BR /&gt;Here is an attached C source for a program called lchmod.&lt;BR /&gt;&lt;BR /&gt;It will compile with the Bundled C compiler because it is intentionally done in K &amp;amp; R C although you could easily change the syntax to ANSI/C, if you like.&lt;BR /&gt;&lt;BR /&gt;Compile it like this:&lt;BR /&gt;cc -o lchmod chmod.c&lt;BR /&gt;&lt;BR /&gt;Use it like this:&lt;BR /&gt;lchmod 1755 mylink&lt;BR /&gt;&lt;BR /&gt;Note: This program only understands octal permissions; the task of adding symbolic modes is left as an exercise but the octals work just fine.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 06 Apr 2004 09:11:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/permissions-of-a-link/m-p/3240867#M173642</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2004-04-06T09:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: permissions of a link</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/permissions-of-a-link/m-p/3240868#M173643</link>
      <description>For those of us somewhat below the status of guru, can someone elaborate on why you would want to change the permissions of a link, when I understand that the permissions are ignored anyway?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;CW</description>
      <pubDate>Wed, 07 Apr 2004 03:26:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/permissions-of-a-link/m-p/3240868#M173643</guid>
      <dc:creator>Chris Watson</dc:creator>
      <dc:date>2004-04-07T03:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: permissions of a link</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/permissions-of-a-link/m-p/3240869#M173644</link>
      <description>Some RDBMS like Informix XPS require symbolic links to raw devices (like linking to say /dev/myvg/rextent1) in which to operate. If the link was created as 'root' instead of the owner being informix it won't work. So in this instance, it is not ignored. The program would be useful if there are quite a number of sym links that need the ownership changed or are in use. If only a couple and not being used, then remove them and start over as the required user.</description>
      <pubDate>Wed, 07 Apr 2004 03:35:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/permissions-of-a-link/m-p/3240869#M173644</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2004-04-07T03:35:12Z</dc:date>
    </item>
  </channel>
</rss>

