Gentoo Archives: gentoo-user

From: Alan Mackenzie <acm@×××.de>
To: gentoo-user@l.g.o
Subject: [gentoo-user] A non-root user can delete files belonging to root. What's going on?
Date: Fri, 13 Feb 2015 14:32:08
Message-Id: 20150213143128.GA26599@acm.fritz.box
1 Hi, Gentoo.
2
3 I'm clearing out dross from my home directory, as me (not as root) and
4 I've just deleted this file:
5
6 -rw-r--r-- 1 root root 0 Apr 11 2011 grep
7
8 , simply by typing $ rm grep. I was prompted with:
9
10 rm: remove write-protected regular empty file ■grep■?
11
12 , to which I responded 'y'. The file is now gone.
13
14 So, as a non root user, I've managed to delete a file belonging to root,
15 to which I have no write access. This is crazy! I'm not happy about
16 this. What's going on?
17
18 --
19 Alan Mackenzie (Nuremberg, Germany).

Replies