Linux - NewbieThis 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!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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?
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.
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.