LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-06-2004, 11:26 AM   #1
paleogryph
Member
 
Registered: Mar 2003
Location: SLC, UT, US
Distribution: Fedora 12
Posts: 34

Rep: Reputation: 15
Question Perm issue and Apache


RH 8 setup w/Apache. Can't ftp files (put) into /var/www/html (docroot). Can however get a dir list.

Also, from the console only root can actually create files in that dir. Anyone else who tries gets "E212: can't open file for writing". This appears to be a permissions issue. Who should own /var/www and/or /var/www/html, and the files therein?

Any help is greatly appreciated!
 
Old 04-13-2004, 08:38 AM   #2
QuakerJ
LQ Newbie
 
Registered: Mar 2004
Location: Nottingham, UK
Distribution: Fedora14 - Gnome2
Posts: 15

Rep: Reputation: 0
The default httpd.conf sets the user and group of the process running apache as nobody:nobody. Probably nobody is denied ftp access and is unlikely to have a password. It's what root defaults to when accessing NFS mounted directories.

I have changed User and Group lines in my httpd.conf to
User apache
Group apache

and as root ran
chown -R apache:apache /var/www

If you give apache a password you can ftp in as apache. Since on FC1 /var/www is apache's home directory that is where you will be when you make your ftp connection. And the files you put there will belong to apache.

In friendship,

QuakerJ
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Perm mnting a HD partyk1d24 Linux - Hardware 1 10-06-2005 08:34 PM
ntfs write perm on vidalinux doralsoral Linux - Software 1 02-07-2005 10:03 PM
ripperx/grip no perm /cdrom crashmeister Linux - Software 2 08-30-2002 03:14 PM
find / \( -perm -0200 -o -perm -04000 \) -ls. How to remove the bit ForumKid Linux - Security 3 01-16-2002 12:36 PM
Perm Routes and Arp Statments. Ox///M Linux - Networking 2 01-11-2002 06:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration