Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: Casper.Dik@Holland.Sun.Com (Casper H.S. Dik - Network Security Engineer)
Subject: Re: chmod on link?
Date: 1998/12/09	[thread overview]
Message-ID: <casper.913219645@nl-usenet.sun.com> (raw)
In-Reply-To: 366E7B5A.D45A3979@ev.co.yu

[[ PLEASE DON'T SEND ME EMAIL COPIES OF POSTINGS ]]

Nikola Milutinovic <Nikola.Milutinovic@ev.co.yu> writes:

>The question still stands. A soft link is a file. A file can be written
>to and I think I've seen some system calls that can manipulate either "a
>link to" and "a link itself". If you can't access the link itself, why
>would DEC put such access rights on one of the most common system soft
>links?

A soft/sym link is not a file.

It can be manipulated in only two ways:

	- unlink(2)		- remove it
	- symlink(2)		- create it

obviously, for both operations the permissions on the file are irrelevant
(the directory counts)

You could interpret permissions on the link, but typically (no
Unix implementation I know of) does so.

The links are displayed differently:

lrwxrwxrwx		SunOS 4/Solaris 2&7
l---------		Irix (others?)

Some may just use the user's umask() in creating them, (DU)?

Casper
--
Expressed in this posting are my opinions.  They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.



  reply	other threads:[~1998-12-09  5:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-12-09  5:00 chmod on link? ivan.dolezal
1998-12-09  5:00 ` Timo Felbinger
1998-12-09  5:00 ` Timo Felbinger
1998-12-09  5:00   ` Nikola Milutinovic
1998-12-09  5:00     ` Casper H.S. Dik - Network Security Engineer [this message]
1998-12-09  5:00       ` Serguei Patchkovskii
1998-12-11  5:00         ` Mike harrelson
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox