LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 09-06-2004, 08:46 PM   #1
Blazer79
LQ Newbie
 
Registered: Sep 2004
Location: Guatemala, C.A.
Distribution: Mandrake
Posts: 1

Rep: Reputation: 0
Help: Directories magically chgrp and chown by themselves!


Hello:

I'm relatively new to linux.

I just installed Mandrake 10.0 on its own 40Gb hard disk.

I uninstalled the included mysql and installed the newest version I downloaded myself.

I set the datadirectory to be /usr/mysqldata. This directory is owned by mysql and belongs to the mysql group.

Everything works fine for a while, but after 20-30mins or so, the directory magically changes owner to root and to group root. MySQL can't access databases anymore so I have to manually chown and chgrp to the directory again.

This also happens to /usr/uploads which is a directory I created where a PHP script moves uploaded files from Internet. Only this directory is owned by apache and belongs to the apache group. After a while this directory changes owner to root and to the root group all by itself.

I created these directories in /usr because that's my large partition and that's where I need to store my information.

What is going on? Is there some process that automatically resets owners and groups? Is /usr a forbidden place to create my own directores?

Thanks for your help.
 
Old 09-06-2004, 09:48 PM   #2
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 48
you might try using

/usr/share

and see if it does the same thing........there might be a script somewhere
with root permissions that it executing automagically........
 
Old 09-07-2004, 11:52 AM   #3
nafan
Member
 
Registered: May 2004
Location: /dev/bed
Distribution: Mandriva 2009.0 Powerpack
Posts: 172

Rep: Reputation: 30
The Mandrake security package (msec) will re-set the owner:group and modes for files that are listed under /usr every hour by default. To change the setting open the Mandrake control center, go into the security group and use the permissions option to set the /usr/mysqldata directory to be owned, readable and writable by your mysql user, if it gets changed to something else by accident, msec will re-set them to the values you enter. You will also need to do the same for /usr/mysqldata/* so as to get all the files/directories underneath to be set to the correct values as well.
 
  


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
chown, chgrp an entire directoy and contents gin1 Red Hat 8 09-06-2013 02:48 AM
Using chown, chgrp, chmod on a vfat partition? Rodolfo Medina Linux - General 7 08-17-2005 08:17 AM
chmod ,chown ,chgrp------------ pal Linux - Newbie 1 02-27-2005 02:49 PM
chown, chgrp Help Icarus1701 Linux - Newbie 1 10-25-2004 06:42 PM
problems with chown and chgrp apax Linux - Software 6 11-03-2003 03:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

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