Error Writing /etc/my.cnf Permission Denied
Get Kubuntu Get Xubuntu Get Lubuntu Get UbuntuStudio Get Mythbuntu Get Edubuntu Get Ubuntu-GNOME Get UbuntuKylin Ubuntu Code of Conduct Ubuntu Wiki Community Wiki Other Support how to edit my.cnf file in linux Launchpad Answers Ubuntu IRC Support AskUbuntu Official Documentation User Documentation Social Media mysql my cnf Facebook Twitter Useful Links Distrowatch Bugs: Ubuntu PPAs: Ubuntu Web Upd8: Ubuntu OMG! Ubuntu Ubuntu Insights Planet Ubuntu Activity restart mysql ubuntu Page Please read before SSO login Advanced Search Forum The Ubuntu Forum Community Ubuntu Official Flavours Support Installation & Upgrades [SOLVED] Permission denied problem. Bug? Having an Issue With Posting ? Do you want to help us debug the posting issues ? < is the place to report it, thanks ! Results 1 to 7 of 7 Thread: Permission denied problem. Bug? Thread Tools Show Printable Version Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode March 31st, 2010 #1 ArtemNY View Profile View Forum Posts Private Message Just Give Me the Beans! Join Date Mar 2010 Location Brooklyn, NY Beans 53 DistroUbuntu 9.10 Karmic Koala Permission denied problem. Bug? Reinstalled a fresh copy of Ubuntu 9.10. Accordingly to the official manual installed LAMP. Using: Code: sudo tasksel install lamp-server Last step is to change my ip in my.cnf. Opened it with the command terminal. Tried both: Code: nano /etc/mysql/my.cnf and Code: $ sudo nano /etc/mysql/my.cnf Changed my ip. Tried to save and: Code: Error writing /etc/mysql/my.cnf: Permission denied Tried to manually open my.cnf, change my ip and save it and: Code: Could not save the file /etc/mysql/my.cnf. You do not have the permissions necessary to save the file. Please check that you typed the location correctly and try again. I didn't install anything before that, not even updates. Just installed LAMP on a fresh copy of Ubuntu. Is this a bug or what? Last edited by ArtemNY; March 31st, 2010 at 03:56 AM. Adv Reply March 31st, 2010 #2 ArtemNY View Profile View Forum Posts Private Message Just Give Me the Beans! Join Date Mar 2010 Location Brooklyn, NY Beans 53 Distr
Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Server Fault Questions Tags Users Badges Unanswered Ask Question _ Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody https://ubuntuforums.org/showthread.php?t=1443302 can answer The best answers are voted up and rise to the top Unable to edit/delete/move /etc/my.cnf - Permission denied up vote 1 down vote favorite I am trying to edit /etc/my.cnf as root user via ssh and I get following error while trying to save it I ma making changes to my.cnf as I want to tweak some values in my.cnf to meet http://serverfault.com/questions/447497/unable-to-edit-delete-move-etc-my-cnf-permission-denied Magento requirement like changing key_buffer_size= to higher value (128M). I assigned the value 128M to key_buffer_size= and tried to save it and then got an error. "Error writing /etc/my.cnf: Permission denied" I cant even restart MySQL successfully. [root@flourish ~]# service mysqld restart Stopping mysqld: [ OK ] MySQL Daemon failed to start. Starting mysqld: [FAILED] I can even delete or replace it with the fresh one. I tried uninstalling MySQL and re-installing but nothing worked. Permission -rw-r--r-- and Owner/Group root/root I hope there is some answer to this problem. mysql ssh my.cnf share|improve this question edited Nov 11 '12 at 5:23 asked Nov 11 '12 at 4:57 FlourishDNA 11515 How do you know you're root? –Michael Hampton♦ Nov 11 '12 at 5:03 I ma using username as root which I created while setting up the server. visudo root ALL=(ALL) ALL –FlourishDNA Nov 11 '12 at 5:11 Please edit your question to specify exactly what you are doing, then. –Michael Hampton♦ Nov 11 '12 at 5:12 Hi @MichaelHampton I have added more details. Thanks –FlourishDNA Nov 11 '12 at 5:24 add a comment|
Forums Hosting Security and Technology Unable to save changes in my.cnf If this is your first visit, be sure to check out the FAQ by clicking http://www.webhostingtalk.com/showthread.php?t=612509 the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. Results 1 to 6 of 6 Thread: Unable to save changes in my.cnf Tweet Thread Tools Show Printable Version Subscribe to this Thread… Search Thread Advanced Search Display error writing Linear Mode Switch to Hybrid Mode Switch to Threaded Mode 06-13-2007,08:28 AM #1 Im_Goodspeed View Profile View Forum Posts View Forum Threads Junior Guru Join Date Jul 2003 Posts 222 Unable to save changes in my.cnf Very strange problem. As root I can't save any changes inside my.cnf. Allways getting this error: Could not open file for writing: Permission denied I checked file permissions twice error writing /etc/my.cnf - everything seems to be normal. How can I fix it? Thanks! Whoever wants everything has nothing Reply With Quote 0 06-13-2007,08:51 AM #2 Techbrace View Profile View Forum Posts View Forum Threads Visit Homepage Web Hosting Guru Join Date Jul 2006 Location On top of the Servers Posts 323 Let us know what is the output from the following commands: lsattr /etc/my.cnf ls -l /etc/my.cnf ls -ld /etc lsattr -d /etc || Techbrace :: 24 x 7 Outsourced Web Hosting Support since 2006 || For Hosting Companies & Data Centres :: Helpdesk / Chat / Phone / Social Media :: cPanel / Plesk / DirectAdmin || Dedicated / VPS / Cloud Server Management :: Server Support On Demand :: Fully Managed Servers Reply With Quote 0 06-13-2007,09:09 AM #3 SparkSupport View Profile View Forum Posts View Forum Threads Visit Homepage Web Hosting Master Join Date May 2006 Location India Posts 661 If the permission has -ia- flag set you can remove this by issuing the command chattr -ia /etc/my.cnf After this you will be able to make the changes ██ SparkSupport.Com - The Premier Tech