Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'A simple fix for incorrect Home folder ownerhsip problems' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A simple fix for incorrect Home folder ownerhsip problems
Authored by: twalther on Oct 16, '03 03:39:49AM

I'm glad someone else posted this...

It drives me NUTS to see people experimenting with UNIX for the first time and coming up with things like "sudo su" for this purpose.

If you must run multiple instructions as root, for the love of god use "sudo -s" (opens a root shell by default) or "sudo tcsh" (or bash, zsh, etc).



[ Reply to This | # ]
A simple fix for incorrect Home folder ownerhsip problems
Authored by: clith on Oct 16, '03 11:37:36AM
f you must run multiple instructions as root, for the love of god use "sudo -s" (opens a root shell by default) or "sudo tcsh" (or bash, zsh, etc).
Or even just good old:
% su
Although I prefer using the "-" argument:
% su -
Which uses root's (probably more secure) login environment, not yours.

"sudo" is meant to do a one-line command as if you had run su, thus the name. And just f.y.i. (some people don't know) "su" stands for "super user". See? These cryptic Unix commands can all make sense! :-)

[ Reply to This | # ]

A simple fix for incorrect Home folder ownerhsip problems
Authored by: vajonez on Oct 17, '03 03:53:19AM
actually, su stands for substitute user or switch user. su, like sudo, can be used to switch to (or execute a command as) any user and not just root (the so-called super user). see man su and man sudo for more details.

[ Reply to This | # ]