|
|
Q: Permission checks for symbolic links in HP-UX 11.31
Hi,
could it be that HP-UX 11.31 (September Release) considers permissions for
symbolic links, even though the manual page ln(1) claims otherwise?
In Linux the permissions for symbolic links is always "a=rwx", while in HP-UX
the umask masks off bits, like "go=-rwx". It looks as if a user of the
category "other" (o) fails to access the file the link refers to if the
correspondig permission bits on the _link_ are absent.
My view of symbolic links (in an ideal world) would be somehow in-between:
Write permissions on the symbolic link allows a process to modify the value of
the link, while read permissions allow a process to read the value of the
link. Thus accessing a file via a symbolic link would require read permissions
on all intermediate links.
Now that I don't heve HP-UX sources: How did HP-UX 11.31 implement access
checking and traversing of symbolic links? The wrong way?
<bad-humour>
HP technican's answer: As HP-UX uses "umask 0" by default, this issue isn't
really a problem on a "standard installation".
</bad-humour>
Regards,
Ulrich
|
|
0
|
|
|
|
Reply
|
Ulrich
|
1/9/2008 10:09:42 AM |
|
Ulrich Windl wrote:
> could it be that HP-UX 11.31 (September Release) considers permissions for
> symbolic links, even though the manual page ln(1) claims otherwise?
I don't think so, they should be ignored.
> It looks as if a user of the
> category "other" (o) fails to access the file the link refers to if the
> corresponding permission bits on the _link_ are absent.
I don't see this, at least for "u": (Original 11.31 release)
$ (umask 444; ln -s ~/hi.c . ) # even with 777
$ ll hi.c
l-wx-wx-wx 1 dhandly 18 Jan 10 19:26 hi.c@ -> /home/dhandly/hi.c
$ more hi.c
#include <stdio.h> ...
|
|
0
|
|
|
|
Reply
|
Dennis
|
1/11/2008 3:34:49 AM
|
|
|
1 Replies
224 Views
(page loaded in 0.104 seconds)
Similiar Articles: [comp.publish.cdrom] CD-Recordable FAQ, Part 1/4 - comp.publish ...Archive-name: cdrom/cd-recordable/part1 Posting-Frequency: monthly Last-modified: 2008/10/09 Version: 2.71 Send corrections and updates to And... Ignite-UX FAQs - MIK telecomA: HP-UX 11i v3 (B.11.31) for September 2007, HP-UX 11i v2 (B.11 ... The os_arch_post_l script checks for the client ... You may remove the symbolic link to the hostname because ... HP-UX 11.x - How To Get Valid CorefilesTo check if a corefile is ... does not contain a symbolic link. With HP-UX 11.31 ... to circumvent the symbolic link problem or things like lack of disk space and permission ... 7/25/2012 7:24:38 PM
|
|
|
|
|
|
|
|
|