LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 11-17-2004, 10:35 AM   #1
Edrin
LQ Newbie
 
Registered: Nov 2004
Location: Canada
Distribution: Mandrake
Posts: 3

Rep: Reputation: 0
directory permissions reverting to default


Time to give up and actually ask for help.
I'm fairly new to linux having been using apple products and then windows.

I'm having trouble with getting friends web pages to show online using /~username/ after the main page.
I chmodded the user directory (file:/home/user) to 755 and that allows me to access the web page propperly. however, after a while I get the 'forbidden' error and find that the permissions have gone back to default.
Is there a reason why the directory permissions would change back? I have tryd adding the user to a separate group and making the owner apache (saw it suggested in here somewhere), having root with full power over the directory, having the user in controle of the directory.
Variations of the user, root, and the web group in control
Anyways my setup, I'm using Mandrake V9.0, the router handles the dns stuff, the computer is a old HP Vectra. Other than the directory permisions everything has been working great.
Any suggestions would be great and I appologize if this has been answerd before, I found some simular articles when I did a search but nothing that worked.
Edited out the url so this would post.
 
Old 11-17-2004, 12:20 PM   #2
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 52
what do you mean permissions are "default" ?? what is that ?? show ls -l
my permissions are all 755 both for home dir and for public_html
i just ssh to my internet service provider and theirs is the same 755

Last edited by foo_bar_foo; 11-17-2004 at 12:23 PM.
 
Old 11-17-2004, 01:01 PM   #3
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 52
hi again i read a little about this cause i was currious
it seems mandrake has some security files in
/etc/security/msec/

appearently you can run at different msec levels ??? (mandrake security) = msec
try "man msec" i think it's a command like "msec x" for different levels ?????
looks like you want security level 3 ???? user umask 022

or possibly edit the files
perm.local i think is the one you want to edit
/home/* current 755

????????

also level.local has a setting
set_user_umask('xxx')
that might be a problem as well for new files added or new directories

and thanks to your question now i know i never want to use mandrake -- not a big fan of automatic security
settings
 
Old 11-17-2004, 10:03 PM   #4
Edrin
LQ Newbie
 
Registered: Nov 2004
Location: Canada
Distribution: Mandrake
Posts: 3

Original Poster
Rep: Reputation: 0
Heh, I was gonna use freebsd but that was too far above my head. I tryed editing the /home/* to 755 but it still switched back. I think ill try messing with the securety levels after work. I'm gonna put it on the lowest one and enable features I want one at a time using the securety utility in mandrake.
Any recomendations for a better distribution if something cant be worked out? And thanks for the suggestions. At least I have a few new areas to mess around in now. ^^
 
Old 11-18-2004, 11:05 AM   #5
Edrin
LQ Newbie
 
Registered: Nov 2004
Location: Canada
Distribution: Mandrake
Posts: 3

Original Poster
Rep: Reputation: 0
went to basic securety setting. I'll try enabling any features I want separately. So much for high securety being for running a server. Thanks again for suggesting messing with the securety.
 
  


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
Default directory permissions gwroy20 Linux - Software 7 08-28-2005 04:30 PM
Problem with permissions reverting to original setting preacherman481 Linux - General 1 03-30-2005 09:14 AM
Default directory and file permissions kodon Slackware 10 08-08-2004 08:27 AM
Default Directory Permissions tranquil222 Linux - Software 8 05-20-2004 05:10 PM
Home directory permissions reverting back Parksy Linux - General 3 02-04-2004 08:21 PM


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