Re: [gentoo-user] A non-root user can delete files belonging to root. What's going on?

2015-02-14 Thread Neil Bothwick
On Sat, 14 Feb 2015 08:39:27 +0200, Alan McKinnon wrote: Don't feel too bad, it's one of my favourite geeky Unix trivia factoid questions. In 10 years, no-one yet has given the correct answer immediately! You need to ask better people :P It's also very rare to have a file owned by root in

Re: [gentoo-user] A non-root user can delete files belonging to root. What's going on?

2015-02-13 Thread Rich Freeman
On Fri, Feb 13, 2015 at 9:36 AM, Yuri K. Shatroff yks-...@yandex.ru wrote: The owner of a directory is able to delete any files in it. It would really be weird otherwise. I think, to be more precise, anybody with write and execute access to a directory (whether the owner or not) can remove

Re: [gentoo-user] A non-root user can delete files belonging to root. What's going on?

2015-02-13 Thread Yuri K. Shatroff
13.02.2015 17:31, Alan Mackenzie пишет: Hi, Gentoo. I'm clearing out dross from my home directory, as me (not as root) and I've just deleted this file: -rw-r--r-- 1 rootroot 0 Apr 11 2011 grep , simply by typing $ rm grep. I was prompted with: rm: remove

Re: [gentoo-user] A non-root user can delete files belonging to root. What's going on?

2015-02-13 Thread Alan McKinnon
On 13/02/2015 16:31, Alan Mackenzie wrote: Hi, Gentoo. I'm clearing out dross from my home directory, as me (not as root) and I've just deleted this file: -rw-r--r-- 1 rootroot 0 Apr 11 2011 grep , simply by typing $ rm grep. I was prompted with: rm: remove

Re: [gentoo-user] A non-root user can delete files belonging to root. What's going on?

2015-02-13 Thread Alan McKinnon
On 14/02/2015 00:05, Alan Mackenzie wrote: Trust me, there is no arguing with this - Unix has always worked this way and likely always will. :-) I ask myself, how come I've got this far without learning this pretty basic fact? Thanks for the explanation. :-) Don't feel too bad, it's