[xubuntu-users] security problem? (again)

Mike Kupfer m.kupfer at acm.org
Thu Jul 26 03:08:01 UTC 2012


Wybo Dekker wrote:

> On 2012-07-24 18:14, I wrote:
> > When I create a file in my home directory as root:
> > 
> > $ sudo touch test
> > 
> > I get:
> > 
> > $ ls -l test
> > -rw-r--r-- 1 root root 0 2012-07-24 18:09 test
> > 
> > I cannot, without sudo, overwrite this file, but I can remove it with rm
> > -rf. Is that correct? And if not: how can I find out what's wrong with
> > my system?
> 
> I know, this was a stupid question, but that's because of my lack of
> intelligence, sorry. But could someone verify that the described
> behavior is, or is not, normal?

That behavior is normal.  Anyone with write permission to a directory
can create a new file in it, or remove an existing file.  (Well, there's
an exception to that rule, but it probably doesn't apply to your home
directory.)

mike




More information about the xubuntu-users mailing list