LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-06-2005, 09:46 PM   #1
whatnoname
LQ Newbie
 
Registered: Jun 2005
Posts: 7

Rep: Reputation: 0
I messed up my mysql file ownerships


I've was having a little trouble installing mysql, but all seems ok now. (in as much as i can start/stop it, removed the default users & added paasword for mysql -u root). Except for the file ownership of some files in /var/lib/mysql. As you can see the group ownership is 507.
Code:
-rw-rw----  1 mysql mysql   79 Jun  7 00:45 host-bin.000007
-rw-rw----  1 mysql mysql 208K Jun  7 00:45 host-bin.000008
-rw-rw----  1 mysql mysql   79 Jun  7 00:45 host-bin.000009
-rw-rw----  1 mysql mysql  214 Jun  7 01:10 host-bin.000010
-rw-rw----  1 mysql mysql  239 Jun  7 01:22 host-bin.000011
-rw-rw----  1 mysql   507  198 Jun  7 01:21 host-bin.index
-rw-rw----  1 mysql root  5.2K Jun  7 01:50 host.aaa.co.uk.err
-rw-rw----  1 mysql   507  10M Jun  7 01:50 ibdata1
-rw-rw----  1 mysql   507 5.0M Jun  7 01:50 ib_logfile0
-rw-rw----  1 mysql   507 5.0M Apr 26 10:51 ib_logfile1
drwx--x--x  2 mysql root  4.0K Apr 26 10:51 mysql
drwxr-xr-x  2 mysql root  4.0K Apr 26 10:51 test
So what should the permissions be on these files? Would someone show me their output of ls -lh /var/lib/mysql please?

Similarly, the files in /var/lib/mysql/mysql are showing ownership as 507 too. Should these be the same uid for my current mysql group ? or set to root?

Thanks
 
Old 06-06-2005, 11:58 PM   #2
juanbobo
Member
 
Registered: Mar 2005
Location: Chicago
Distribution: Gentoo AMD64
Posts: 365

Rep: Reputation: 30
They should all be owned by "mysql".

"chown mysql:mysql /var/lib/mysql/*"
"chown mysql:mysql /var/lib/mysql/mysql/*"
 
Old 06-07-2005, 08:33 AM   #3
whatnoname
LQ Newbie
 
Registered: Jun 2005
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks
 
  


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
I have messed up system directory ownerships Mike Gibson Linux - Newbie 13 02-23-2005 12:10 PM
Unix ownerships got messed(very urgent please).. mahamkali Linux - Security 1 01-02-2005 02:50 AM
Cleanup after messed up mysql install ilhbutshm Linux - Software 1 05-24-2004 02:56 PM
I'm new, and I think I might have messed up the mySQL server sohhos Linux - Newbie 8 10-04-2003 01:24 AM
File ownerships/groups plisken Linux - General 3 03-04-2003 06:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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