<?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 symbolic link permission of lr--r--r-T in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-symbolic-link-permission-of-lr-r-r-t/m-p/3068783#M140168</link>
    <description>Looks like it could be something to do with signifying the link as a "transition link":&lt;BR /&gt;&lt;BR /&gt;# rm /etc/termcap&lt;BR /&gt;# tlinstall&lt;BR /&gt;NOTE:    tlinstall is searching filesystem - please be patient&lt;BR /&gt;NOTE:    Successfully completed&lt;BR /&gt;# ll /etc/termcap&lt;BR /&gt;lr--r--r-T   1 root       sys             22 Sep 11 15:46 /etc/termcap -&amp;gt; /usr/share/lib/termcap&lt;BR /&gt;&lt;BR /&gt;See man tlinstall for more info.&lt;BR /&gt;&lt;BR /&gt;A "tusc" of the tlinstall command reveals it uses the lchmod() system call to set the mode:&lt;BR /&gt;&lt;BR /&gt;lchmod("/etc/termcap", 0101444) ............................... = 0&lt;BR /&gt;&lt;BR /&gt;This system call is undocumented (ie no man page), but its easy to write a C program that can use it.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Steve</description>
    <pubDate>Thu, 11 Sep 2003 13:54:04 GMT</pubDate>
    <dc:creator>Steven Gillard_2</dc:creator>
    <dc:date>2003-09-11T13:54:04Z</dc:date>
    <item>
      <title>How to create symbolic link permission of lr--r--r-T</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-symbolic-link-permission-of-lr-r-r-t/m-p/3068771#M140156</link>
      <description>I want to reset the permission for the /etc/termcap file.  Here's what it should look like.&lt;BR /&gt;&lt;BR /&gt;lr--r--r-T   1 root       sys             22 May 27 16:37 termcap -&amp;gt; /usr/share/lib/termcap&lt;BR /&gt;&lt;BR /&gt;The last character 'T' is what I'm unsure of how to do it with the umask command.&lt;BR /&gt;&lt;BR /&gt;I know umask 222 will give me lr--r--r-- when I create the link.  What do I do for the T?&lt;BR /&gt;&lt;BR /&gt;jack</description>
      <pubDate>Thu, 11 Sep 2003 13:00:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-symbolic-link-permission-of-lr-r-r-t/m-p/3068771#M140156</guid>
      <dc:creator>Jack C. Mahaffey</dc:creator>
      <dc:date>2003-09-11T13:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to create symbolic link permission of lr--r--r-T</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-symbolic-link-permission-of-lr-r-r-t/m-p/3068772#M140157</link>
      <description>Cor, tough one. I cant do it using chmod or umask. Easiest way to do it is tar up the symbolic link from another hp box, then untar it, that works!&lt;BR /&gt;</description>
      <pubDate>Thu, 11 Sep 2003 13:07:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-symbolic-link-permission-of-lr-r-r-t/m-p/3068772#M140157</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2003-09-11T13:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to create symbolic link permission of lr--r--r-T</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-symbolic-link-permission-of-lr-r-r-t/m-p/3068773#M140158</link>
      <description>Jack:&lt;BR /&gt;&lt;BR /&gt;I don't know how to do a "T".  &lt;BR /&gt;&lt;BR /&gt;I can do a "t".  that's something!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;1.      If you do an ll and you see:&lt;BR /&gt;&lt;BR /&gt;        -rwsr-sr-t   1 abramss    adm   629 Jul  7 11:32 hpux_11.new_features&lt;BR /&gt;           ^  ^  ^&lt;BR /&gt;           |  |  |____  Sticky bit&lt;BR /&gt;           |  |&lt;BR /&gt;           |  |_______  SGID bit&lt;BR /&gt;           |&lt;BR /&gt;           |__________  SUID bit&lt;BR /&gt;&lt;BR /&gt;2.      Here's how you set them:&lt;BR /&gt;&lt;BR /&gt;                chmod 1777 /tmp         # Set sticky bit&lt;BR /&gt;                chmod 2555 filename     # Set SGID bit&lt;BR /&gt;                chmod 4555 filename     # Set SUID bit&lt;BR /&gt;&lt;BR /&gt;3.      Here's what they mean:&lt;BR /&gt;&lt;BR /&gt;a.      Program File:&lt;BR /&gt;&lt;BR /&gt;        SUID:   When a user executes this program, his effective UID set to the&lt;BR /&gt;                UID of the owner of the file.  (mostly used with root owner.)&lt;BR /&gt;&lt;BR /&gt;        SGID:   When a user executes this program, his effective GID becomes&lt;BR /&gt;                the GID of the program GID.&lt;BR /&gt;&lt;BR /&gt;                Files created by this program, have their primary GID set to the&lt;BR /&gt;                GID of the program.&lt;BR /&gt;&lt;BR /&gt;        Sticky: A program that has it's sticky bit set will not be removed from&lt;BR /&gt;                swap space after the program has terminated.  This means the&lt;BR /&gt;                next guy can execute the same binary.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 11 Sep 2003 13:09:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-symbolic-link-permission-of-lr-r-r-t/m-p/3068773#M140158</guid>
      <dc:creator>Stuart Abramson_2</dc:creator>
      <dc:date>2003-09-11T13:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to create symbolic link permission of lr--r--r-T</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-symbolic-link-permission-of-lr-r-r-t/m-p/3068774#M140159</link>
      <description>The permissions on the symbolic link do not matter --- only those of the underlyling file.&lt;BR /&gt;The 'T' (Sticky Text Bit) is set using the 1000 octal value. e.g. chmod 1222 myfile.&lt;BR /&gt;</description>
      <pubDate>Thu, 11 Sep 2003 13:09:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-symbolic-link-permission-of-lr-r-r-t/m-p/3068774#M140159</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2003-09-11T13:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to create symbolic link permission of lr--r--r-T</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-symbolic-link-permission-of-lr-r-r-t/m-p/3068775#M140160</link>
      <description>I only want to change the permission on the symbolic link.  chmod will not work on a symbolic link.  Running chmod on a symbolic link changes the permission of the underlying file.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 11 Sep 2003 13:21:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-symbolic-link-permission-of-lr-r-r-t/m-p/3068775#M140160</guid>
      <dc:creator>Jack C. Mahaffey</dc:creator>
      <dc:date>2003-09-11T13:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to create symbolic link permission of lr--r--r-T</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-symbolic-link-permission-of-lr-r-r-t/m-p/3068776#M140161</link>
      <description>Some light on t or T: i think that "t" is used when the file is executable, T when it's a simple data file:&lt;BR /&gt;&lt;BR /&gt;riops002:/tmp/massimo/test/test&amp;gt; umask&lt;BR /&gt;022&lt;BR /&gt;riops002:/tmp/massimo/test/test&amp;gt; rm test&lt;BR /&gt;riops002:/tmp/massimo/test/test&amp;gt; touch test&lt;BR /&gt;riops002:/tmp/massimo/test/test&amp;gt; ll test&lt;BR /&gt;-rw-r--r--   1 root       sys              0 Sep 11 16:29 test&lt;BR /&gt;riops002:/tmp/massimo/test/test&amp;gt; chmod a+t test&lt;BR /&gt;riops002:/tmp/massimo/test/test&amp;gt; ll test&lt;BR /&gt;-rw-r--r-T   1 root       sys              0 Sep 11 16:29 test&lt;BR /&gt;riops002:/tmp/massimo/test/test&amp;gt; chmod 755 test&lt;BR /&gt;riops002:/tmp/massimo/test/test&amp;gt; ll test&lt;BR /&gt;-rwxr-xr-x   1 root       sys              0 Sep 11 16:29 test&lt;BR /&gt;riops002:/tmp/massimo/test/test&amp;gt; chmod a+t test&lt;BR /&gt;riops002:/tmp/massimo/test/test&amp;gt; ll test&lt;BR /&gt;-rwxr-xr-t   1 root       sys              0 Sep 11 16:29 test&lt;BR /&gt;riops002:/tmp/massimo/test/test&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Don't know regarding the link, T or t ...&lt;BR /&gt;&lt;BR /&gt;  Massimo</description>
      <pubDate>Thu, 11 Sep 2003 13:32:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-symbolic-link-permission-of-lr-r-r-t/m-p/3068776#M140161</guid>
      <dc:creator>Massimo Bianchi</dc:creator>
      <dc:date>2003-09-11T13:32:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to create symbolic link permission of lr--r--r-T</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-symbolic-link-permission-of-lr-r-r-t/m-p/3068777#M140162</link>
      <description>I can quickly get the chmod settings by using a home grown utility I named getchmod.  &lt;BR /&gt;&lt;BR /&gt;Looks like I got some folks stumped.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 11 Sep 2003 13:35:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-symbolic-link-permission-of-lr-r-r-t/m-p/3068777#M140162</guid>
      <dc:creator>Jack C. Mahaffey</dc:creator>
      <dc:date>2003-09-11T13:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to create symbolic link permission of lr--r--r-T</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-symbolic-link-permission-of-lr-r-r-t/m-p/3068778#M140163</link>
      <description>Out of curiousity, why would you want to change the permissions on the symbolic link?&lt;BR /&gt;&lt;BR /&gt;As was mentioned before, the permissions on the link itself have no relevance. And one would think you would want a "chmod 774 termcap" to be applied to the actual file.&lt;BR /&gt;&lt;BR /&gt;-- Rod Hills</description>
      <pubDate>Thu, 11 Sep 2003 13:40:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-symbolic-link-permission-of-lr-r-r-t/m-p/3068778#M140163</guid>
      <dc:creator>Rodney Hills</dc:creator>
      <dc:date>2003-09-11T13:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to create symbolic link permission of lr--r--r-T</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-symbolic-link-permission-of-lr-r-r-t/m-p/3068779#M140164</link>
      <description>I want two systems to have the same permission settings.  The link mentioned is inconsistent between the systems.  I could take the easy way out and tar the link but I want to know how to make the symbolic link.&lt;BR /&gt;&lt;BR /&gt;jack</description>
      <pubDate>Thu, 11 Sep 2003 13:44:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-symbolic-link-permission-of-lr-r-r-t/m-p/3068779#M140164</guid>
      <dc:creator>Jack C. Mahaffey</dc:creator>
      <dc:date>2003-09-11T13:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to create symbolic link permission of lr--r--r-T</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-symbolic-link-permission-of-lr-r-r-t/m-p/3068780#M140165</link>
      <description>I really think A Clay Stephenson shouldn't be ignored, i.e the permissions on a symbolic link do not matter.&lt;BR /&gt;&lt;BR /&gt;The only way you can change the permissions on a symbolic link are to change your umask before you create it.&lt;BR /&gt;&lt;BR /&gt;Nice problem though</description>
      <pubDate>Thu, 11 Sep 2003 13:44:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-symbolic-link-permission-of-lr-r-r-t/m-p/3068780#M140165</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2003-09-11T13:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to create symbolic link permission of lr--r--r-T</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-symbolic-link-permission-of-lr-r-r-t/m-p/3068781#M140166</link>
      <description>Mark, I'm not ignoring any responses.  Just want to know how to create the link.  I appreciate all responses.  Hope nothing taken the wron way.&lt;BR /&gt;&lt;BR /&gt;jack...</description>
      <pubDate>Thu, 11 Sep 2003 13:48:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-symbolic-link-permission-of-lr-r-r-t/m-p/3068781#M140166</guid>
      <dc:creator>Jack C. Mahaffey</dc:creator>
      <dc:date>2003-09-11T13:48:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to create symbolic link permission of lr--r--r-T</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-symbolic-link-permission-of-lr-r-r-t/m-p/3068782#M140167</link>
      <description>Jack,&lt;BR /&gt;&lt;BR /&gt;Sorry, didn't mean to imply anybody was really being ignored, it's just my perculiar type of English I guess :)&lt;BR /&gt;&lt;BR /&gt;Still, I really would be surprised if these permissions can be achieved on the link without a little bit of C and some inode mangling magic.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 11 Sep 2003 13:53:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-symbolic-link-permission-of-lr-r-r-t/m-p/3068782#M140167</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2003-09-11T13:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to create symbolic link permission of lr--r--r-T</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-symbolic-link-permission-of-lr-r-r-t/m-p/3068783#M140168</link>
      <description>Looks like it could be something to do with signifying the link as a "transition link":&lt;BR /&gt;&lt;BR /&gt;# rm /etc/termcap&lt;BR /&gt;# tlinstall&lt;BR /&gt;NOTE:    tlinstall is searching filesystem - please be patient&lt;BR /&gt;NOTE:    Successfully completed&lt;BR /&gt;# ll /etc/termcap&lt;BR /&gt;lr--r--r-T   1 root       sys             22 Sep 11 15:46 /etc/termcap -&amp;gt; /usr/share/lib/termcap&lt;BR /&gt;&lt;BR /&gt;See man tlinstall for more info.&lt;BR /&gt;&lt;BR /&gt;A "tusc" of the tlinstall command reveals it uses the lchmod() system call to set the mode:&lt;BR /&gt;&lt;BR /&gt;lchmod("/etc/termcap", 0101444) ............................... = 0&lt;BR /&gt;&lt;BR /&gt;This system call is undocumented (ie no man page), but its easy to write a C program that can use it.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Steve</description>
      <pubDate>Thu, 11 Sep 2003 13:54:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-symbolic-link-permission-of-lr-r-r-t/m-p/3068783#M140168</guid>
      <dc:creator>Steven Gillard_2</dc:creator>
      <dc:date>2003-09-11T13:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to create symbolic link permission of lr--r--r-T</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-symbolic-link-permission-of-lr-r-r-t/m-p/3068784#M140169</link>
      <description>From 'man umask':  " Note that the file creation mode mask does not affect the set-user-id, set-group-id, or "sticky" bits."&lt;BR /&gt;&lt;BR /&gt;The permission "T" (sticky bit set without "execute" permission for "others") can be set only with chmod command. Since you cannot set it on symbolic links, the best way is to tar and untar the file.</description>
      <pubDate>Thu, 11 Sep 2003 13:55:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-symbolic-link-permission-of-lr-r-r-t/m-p/3068784#M140169</guid>
      <dc:creator>Helen French</dc:creator>
      <dc:date>2003-09-11T13:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to create symbolic link permission of lr--r--r-T</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-symbolic-link-permission-of-lr-r-r-t/m-p/3068785#M140170</link>
      <description>perhaps you can copy the link from one system to the other with tar ?</description>
      <pubDate>Thu, 11 Sep 2003 13:58:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-symbolic-link-permission-of-lr-r-r-t/m-p/3068785#M140170</guid>
      <dc:creator>hein coulier</dc:creator>
      <dc:date>2003-09-11T13:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to create symbolic link permission of lr--r--r-T</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-symbolic-link-permission-of-lr-r-r-t/m-p/3068786#M140171</link>
      <description>Jack,&lt;BR /&gt;&lt;BR /&gt;I dont believe you can do it. Certainly not easily anyway. Umask wont allow it, chmod wont allow it (binary or C call). Ive tried all sorts of C calls to create, modify, open, write files and none will do it. C ignores the symlink also - goes straight to its destination.&lt;BR /&gt;&lt;BR /&gt;I think youre going to have to bite the bullet and do it the hard way and tar it over from another server.&lt;BR /&gt;&lt;BR /&gt;Now, if I had assembler for HP-UX and I could recall how to do it I think it would be possible!&lt;BR /&gt;&lt;BR /&gt;It would certainly be interesting though to find out how HP created it in the first place.&lt;BR /&gt;/etc/termcap is not listed under swlist -l file which means its not on the source, but its created at some point by some program. Any ideas anyone which program it is ? I think it must exist on a server.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 11 Sep 2003 14:00:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-symbolic-link-permission-of-lr-r-r-t/m-p/3068786#M140171</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2003-09-11T14:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to create symbolic link permission of lr--r--r-T</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-symbolic-link-permission-of-lr-r-r-t/m-p/3068787#M140172</link>
      <description>OK, I think I know what you can do.&lt;BR /&gt;&lt;BR /&gt;The /etc/termcap link to /usr/share/lib/termcap is a 9.X to 10.X transition link.&lt;BR /&gt;&lt;BR /&gt;If you execute the command:&lt;BR /&gt;&lt;BR /&gt;# /opt/upgrade/bin/tllist&lt;BR /&gt;&lt;BR /&gt;It will show a list of all transition links that have been installed on your system.  You will notice that /etc/termcap is one of those.&lt;BR /&gt;&lt;BR /&gt;If you really want to re-establish the link the way it should be you can probably use the tlinstall command.&lt;BR /&gt;&lt;BR /&gt;To preview what tlinstall will do:&lt;BR /&gt;&lt;BR /&gt;# /opt/upgrade/bin/tlinstall -p -v&lt;BR /&gt;&lt;BR /&gt;To actually have tlinstall recreate the transition link (I believe it will only recreate what is not there):&lt;BR /&gt;&lt;BR /&gt;# /opt/upgrade/bin/tlinstall -v -l&lt;BR /&gt;&lt;BR /&gt;Note:  As far as I know this is the ONLY way to (re)create /etc/termcap with the permissions that it should have.  It can not be done with the regular chmod command.  /etc/termcap is a special case.</description>
      <pubDate>Thu, 11 Sep 2003 14:09:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-symbolic-link-permission-of-lr-r-r-t/m-p/3068787#M140172</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2003-09-11T14:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to create symbolic link permission of lr--r--r-T</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-symbolic-link-permission-of-lr-r-r-t/m-p/3068788#M140173</link>
      <description>Forgot about the &amp;amp;##! transision links.&lt;BR /&gt;&lt;BR /&gt;Thanks to all for your help.  Ran tlinstall and the link got recreated.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Nothing like a challenge to keep the minds going. :)&lt;BR /&gt;&lt;BR /&gt;Jack...&lt;BR /&gt;</description>
      <pubDate>Thu, 11 Sep 2003 14:14:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-symbolic-link-permission-of-lr-r-r-t/m-p/3068788#M140173</guid>
      <dc:creator>Jack C. Mahaffey</dc:creator>
      <dc:date>2003-09-11T14:14:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to create symbolic link permission of lr--r--r-T</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-symbolic-link-permission-of-lr-r-r-t/m-p/3068789#M140174</link>
      <description>Well, boys and girls. It can be done and I'll learn you how HP does it. As has been noted, the system call chmod() follows the symbolic link and thus does not operate on the symbolic link directly. Similarly, the symlink() system call does not allow a mode argument so that don't work neither. However, there is an UNDOCUMENTED system call, lchmod(), that does operate directly on the symbolic link.&lt;BR /&gt;&lt;BR /&gt;The attached code illutrates its use. I intentionally did this in K&amp;amp;R C so that even the bundled C compiler can handle it. Compile like this:&lt;BR /&gt;&lt;BR /&gt;cc lchmod.c -o lchmod&lt;BR /&gt;&lt;BR /&gt;Use it like this on an EXISTING symbolic link.&lt;BR /&gt;&lt;BR /&gt;lchmod 1664 mysymlink1 &lt;BR /&gt;&lt;BR /&gt;NOTE: This guy only understands OCTAL permissions but you are free to make it smarter if you like.&lt;BR /&gt;&lt;BR /&gt;Regards, &lt;BR /&gt;Clay&lt;BR /&gt;</description>
      <pubDate>Thu, 11 Sep 2003 14:47:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-symbolic-link-permission-of-lr-r-r-t/m-p/3068789#M140174</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2003-09-11T14:47:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to create symbolic link permission of lr--r--r-T</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-symbolic-link-permission-of-lr-r-r-t/m-p/3068790#M140175</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have been following this thread all day because it was so interesting and challenging. After reading Stefan's comments and repeating some of his attempts in C, I too was completely baffled. Then I saw our Clay's last answer and was amazed. I tried it and it worked! So Clay, how did you know about this secret and undocumented lchmod function? You must be using some inside HP connections to come up with that answer.&lt;BR /&gt;&lt;BR /&gt;PS Jack, you need to give Clay 50 points for that answer because he really solved a mystery.&lt;BR /&gt;&lt;BR /&gt;I love this place,&lt;BR /&gt;Greg&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 11 Sep 2003 18:44:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-symbolic-link-permission-of-lr-r-r-t/m-p/3068790#M140175</guid>
      <dc:creator>Greg White</dc:creator>
      <dc:date>2003-09-11T18:44:07Z</dc:date>
    </item>
  </channel>
</rss>

