OK, I get it.
Your problem is with user permissions. I'll bet the web server is set up
just fine.
What you need is a user who is privileged to access the web documents
folder.
something like this:
create a new user joe
create a new group webusers
add user joe to group webusers
set user joe's home folder to /home/httpd (so FTP will drop him into the
right folder)
set the owner of /home/httpd to joe/webusers
# chown -R joe.webusers /home/httpd
joe now owns the web documents and when he logs in with FTP he can do what
he likes.
the web server runs as it's own user, usually 'nobody'. 'nobody' needs to
have read access to any file you wish to serve so the file should be world
readable. (note the 3rd r)
-rw-rw-r-- 1 joe webusers 4510 Jan 5 2000 index.html
if you give a file read/write access for the group then any user you add to
group 'webusers' can have access to that file too.
add 'nobody' to 'webusers' and you can set permissions this:
-rw-rw---- 1 joe webusers 4510 Jan 5 2000 index.html
some people have mentioned aliases, they work like this:
your wife has a home folder at /home/wife
when she logs in with ftp that's the folder she is dropped into
if you add an alias /home/wife/webdocs which points to /home/httpd/
then she can get to the /home/httpd/ folder from her account. BUT, the docs
are still owned by root so she can't do anything with them.
another way to go is to create a folder in your wife's home directory
/home/wife/webdocs (owned by her not root) and make this the main folder for
the web server by editing httpd.conf then restating apache.
it is hard to give simple straight answers because everything is so flexible
and everybody sets things up differently. Basically you have to play with
the user/group/permissions 'til you get something that works for you.
Gavin
on 8/24/00 10:35 PM, rharvey wrote:
> If I am root I can have access to the directory.
> But my wife needs to ftp in and drop the files off in the httpd/html
> directory. the error is permission denied. the server will not allow any one
> to log in as root (ftp or telnet or ssh) If you get on ther server it self
> you can log in as root.
> It is not pratical to ftp ito her personal dir and the go to the linus box
> and log in as root and move the files to the httpd/htlm dir. I will check
> the error dir.
>
> ----- Original Message -----
> From: "Asheesh Laroia" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, August 25, 2000 12:25 AM
> Subject: Re: [expert] fustrated!!! permissions in httpd
>
>
>> I don't quite understand.
>>
>> Have you tried copying your new site's contents into /home/httpd/html?
>>
>> (Make sure you "su" to gain root privileges for the copy)
>>
>> Any luck then? And give specific error messages.
>>
>> One other thing: there is a file called /var/log/httpd/error_log that
>> might be of use. Read it; it doesn't seem that you're late enough in the
>> process of using your web server for it to be useful, but if there's
>> anything in it, say so!
>>
>> I have to go to sleep right now, but I'll get back in touch within a few
>> hours. Good luck!
>>
>> Sincerely,
>>
>> Asheesh.
>>
>> On Fri, 25 Aug 2000, rharvey wrote:
>>
>>> I have the newest version of linux mandrake.
>>> I let the install, install my web server.
>>> I have searched many documents . They say that this setup is for
> security.
>>> But they dont say how to copy the files into the appropriate directory.
>>> I have gotten many suggestions and none of them have worked. the only
>>> suggestion I have not tried is a symbolic link.
>>> I dont know how to do this.
>>> I can post the Apache config later ( I am using my windows98 box for
> email)
>>> If you know what lines I need to change please let me know.
>>> ip address is a 192.168.0.2 traffic is redirected by my firewall.
>>> I can see the server fine. I can't upload my new web pages it is still
> the
>>> default pages.
>>> thanks
>>> ----- Original Message -----
>>> From: "Asheesh Laroia" <[EMAIL PROTECTED]>
>>> To: <[EMAIL PROTECTED]>
>>> Sent: Thursday, August 24, 2000 11:55 PM
>>> Subject: Re: [expert] fustrated!!! permissions in httpd
>>>
>>>
>>>> First of all, calm down! I know you're frustrated, but you sound
> frantic,
>>>> disorganized, and confused, none of which would be helpful to solving
>>>> problems.
>>>>
>>>> Can you describe your environment for us?
>>>>
>>>> Version of Mandrake
>>>> Output of "ls -l /home/httpd"
>>>> Hardware in your computer
>>>> IP Address / Domain Name
>>>> Apache config file (attach it, I suppose)
>>>>
>>>> Information is useful, especially for solving problems :-).
>>>>
>>>> Good luck with this.
>>>>
>>>> - Asheesh Laroia
>>>>
>>>> On Thu, 24 Aug 2000, rharvey wrote:
>>>>
>>>>> Any one any where know the right way to set up a web server?
>>>>> no matter what dir I setup as the httpd dir. or what chmod setting I
>>> give
>>>>> it, permissions are denied to copy files into it.
>>>>> Are there not any instructions on how to configure a working
> directory?
>>>>> Some one told me I should use a symbolic link
>>>>> If so what do I enter and in what file?
>>>>> Please help!
>>>>>
>>>>> Thanks