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


Click here to return to the 'A shell script to edit text files as root in the GUI' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A shell script to edit text files as root in the GUI
Authored by: rammjet on Aug 31, '04 10:16:11AM

Use BBEdit. Go to File menu -> Open hidden...
Find and open the file. Edit it. Save file. Authentication box will appear. If you are admin, enter your password. File will be saved.



[ Reply to This | # ]
A shell script to edit text files as root in the GUI
Authored by: klktrk on Aug 31, '04 12:52:36PM

Not always. Try doing that with a 600 perm'd file owned by root. (Error code -5000).



[ Reply to This | # ]
A shell script to edit text files as root in the GUI
Authored by: bawbb on Sep 01, '04 12:08:11AM

Ah, maybe I am missing something, or maybe it is because I have an UNIX background and not an OS9 one but..


sudo vi filename


seems to work fine and is quite simple!



[ Reply to This | # ]
A shell script to edit text files as root in the GUI
Authored by: klktrk on Sep 01, '04 01:17:00AM

I was responding to someone who was recommending using BBEdit, not vi, or emacs, or pico.



[ Reply to This | # ]