On Fri, 2004-01-09 at 15:23, Casey T. Deccio wrote: > I used to use sudo -s, but for a reason I can't remember--it wasn't > getting me the desired effect, so I began using sudo su -. I don't > remember what I knew then, but even then I didn't fully understand the > difference. Could someone enlighten me?
The difference is sudo -s doesn't give you the root login environment. All it does is give you a root shell with your normal environment. Thus the paths are wrong, and some programs, like apt-get, can misbehave, since the HOME environment var is still pointing at your home directory rather than root's home. sudo su - gives you a full root environment, with root paths, and so forth. It's a better solution than sudo -s for many sysadmin tasks Michael > > Casey > > ______________________________________________________________________ > ____________________ > BYU Unix Users Group > http://uug.byu.edu/ > ___________________________________________________________________ > List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list -- Michael L Torrie <[EMAIL PROTECTED]> ____________________ BYU Unix Users Group http://uug.byu.edu/ ___________________________________________________________________ List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list
