LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 06-22-2004, 09:01 PM   #1
jwest44
LQ Newbie
 
Registered: Jun 2004
Posts: 2

Rep: Reputation: 0
Permissions wrong on FTP file upload


I'm working with a new system operator who is setting up a new Linux server for me to host a website. He's new in this role -- and I don't know much either. Here's the problem I can't solve:

When I FTP an HTML file to the designated directory, I can't display it in my browser due to an "403 Access Forbidden - You don't have permission to access the requested object. It is either read-protected or not readable by the server" error message. Looking at the permissions of the file show that it's "640", meaning that it is not readable for everyone, only the user and group but not world. I can modify the permission to 644 which solves the problem. But this would be a PAIN for EVERY file I transfer.

My questions are, how can I avoid having to make this change for EVERY file? How does Linux assign the permission to an uploaded file? The directory is /svr/www/htdocs/ and it looks like htdocs permission is set for 775 -- wouldn't it default to this??

Thanks.

PS -- it says Apache/2.0.48 (Linux/SuSE) at the bottom of the browser error message page -- does this help?
 
Old 06-22-2004, 11:37 PM   #2
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 96
Hi.

There should be an option in your ftp server's configuration to chmod to a particular value any uploaded files. Depends which ftp server you're using.

Dave
 
Old 06-23-2004, 10:05 AM   #3
jwest44
LQ Newbie
 
Registered: Jun 2004
Posts: 2

Original Poster
Rep: Reputation: 0
Forgive me for being a newbie, but how do you configure the ftp server?
 
Old 06-23-2004, 11:15 AM   #4
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 96
Depends on which ftp server you're using. If it's RedHat you're on, then the server will probably be 'vsftpd'. The configuration for that server is in /etc/vsftp/vsftp.conf

Have a look at what processes are running, and look for something with ftp and d in the process name. Once you know what the name of the server program is, try 'man <name_of_program>' to see the manual page. That should tell you what to do.

Dave
 
  


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
Preventing FTP download and upload the same file simultaneously benw Linux - Networking 2 08-29-2005 09:34 AM
ftp changes file permissions! seran Linux - General 2 07-13-2005 08:34 AM
No able to Upload file to FTP serve using squid proxy simplyrahul Linux - General 2 02-16-2005 05:01 PM
Changing file permissions on upload guix Linux - General 2 07-05-2004 09:58 AM
locking a usage policy file/ftp file permissions gbow Linux - Newbie 0 02-16-2004 06:35 AM


All times are GMT -5. The time now is 04:42 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