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!
Notices
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.
I was told to do a 'chmod 701 myhomedir' so that I can use my public_html dir. After typing in the chmod command I can access my ~username site without any issues, but after about 10 minutes or so the permissions get set back and I get a message saying 'You don't have permission to access /~startrek/index.html on this server.'
Does anyone have any ideas? I am using Mandrake Linux 9.2 and if it helps any I have my security level set to 'higher'.
You can't access it from your account, or from a web browser? Since a web browser doesn't store your account/password or anything, to be able to publicly view your pages properly, you should set permisions for all, not just the owner. I'm not sure if html pages need read or execute actions, i know php needs only execute so I'd guess that. Try chmoding it to 707 instead of 701.
You may need to fine tune the msec program. Also, just change the permissions of the subdirectory that you are sharing and not your entire home directory.
Go to the Mandrake Control Program and Select Security. Add a directory entry for your public_html dir and the permissions you want set.
Rather, you should set permissions for others only to execute, not at least to execute as I said before. ie don't give any more permissions than execute.
These are two different addresses if some config files are set this way. So do try both of them. MAybe one of them will give you a forbidden page (or permission page).
public_html must have at least read and execute, but home can have just execute. Read on home allows others to see directory contents of home when all that is needed is permission to enter home and continue on to public_html.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.