Click to See Complete Forum and Search --> : Apache add user?


DJKAOS
11-25-2001, 07:06 PM
This is probably a dumb question but I can't really figure out the answer in the NFS.

I got apache up and running but I can only do anything with it when I am in root.

I would like to be able to edit php,html file when I am logged into my user account...
call it DJKAOS

when I am in DJKAOS I can't change the files in /usr/local/apache/htdocs/

I'm guessing what I want to do is have my user added and give DJKAOS user a public_html directory??

so I could get there with http://myipaddress/~DJKAOS

how can I do that? or should I just change permissions so I can change files in /usr/local/apache/htdocs/

??
THanks for any help.

WilliamWallace
11-26-2001, 12:04 AM
if this is on a server you run, all you need to do is log in as root and change the permissions on the htdocs directory so your user "DJKAOS" has write permissions.

as root:

chown DJKAOS /usr/local/apache/htdocs

or you can use something more sophisticated (and secure) like sudoers. see "man sudoers" for more info.

DJKAOS
11-26-2001, 01:43 AM
Thanks, I have just been using the
command su
it works fine since I just need to get at those php files.