[ale] Stupid Question Time

mike at trausch.us mike at trausch.us
Fri Feb 3 09:24:20 EST 2012


On 02/03/2012 09:17 AM, Michael Nolan wrote:
> mike at Pappy:/media$  sudo su

This is redundant.  Just prefix commands you need to run with privilege
with sudo.

> root at Pappy:/media#
> 
> root at Pappy:/media# rmdir sdc1

So, this should be "sudo rmdir sdc1"

> root at Pappy:/media# rmdir sdc3

And this should be "sudo rmdir sdc3"

Essentially you did not need to spawn a root shell there; but that is
also a matter of style.  Heck, there are still some people out there who
believe that tools like sudo and su are insecure piles of sticky
doo-doo.  There is an opinion for everything!

But really, you don't have to "sudo su"... "sudo <cmd>" is just fine.

Also, if you really want to get a root shell, you can say "sudo -i" and
your wish will be granted (assuming it's your system and/or you have the
right access of course).

	--- Mike

-- 
A man who reasons deliberately, manages it better after studying Logic
than he could before, if he is sincere about it and has common sense.
                                   --- Carveth Read, “Logic”

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 729 bytes
Desc: OpenPGP digital signature
Url : http://mail.ale.org/pipermail/ale/attachments/20120203/fafbcdf7/attachment.bin 


More information about the Ale mailing list