Mailinglist Archive: opensuse (1420 mails)

< Previous Next >
Re: [opensuse] Symbolic link
On 01/12/2014 09:02 PM, Carl Hartung wrote:
On Sun, 12 Jan 2014 20:27:02 +0100
Bernhard Voelker wrote:
$ ln -s "$(uptime)" my-uptime-in-a-symlink ls -ldog
my-uptime-in-a-symlink $ ls -ldog my-uptime-in-a-symlink
lrwxrwxrwx 1 67 Jan 12 20:25 my-uptime-in-a-symlink -> 20:25pm up
1 day 7:17, 9 users, load average: 0.25, 0.24, 0.19

Look at those permissions! <-- On Topic bit for the OP :-)

On GNU Linux, the permission modes of a symlink are not relevant.
IIRC other systems have the opportunity to change a symlink's mode
and/or owner, but I don't know what effects this has ... and it's
beyond POSIX.

Your example _does_ leave a broken symbolic link cluttering up the
filesystem, Berny. "touch" is a lot less messy.

Of course it's a dangling symlink - that was the aim of the
demonstration: a symlink does not necessarily have to resolve
to an existing file system object. I even remember Mozilla
versions which stored the IP and the PID of the current instance
as a symlink target like "192.168.0.5:12345".
I must admit that it's OT for the OP's issue.

Have a nice day,
Berny
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups