Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: Timo Felbinger <timof@uranos.quantum.physik.uni-potsdam.de>
To: ivan.dolezal@vsb.cz
Subject: Re: chmod on link?
Date: 1998/12/09	[thread overview]
Message-ID: <Pine.LNX.3.96.981209105324.224C-100000@uranos.quantum.physik.uni-potsdam.de> (raw)
In-Reply-To: 366E3AEE.4D39123B@vsb.cz



On Wed, 9 Dec 1998 ivan.dolezal@vsb.cz wrote:

> I got a really dumb question: if I create a soft link, its permission is
> lrwxrwxrwx .
> 
> How can I change it?

You can't. Links don't have any permissions, only files and other things
like devices and pipes which are represented by inodes, have. 
An inode is a data structure containing vital data describing the file,
including permissions, owner, ...

When you use a link, the permissions of the file pointed to will apply.
While ls will display the permissions of the file associated with a hard
link, it will always show lrwxrwxrwx for soft links.

Simple experiment: If a file has more than one hard link, ls will display
identical permissions (as well as ownership, access time, ...) for all
of them.

-- 

Timo Felbinger   (Timo.Felbinger@quantum.physik.uni-potsdam.de)
Quantum Physics Group
Institute of Physics
University of Potsdam, Germany






  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 [this message]
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
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