Re: Symlinks vs. hardlinks [was: Prevent shutdown with systemctl]

2016-01-05 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, Jan 05, 2016 at 09:19:57AM -0600, David Wright wrote: > On Tue 05 Jan 2016 at 09:04:19 (+0100), to...@tuxteam.de wrote: > > On Mon, Jan 04, 2016 at 04:43:05PM -0500, Gary Dale wrote: > > > If that is a problem with symlinks, shouldn't

Re: Symlinks vs. hardlinks [was: Prevent shutdown with systemctl]

2016-01-05 Thread David Wright
On Tue 05 Jan 2016 at 09:04:19 (+0100), to...@tuxteam.de wrote: > On Mon, Jan 04, 2016 at 04:43:05PM -0500, Gary Dale wrote: > > If that is a problem with symlinks, shouldn't it also be with > > hardlinks? > > No, because of above: > > - symlink: permissions of linked-to file apply. Sy

Re: Symlinks vs. hardlinks

2016-01-05 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, Jan 05, 2016 at 11:08:11AM +0100, Thomas Schmitt wrote: > Hi, > > to...@tuxteam.de wrote: > > > > tomas@rasputin:~$ ln /home/test/.profile test-profile > > > > ln: failed to create hard link `test-profile' => > > > > `/home/test/.profile':

Re: Symlinks vs. hardlinks

2016-01-05 Thread Thomas Schmitt
Hi, to...@tuxteam.de wrote: > > > tomas@rasputin:~$ ln /home/test/.profile test-profile > > > ln: failed to create hard link `test-profile' => > > > `/home/test/.profile': Operation not permitted Seems to be a new security feature. In "man 5 proc" i read "/proc/sys/fs/protected_hardlinks (

Symlinks vs. hardlinks [was: Prevent shutdown with systemctl]

2016-01-05 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mon, Jan 04, 2016 at 04:43:05PM -0500, Gary Dale wrote: > On 04/01/16 03:39 PM, to...@tuxteam.de wrote: > >-BEGIN PGP SIGNED MESSAGE- > >Hash: SHA1 > > > >On Mon, Jan 04, 2016 at 03:25:02PM -0500, Gary Dale wrote: > >>On 04/01/16 12:14 PM, t