LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 07-06-2008, 09:50 PM   #1
trist007
Senior Member
 
Registered: May 2008
Distribution: Slackware
Posts: 1,033

Rep: Reputation: 69
I have an ftp server on proftpd and...


I got this daemon running on fedora 8. I put some files up on the ftp server. I made sure to chmod 777 all the stuff, so I can log in via cute ftp and create folders, edit files, etc. However, I put some files up. I chmod 777 them. Now, I went to my website where these files are posted. I'm using a web browser, and I go into the web page that has these files. I try to download these files but the browser says I do not have permission. Since I'm using http I can't download these files as my user name. Of course I could go to the url and put ftp and login as my user, but I want to make this file available to everyone.

I'm thinking I need to use the chown command. I need to make it available to everyone. So I'm guessing the command would go something like this?

chown everyone filename ???

How should I go about it? Instead of chown each and every file, how do I chown everything in a directory?
 
Old 07-06-2008, 10:31 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
chown -R

man chown for all available options and the man page.

But I don't think this is an ownership issue, if the files have -rwxrwxrwx across the board, then they should be accessible. Make sure your proftpd daemon or server doesn't have a umask setting changing the permissions of these files.
 
Old 07-06-2008, 10:31 PM   #3
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
There's no way to change ownership to everyone (your command would try to change ownership to a user named everyone, which likely doesn't exist). Each file has one and only one owner. However, chmod 777 should allow everyone all permissions. Have you verified that permissions are sert correctly (with ls -l)? How about the parent directory? Is Apache even configured to serve up files from your FTP login area (usual it only serves files from /var/www/html or the like)?

You can use the -R flags to chown/chmod to make them recursive. Be careful, though -- this can have unintended side effects (like removing executable permission from a directory so no one can cd to it). Additionally, you should probably not just make everythign world writeable -- this is bad from a security standpoint. It only needs to be readable by the Apache user for Apache to serve it up.
 
Old 07-06-2008, 10:33 PM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
Quote:
Originally Posted by btmiller View Post
There's no way to change ownership to everyone (your command would try to change ownership to a user named everyone, which likely doesn't exist).
I think they were referring to the recursive option, to change the ownership of all files in directory.
 
Old 07-06-2008, 10:40 PM   #5
trist007
Senior Member
 
Registered: May 2008
Distribution: Slackware
Posts: 1,033

Original Poster
Rep: Reputation: 69
Yeah permissions are maxed across the board, 777
on the proftpd.conf
it has a umask 022
should I change this to something else?

Yeah, I'll set the permissions later to only be usable by the Apache user, however, I do want some files to be available to all, so that anybody could download them off my website.

So later on, when I wanna make it usable only by user, I just chown the dir(root directory of the ftp, not root as in root) -R ?

Last edited by trist007; 07-06-2008 at 10:47 PM.
 
Old 07-07-2008, 01:39 PM   #6
trist007
Senior Member
 
Registered: May 2008
Distribution: Slackware
Posts: 1,033

Original Poster
Rep: Reputation: 69
bumping the bump
 
  


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
Proftpd is slow ftp server ? centosfan Linux - Server 5 11-14-2009 03:41 PM
Why FTP server: proftpd NOT working? cucolin@ Fedora 10 10-30-2007 04:13 PM
proftpd (ftp server) Adrian13 Linux - Software 3 10-18-2004 05:22 PM
About Proftpd ftp server config tommyliu Linux - Newbie 2 06-13-2004 12:39 PM
Setting up an FTP Server using ProFTPD Torm3nt Linux - Newbie 5 12-11-2002 07:05 PM


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