Re: [DNG] "post mortem" (was: Popcorn)

2022-02-20 Thread Antony Stone
On Sunday 20 February 2022 at 12:57:07, Florian Zieboll via Dng wrote:

> Dear list,
> 
> I just want to share the two most important things I learned yesterday:
> 
> 1.) I can "delete" files for which I do not have write permissions, if
> the containing directory is writable by me:

Indeed - this came as a surprise to me when I first found it.

The explanation is remarkably simple:

Write permissions on a *file* determine whether you can modify the *content* of 
the file.  This has nothing to do with the *file name* (renaming or deleting).

Write permissions on *the containing directory* determine whether you can 
delete or rename files in that contained directory.  This is because a 
directory is essentially a file with a special type of content - names and 
pointers to other files (inodes).


Antony.

-- 
In the Beginning there was nothing, which exploded.

 - Terry Pratchett

   Please reply to the list;
 please *don't* CC me.
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


[DNG] "post mortem" (was: Popcorn)

2022-02-20 Thread Florian Zieboll via Dng

Dear list,

I just want to share the two most important things I learned yesterday:

1.) I can "delete" files for which I do not have write permissions, if
the containing directory is writable by me:

|| The system deletes files automatically when their reference
|| counts drops to zero. The owner of the file doesn't matter.

https://superuser.com/questions/369493/

2.) On logout, the user's processes are not terminated because they had
been spawned from a common "ancestor" process, but because they have
a common "session id" (SID). 

As I have not been able to find a detailed documentation of what's
happening on quitting a session, I think about writing a summary of the
related mechanisms in the pre-systemd world. Thus, I'd like to ask you
for hints about related resources, also regarding the "backgrounding"
and "detaching" of processes

Thank you and libre Grüße,
Florian

___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng