LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-25-2003, 10:05 PM   #1
neubeigh
LQ Newbie
 
Registered: Nov 2003
Distribution: Slackware 9.1
Posts: 7

Rep: Reputation: 0
Permissions trouble in Apache


I just got Slackware 9.1 installed. I'm using the machine as a webserver (using Apache Webserver 1.3.28), outside my firewall.
I have a webcam set up on my WinXP box, with a program that FTPs the image to the webserver.
At first, the webcam program couldn't get access to the proper directory. A friend suggested the following:
Quote:
1. Create a new user - "webcam"
2. Create a directory under your web root called "webcam".
3. Change to your web root and use the "chown" command to set permissions on the webcam directory (format: chown [user]:[group] [file]):
chown webcam:webcam webcam
4. Change permissions on that directory with "chmod" to allow writing/reading (format: chmod [read][write][execute] [file]):
chmod 744 webcam
5. Put a virtual link in the "webcam" user's home directory to the "webcam" folder under the web root:
ln -s /var/www/html/webcam /home/webcam/public_html
6. Try to ftp to the server using the "webcam" user acount, chdir to public_html, and drop your file.
I did all this, and the webcam program can now FTP the image successfully.
However, now my web browser can't see the image, nor can it navigate to the /webcam directory. I'm sure there is some permissions issue here, but I don't know what to do to fix it.

Any help would be appreciated!

Last edited by neubeigh; 11-25-2003 at 10:06 PM.
 
Old 11-25-2003, 10:19 PM   #2
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
I think you also need 'x' permission on the directory in order to browse it, try chmod 755 on the webcam dir.
 
Old 11-25-2003, 10:43 PM   #3
neubeigh
LQ Newbie
 
Registered: Nov 2003
Distribution: Slackware 9.1
Posts: 7

Original Poster
Rep: Reputation: 0
That did the trick!

Thanks Demonbane!
 
  


Reply



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
trouble changing permissions 0perat0r Linux - Newbie 20 07-29-2005 05:32 AM
Trouble: mounting, linking, permissions. crackery Linux - Newbie 2 01-28-2005 09:03 PM
Having trouble with write permissions fleuh Linux - General 2 05-18-2004 12:35 PM
Trouble with file permissions daekpon Linux - General 8 03-15-2004 10:57 AM
Folder Permissions Trouble 69_rs_ss Linux - General 3 01-16-2004 06:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:09 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
Open Source Consulting | Domain Registration