Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
09-06-2004, 09:46 PM
|
#1
|
LQ Newbie
Registered: Sep 2004
Location: Guatemala, C.A.
Distribution: Mandrake
Posts: 1
Rep:
|
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.
|
|
|
09-06-2004, 10:48 PM
|
#2
|
Senior Member
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577
Rep:
|
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........
|
|
|
09-07-2004, 12:52 PM
|
#3
|
Member
Registered: May 2004
Location: /dev/bed
Distribution: Mandriva 2009.0 Powerpack
Posts: 172
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 08:55 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|