At 08:07 PM 2001.05.13 +0200, allan wrote:
>to be honest ive lost track of all the different users on osX
>
>there are normal system-login users like me: username=aju
>there are an apache user:  username=???

Check your httpd.conf file; it defines which user Apache runs as:

12:57:04pm :chris% egrep "^(User|Group) " /etc/httpd/httpd.conf
User www
Group www
12:57:07pm :chris%

>there are an mysql user: username=mysql or undef im not sure

I *think* this is set by your mysql.conf file, though at the moment I can't find where 
that file was installed. The closest I can find is a 
/usr/local/sql-bench/limits/mysql.cfg, which seems close but not right. 

'course you could also get that from "ps -aux | grep mysql", but that's now how you'd 
go about changing it, if that was your goal... 

>then there is this super user. everytime i install something i end up
>needing to be super user so i have a sudo in front of almost any command

If you're going to need it repeatedly, then you can switch to the super user with 
"su", but staying in that mode for long is a bad habit. Adding "sudo" to the beginning 
of each line is tedious, but generally safer (if nothing else, it logs your actions, 
so if you trash things there will hopefully at least be a record of what happened... :)

>how can i see - for instance - the username for the apache server? (ive
>look in httpd, it says nobody!)

It may well be running under user "nobody" -- the idea there is that no one can log 
into your machine under the web server's running account, because that account doesn't 
actually exist (or if it does exist, it's very restricted). You can see what apache 
(or anything else) is running as by running "ps aux", and optionally filtering it with 
a grep or two. On my machine, I show:

2:33:12pm :chris% ps aux | grep httpd
root    222   0.0  0.0     3440     44  ??  Ss     0:47.31 /usr/sbin/httpd
www     225   0.0  0.0     3440     16  ??  S      0:00.00 /usr/sbin/httpd
www     226   0.0  0.0     3440     16  ??  S      0:00.01 /usr/sbin/httpd
www     227   0.0  0.0     3440     16  ??  S      0:00.00 /usr/sbin/httpd
2:33:18pm :chris%

thus apache launches as root, then runs as user "www". (And this is just a 
confirmation of what /etc/httpd/httpd.conf says anyway.) 

>and what if there are no username for an application like apache or
>mysql, i mean if username= super user?

Generally those will run as root (super user & root are basically the same thing), 
though I think it's possible to run as a nonexistent user (e.g. nobody). 




--
Chris Devers                     [EMAIL PROTECTED]
webmaster                                 work: 781.270.5372
Skillcheck                                  aol-im: chdevers

Reply via email to