One stupid thing you can do with a UNIX shell and root access

In: Operating Systems

5 Feb 2007
sudo chown -R dick /

instead of

sudo chown -R dick ./

You won’t be able to su – or sudo to chown the ownerships back properly because the sudo executable needs to be owned by root. Some people should never have unfettered sudo rights… like me.

4 Responses to One stupid thing you can do with a UNIX shell and root access

Avatar

James

February 6th, 2007 at 1am

Ah yes, the joys of unfettered ‘rooting’ :) Never play superuser when you don’t have physical access to the machine. We’ve all done it though (or something similar).

Avatar

Daniel Wintschel

February 6th, 2007 at 9am

Urgh… Ouch.

Avatar

Martey

February 6th, 2007 at 2pm

Never play superuser when you don’t have physical access to the machine.

Then what exactly am I supposed to do with my virtual private server?

Avatar

Bob

June 22nd, 2007 at 8am

Wow you own that server now. lol.

Even if you did change the ownership back. Wouldn’t the permissions be out of sync as well. (I’m not going to test my idea). Even with root access that’s a disaster

The only thing Unix needs is an auto undo command