Error Writing Nano
Contents |
communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and error writing permission denied nano policies of this site About Us Learn more about Stack Overflow the error writing permission denied nano mac company Business Learn more about hiring developers or posting ads with us Ask Ubuntu Questions Tags Users Badges Unanswered
Nano Error Writing No Such File Or Directory
Ask Question _ Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask
Error Writing Permission Denied Raspberry
a question Anybody can answer The best answers are voted up and rise to the top Save an edited file in nano, but no permissions up vote 11 down vote favorite 2 I edited a file in /etc/ that I want to save, but forgot to open it using sudo. I remember there was a command to save such a file in vi, nano no write permission and want to know if there is any such way to do it in nano? Thanks. sudo text-editor nano share|improve this question asked Nov 30 '10 at 5:07 theTuxRacer 5,871135183 The changes are extensive. I suppose I can open a new terminal, hen-pick the changes and copy paste them. Or just copy-paste the whole thing. But I was wondering if there was a "geeky" way of doing it. –theTuxRacer Nov 30 '10 at 5:19 add a comment| 3 Answers 3 active oldest votes up vote 12 down vote accepted Yes you could save it temporarily to your home directory.Press Ctrl+O to change the path to your home directory or in /tmp and then press Enter to save it.Then you can sudo mv it. Press CTRL+O will show you the path.Change that to your home directory or /tmp.For example File Name to Write: /tmp/filename and press enter. share|improve this answer edited Nov 30 '10 at 5:42 Marco Ceppi♦ 31k20132180 answered Nov 30 '10 at 5:23 karthick87 28.3k40139203 1 You need to sudo cp </full/temp/name> </full/original/name> and rm </full/temp/name> to maintain permissions on the original
communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour 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
How To Edit Config Files In Ubuntu
of this site About Us Learn more about Stack Overflow the company Business nano write out Learn more about hiring developers or posting ads with us Ask Ubuntu Questions Tags Users Badges Unanswered Ask Question sudo nano _ Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question http://askubuntu.com/questions/15447/save-an-edited-file-in-nano-but-no-permissions Anybody can answer The best answers are voted up and rise to the top Nano edit, permission denied up vote -1 down vote favorite I am trying to edit a index.php by using sudo nano index.php. Nano opens me into index.php, then i add the code into the file, save and try to exit but it says permission denied. I am using ssh session http://askubuntu.com/questions/522003/nano-edit-permission-denied in terminal and also Amazon web services... I am signed in on an ubuntu@IPADDRESS. any help? 14.04 permissions sudo aws nano share|improve this question edited Sep 9 '14 at 17:02 Volker Siegel 6,14122144 asked Sep 9 '14 at 15:45 Kristin Kohler 111 add a comment| 1 Answer 1 active oldest votes up vote 2 down vote While your user may have permission to read the file, your user doesn't have permission to write the file. Use ls -l
Board index The team Delete all board cookies All times are UTC
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 Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Error writing my.cnf: Permission denied up vote 0 down vote favorite I'm attempting to edit my my.cnf file to allow remote access to mysql (by changing the bind-address). However, I'm getting a "Error writing my.cnf: Permission denied" error when I try to save (using pico through SSH). Running $ lsattr my.cnf returns ---------------- my.cnf What do I need to do to be able to edit this file? Thanks! mysql ssh my.cnf pico share|improve this question asked May 20 '15 at 14:33 user994585 130517 perhaps sudo needs to be used for those commands. –Abhik Chakraborty May 20 '15 at 14:35 Who is the owner of my.cnf? Root? Then you need to become root also (su or sudo). Also you need to change the permissions so that mysql user will be able to read it (as root, you can write also to files with these permissions). –Marki555 May 20 '15 at 14:36 add a comment| 2 Answers 2 active oldest votes up vote 1 down vote Try to edit it as root. Or look for at the file owner and file right with an ls -a. share|improve this answer answered May 20 '15 at 14:37 Leze 1568 add a comment| up vote 0 down vote sudo chmod 644 my.cnf sudo pico my.cnf share|improve this answer answered Jul 11 '15 at 10:46 dev-seahouse 8315 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as