Re: CGIs with OSX
Re: CGIs with OSX
- Subject: Re: CGIs with OSX
- From: Chris Nebel <email@hidden>
- Date: Sun, 25 Mar 2001 01:24:59 -0800
- Organization: Apple Computer, Inc.
email@hidden wrote:
>
It's in an invisible folder and is owned by root, but I can download it with
>
FTP and I can see where to make the changes. But I cannot write it back to
>
disk because I don't have permission, and I have no clue how to sign in as
>
root - I was never asked for root info at login. Can't do it thru telnet.
>
>
Any Unixy people with ideas? It seems Apple has crippled the command line and
>
closed the user out of root access.
Mac OS X tries to discourage logging in as root because it's very dangerous and
opens you up to all sorts of potential damage. In general, simply being an
administrative user will let you do what you need to. However, as you noticed,
some extra-geeky tasks require root access. There are at least two ways to go
about it:
1. Use "sudo" -- e.g. "sudo vi /etc/httpd/httpd.conf". This will execute
whatever's after the "sudo" as if you were root, after prompting you for the
admin password, which is the same as the password you gave when creating the
adminstrator user in the initial setup. This is relatively safe, because it
limits your god-like abilities to one command at a time. You might consider a
few applications of "sudo chmod g+w" to make the relevant files writable by any
admin user, though depending on the file, some tools may notice and become
unhappy.
2. If you like to live dangerously, you can enable root login using NetInfo
Manager (in Applications : Utilities.) Authenticate yourself by clicking on the
lock button, then select Domain : Security : Enable Root. Once you're done, you
can use "su" or log in as root.
Apple support techs are likely to be, shall we say, less than sympathetic if you
hose your system while running as root. You have been warned.
--Chris Nebel
AppleScript Engineering