: How to run Finder as root

Aug 5th, 2005, 01:31 AM
without actually activating the root account.

Also, is there a way to give normal users the ability to view hidden files/folders?

Lastly, does sudo and su work under OS X?

Script Kiddie
Aug 5th, 2005, 07:34 AM
sudo gives the permitted user the ability to execute a command as administrator (or another user) - its on a one-off basis. su on the other hand lets you "become" the other user (typically root) for the duration of the shell. Fairly different beasts. For the latter you need the root account enabled if you want to su to root.

Example, edit the smb.conf
sudo vi /etc/smb.conf
(you will be prompted for administrator password)
- you did not need root enabled to do this

Example, become root and edit the same file
su -
(you will be prompted for root passwd)
vi /etc/smb.conf
- you certainly need root enabled to do this and the root password need not be the same as administrator!
- by the way, the "-" after su makes the root shell take the environment of root
- to become someone else, say user joe, "su - joe"

Oh the other stuff... just enble root and do fast user switching to run finder as root. Thats my "hack" :-/
The hidden file thing I think is just a finder option, applekey-j I think....

Aug 5th, 2005, 07:42 PM
I don't think enabling the root account is a good idea as far as security goes...