LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 02-15-2003, 10:35 AM   #1
HiRoll3r
LQ Newbie
 
Registered: Feb 2003
Posts: 5

Rep: Reputation: 0
Permissions keep resetting for directory


I don't understand this at all. I keep setting permissions for a directory called /home/ftp to 777 so that any user can upload files to this directory. For whatever reason, at some point the permissions go back to 766, meaning that nobody can upload anything besides the directory owner. For instance, I changed the permission to 777 before I went to bed last night, woke up and it was back to 766. It's getting very frustrating, as everyone tells me that permission changes should be permanent. Is there anyway to make sure that the permission doesn't change back, or a way to log when it's changing? Or any ideas as to what's causing this?

BTW, I use Mandrake 9.0, if that matters.
 
Old 02-15-2003, 01:54 PM   #2
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,803

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Re: Permissions keep resetting for directory

Quote:
Originally posted by HiRoll3r
I don't understand this at all. I keep setting permissions for a directory called /home/ftp to 777 so that any user can upload files to this directory. For whatever reason, at some point the permissions go back to 766, meaning that nobody can upload anything besides the directory owner. For instance, I changed the permission to 777 before I went to bed last night, woke up and it was back to 766. It's getting very frustrating, as everyone tells me that permission changes should be permanent. Is there anyway to make sure that the permission doesn't change back, or a way to log when it's changing? Or any ideas as to what's causing this?

BTW, I use Mandrake 9.0, if that matters.
A visit from the security fairy perhaps?

Anyway, I wouldn't think that those permissions would keep users from uploading a file. Now they might not be able to list the directory contents (which is sometimes what you want). Could there be some cron job that's doing this? Does Mandrake have the cron.hourly, .daily, .weekly, .monthly cron subdirectories under /etc like Red Hat does? I'd look in there and see if there's some scheduled job that's resetting your permissions. Anything in the logs? You know approximately when it happened (something between the time you hit the pillow and the time you got up).
 
Old 02-15-2003, 03:09 PM   #3
HiRoll3r
LQ Newbie
 
Registered: Feb 2003
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks for the info.
I looked thru the logs, found that chron.hourly is running msec, which sets umask 0022. I've been looking for a way to make this not apply, somehow, to the /home/ftp directory. The reason why I need this file set to 777 for uploads is becaue it's the initial login directory for all FTP users. If I don't have it set to execute they can't log in.

Here's what it says in /etc/sysconfig/mec:

SECURE_LEVEL=2
UMASK_ROOT=022
UMASK_USER=022
TMOUT=0

An easy fix would be to top chron.hourly, but this also changes permissions on serveral log files from 644 to 640, so I don't want to totally disable it.
 
Old 05-19-2003, 11:08 AM   #4
johnsmith1899
LQ Newbie
 
Registered: May 2003
Location: ohio
Distribution: mandrake 9.1, redhat 9
Posts: 5

Rep: Reputation: 0
I was having a similar problem with a directory in my home folder. acid_kewpie was kind enough to help me. Msec was resetting the permissions so that only the owner of the folder could write to it. Try sharing the folder elsewhere. here is a link to my thread http://www.linuxquestions.org/questi...threadid=60631
 
  


Reply



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
resetting permissions on everything? microsoft/linux Debian 7 05-31-2005 08:58 PM
/dev/nvdia* permissions keep resetting on reboot Lagg Slackware 7 05-13-2005 04:04 PM
Permissions resetting brinkster Mandriva 1 12-06-2004 06:54 AM
samba share permissions keep resetting Red Squirrel Linux - Newbie 0 03-03-2004 08:55 PM
write permissions for directory - not accidently move/deleted the directory linuxgamer Linux - Newbie 10 12-02-2003 03:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:29 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
Open Source Consulting | Domain Registration