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 03-11-2004, 02:13 PM   #1
elderain
LQ Newbie
 
Registered: Mar 2004
Location: Ohio
Posts: 16

Rep: Reputation: 0
Question Directory permission problem


Hello,

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'.

Thank you,

--Trent
 
Old 03-11-2004, 03:30 PM   #2
Farmchild
LQ Newbie
 
Registered: Oct 2002
Distribution: Red Hat 8
Posts: 14

Rep: Reputation: 0
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.
 
Old 03-11-2004, 04:12 PM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
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.
 
Old 05-24-2004, 10:09 AM   #4
meblost
Member
 
Registered: May 2004
Location: At Keyboard
Distribution: Mandrake 10.0, SuSE 9.0
Posts: 114

Rep: Reputation: 15
"Also, just change the permissions of the subdirectory that you are sharing and not your entire home directory"


You need to make your home dir at least execute-able (701) by others or they will not be able to see your public_html.
 
Old 05-24-2004, 10:15 AM   #5
meblost
Member
 
Registered: May 2004
Location: At Keyboard
Distribution: Mandrake 10.0, SuSE 9.0
Posts: 114

Rep: Reputation: 15
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.
 
Old 05-24-2004, 11:31 AM   #6
marghorp
Senior Member
 
Registered: Jan 2004
Location: Slovenia
Distribution: Slackware 10.1, SLAX to the MAX :)
Posts: 1,040

Rep: Reputation: 45
The thing with permissions you want todo is change them to 755 (rwxr-xr-x).

Directories must be made executable, for others to be able to open them. 755 is the defualt permissions of most web servers. Mine too.

experiment also with http://yourserver/~startrek and http://yourserver/~startrek/

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).
 
Old 05-24-2004, 12:25 PM   #7
meblost
Member
 
Registered: May 2004
Location: At Keyboard
Distribution: Mandrake 10.0, SuSE 9.0
Posts: 114

Rep: Reputation: 15
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.
 
  


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
Home Directory Permission dvishloff Linux - General 1 08-11-2005 05:07 AM
directory permission Drunkalot Linux - General 1 07-05-2005 02:05 AM
Two groups that have different permission to the same directory - it's possible? immer Linux - Newbie 7 10-22-2004 06:00 AM
cant change directory permission? dwarf007 Linux - General 1 09-24-2004 10:35 AM
Permission for directory absolut Linux - Newbie 2 01-19-2004 05:38 AM


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