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 01-11-2006, 02:39 PM   #1
KrGAce
Member
 
Registered: Dec 2004
Location: Vermont
Distribution: Ubuntu
Posts: 58

Rep: Reputation: 15
FTP File Permissions Issue


Hello All,

I have FTP up and running although it isn't what I would like it to be and I now have this issue. Users upload their files to their public_html directory, and somehow in the process it makes their file "read-only" for the owner and no one else, which makes their web file (index in this case) display as "access forbidden". I have to constantly go into an FTP client as them and set the permissions to "read only" for everyone and the page displays. I am using Suse Linux Enterprise Server 9.

Does anyone know what is going on, or what I have configured wrong? Thank you in advance,


AceMan
 
Old 01-11-2006, 03:55 PM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
What privileges have been given to the users?
 
Old 01-11-2006, 04:26 PM   #3
saman007uk
Member
 
Registered: Dec 2003
Location: ~root
Distribution: Debian
Posts: 363

Rep: Reputation: 33
You have to confiure the FTP server to uplaod files using the correct premissions. (Readable by Everyone)
 
Old 01-11-2006, 05:38 PM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,568

Rep: Reputation: 164Reputation: 164
You need to look into the FTP server configuration. You should have an option to set up permissions for uploaded files (accessible for owner-only is correct in most cases, but not in yours, it seems). The exact place depends on the FTP server. Which one do you have?
 
Old 01-11-2006, 06:31 PM   #5
KrGAce
Member
 
Registered: Dec 2004
Location: Vermont
Distribution: Ubuntu
Posts: 58

Original Poster
Rep: Reputation: 15
I am using PureFTPd and I have looked that config over and over and can't see anything regarding that.



AceMan
 
Old 01-11-2006, 07:05 PM   #6
saman007uk
Member
 
Registered: Dec 2003
Location: ~root
Distribution: Debian
Posts: 363

Rep: Reputation: 33
Here is an excerpt from a pure-ftp config file:
Code:
# File creation mask. <umask for files>:<umask for dirs> .
# 177:077 if you feel paranoid.

Umask                       133:022
The files most liekely should be readable by everyone in a commercial web-server enviroment as they need to be readable by the user the HTTP-daemon is running as. For info on umask codes, do:
Code:
man umask
 
Old 01-12-2006, 08:22 AM   #7
KrGAce
Member
 
Registered: Dec 2004
Location: Vermont
Distribution: Ubuntu
Posts: 58

Original Poster
Rep: Reputation: 15
Thanks for the help everyone,


I will check that out. It's nice when you post a problem, and get several responses and the answer seems to be the same. Then you know you might be on the right track.


Thanks again,



AceMan
 
  


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
FTP File Permissions Issue KrGAce Linux - Networking 1 01-11-2006 07:33 PM
ftp changes file permissions! seran Linux - General 2 07-13-2005 08:34 AM
Weird File Permissions Issue SiLiCoN *BSD 1 04-08-2005 05:41 AM
File/Folder Permissions with FTP scottpioso Linux - Security 8 03-12-2004 03:19 PM
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 08:33 PM.

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