Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Apr 2002 20:00:34 +0200
From:      =?ISO-8859-2?Q?Pawe=B3_Jakub_Dawidek?= <nick@garage.freebsd.pl>
To:        freebsd-hackers@FreeBSD.org
Subject:   Hardlinks...
Message-ID:  <20020408200034.C5952@garage.freebsd.pl>

next in thread | raw e-mail | index | archive | help

--0vzXIDBeUiKkjNJl
Content-Type: text/plain; charset=ISO-8859-2
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hey...

Why I can made hardlink to file that I'm not owner?

Simple example why I think that only owner should have permission to create
hardlinks to his files.

First.
leila:root:~# ls -l /root/very-secret-file
-rw------  1 root  wheel  3011 13 Lut 16:47 /root/very-secret-file

leila:evil-hacker:~> ln /root/very-secret-file ~/whatsthis

<I need remove it fast!!!>
leila:root:~# rm -f /root/very-secret-file

Yes, I know that evil-hacker can't read this file but...
He can't read it NOW, but in a future he can break in and read it.

I know that we can check this with 'st_nlink' or use -P with rm, but...

Or tell me when this feature can help.

--=20
Pawe=B3 Jakub Dawidek
Network Administrator.
Am I Evil? Yes, I Am.

--0vzXIDBeUiKkjNJl
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia

iQCVAwUBPLHawj/PhmMH/Mf1AQHcMgQAjyWuwbruElH8NAagqlZ0u5o2r+lE2Nei
DvmE1BFpjpkxtv0FqnXn1se3qo16f3Ou0xuCO1u9OAnt705XF/NVJX8evIwI8fo/
uw0GT/Cgsz1sGkVIJ1Q1Ed/Ky3VSIBIpamXagpJ+l/Nhaf/l7r44/arjcKfsRmtA
XCVMNHSuhw4=
=Xodr
-----END PGP SIGNATURE-----

--0vzXIDBeUiKkjNJl--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020408200034.C5952>