Error Writing Permission Denied 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 policies of this site About Us Learn error writing permission denied nano mac more about Stack Overflow the company Business Learn more about hiring developers or posting error writing permission denied raspberry ads with us Ask Ubuntu Questions Tags Users Badges Unanswered Ask Question _ Ask Ubuntu is a question and answer site error writing permission denied ubuntu for Ubuntu users and developers. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise error writing .bash_profile permission denied 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, and want to know if there is any such way to do it in nano? Thanks. sudo text-editor nano share|improve
Error Writing /etc/hosts Permission Denied
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 file. sudo mv will destroy them, which is not what you want, especially if it had executable permissions. –Martin Thornton Jul 11 '15 at 14:34 add a comment| Did you find this question interesting? Try our newsletter Sign up for our newsl
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 of this site About
Error Writing /etc/apt/sources.list Permission Denied
Us Learn more about Stack Overflow the company Business Learn more about hiring developers error write to disk permission denied or posting ads with us Ask Ubuntu Questions Tags Users Badges Unanswered Ask Question _ Ask Ubuntu is a question and error write to disk permission denied utorrent 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 Anybody can answer The best answers are voted up http://askubuntu.com/questions/15447/save-an-edited-file-in-nano-but-no-permissions 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 in terminal and also Amazon web services... I am signed in on an http://askubuntu.com/questions/522003/nano-edit-permission-denied 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
of text files on my Ubuntu systems. This means that I mostly use sudo nano but because I also run nano as a user I experience the following error: Error reading /home/