[G4] OT - OSX newbie question....

Cameron Kaiser spectre at floodgap.com
Fri Aug 1 10:17:15 PDT 2003


> How does one use terminal in SU (Super User) mode? I type in su at the
> prompt, and then an admin pwd, and it spits me back out!?
> 
> I want to vi some files.... (I know, I know, but I am an old UNIX guy) 

I just do

sudo vi filename

and enter my password at the prompt. After you do this once, sudo will
remember for awhile. If you want a real root shell, I do something like

sudo tcsh

(insert your favourite, though vastly inferior shell here)

-- 
---------------------------------- personal: http://www.armory.com/~spectre/ --
 Cameron Kaiser, Floodgap Systems Ltd * So. Calif., USA * ckaiser at floodgap.com
-- FORTUNE: Today is a great day for making firm decisions. Or is it? ---------



More information about the G4 mailing list