You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Paul van Ramshorst <pv...@telusplanet.net> on 2001/12/04 05:50:41 UTC

Re: setup apache account

I can fully sympathize Li, as I am a complete newbie to Linux and Apache
myself.  I found the documetation to be a little confusing on this point.
You must set up the USER you want (for ftp access) on your Linux system
through the User Manager. In KDE, its found at K->Configuration->Other->User
Manager.  I believe the module is just called KUser.
Hope this helps.

Paul

----- Original Message -----
From: Li Tan
To: users@httpd.apache.org
Sent: Monday, December 03, 2001 11:22 PM
Subject: setup apache account


Hi, I am new to apache, currently I am building my own web server using
redhat 7.2, However I don't know how to setup apache account for web
administration such as file uploading, in the system. There is indeed apache
account in linux user list, however I cannot use it to ftp. What should I
do? I just want to use it as normal user account with home directory
/var/www

thanks

Li


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: setup apache account

Posted by Mark Constable <ma...@renta.net>.
On Tue, 4 Dec 2001 16:57, Li Tan wrote:
> Hi, Paul, thanks for your reply. yes, I can setup normal user account in
> the linux, but how can I set the home directory as /var/www (which is in
> RedHat 7.2), so everytime it goes there when I use ftp or telnet. I believe
> apache should be a special account, and this account is used only for web
> administration ( mostly update files or so ). if I use normal user account,
> everytime I need uplaod files and move files into different directory, also
> I may need to change file/directory ownership.

There are a few options, this is one take... the user
ID that apache runs under only needs read access to
display files so I would set up another normal user
account, maybe even "webmaster" (as an example anyway),
and make that users home dir /var/www, then (as root);

 chown webmaster.webmaster -R /var/www

I'm not sure how you add users with RedHat but at worst
you can simply edit /etc/passwd and change the (obvious)
homedir reference with any text editor. Then when the
"webmaster" user logs in via ftp they can upload files
and create folders just fine.

--markc

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: setup apache account

Posted by Li Tan <li...@ou.edu>.
Hi, I created a user and make its home directory /var/www and changed the
directory ownership, however the web doesnot work and is forbidden. Why?
what should I do?

thanks

> There are a few options, this is one take... the user
> ID that apache runs under only needs read access to
> display files so I would set up another normal user
> account, maybe even "webmaster" (as an example anyway),
> and make that users home dir /var/www, then (as root);
>
>  chown webmaster.webmaster -R /var/www
>
> I'm not sure how you add users with RedHat but at worst
> you can simply edit /etc/passwd and change the (obvious)
> homedir reference with any text editor. Then when the
> "webmaster" user logs in via ftp they can upload files
> and create folders just fine.
>
> --markc
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: setup apache account

Posted by Li Tan <li...@ou.edu>.
Hi, Paul, thanks for your reply. yes, I can setup normal user account in the
linux, but how can I set the home directory as /var/www (which is in RedHat
7.2), so everytime it goes there when I use ftp or telnet. I believe apache
should be a special account, and this account is used only for web
administration ( mostly update files or so ). if I use normal user account,
everytime I need uplaod files and move files into different directory, also
I may need to change file/directory ownership.

have any suggestions?

thanks

Li



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org