[hardy] nano Error reading ~/.nano_history: Permission denied

Bug #188534 reported by Caroline Ford
4
Affects Status Importance Assigned to Milestone
nano (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: nano

secret@celery:/etc/X11$ nano xorg.conf

Error reading /home/secret/.nano_history: Permission denied

Press Enter to continue starting nano.

Then nano starts as normal. It happens every time.

nano 2.0.7-1

Looking at the perms of ./nano_history only root has read access.

Revision history for this message
Caroline Ford (secretlondon) wrote :
Revision history for this message
Risto H. Kurppa (risto.kurppa) wrote :

Confirmed on Gutsy:

kurppa@lanka:~/.unison$ nano datat.prf

Virhe luettaessa tiedostoa /home/kurppa/.nano_history: Permission denied

Press Enter to continue starting nano.

kurppa@lanka:~/.unison$

Revision history for this message
Caroline Ford (secretlondon) wrote :

I still have this in Hardy beta.

Revision history for this message
Caroline Ford (secretlondon) wrote :

I'll see if I can patch this.

Changed in nano:
assignee: nobody → secretlondon
Revision history for this message
Caroline Ford (secretlondon) wrote :

http://ubuntuforums.org/showthread.php?t=204307 is a mention of this bug going back to 06.

Revision history for this message
Markus Korn (thekorn) wrote :

I can confirm this in hardy (version of nano: 2.0.7-1ubuntu1)

Steps to reproduce this:
$ cd ~
$ rm .nano-history
$ sudo nano

enter some text, then search for some text (^W) and add this text to the search history (^P). Then close nano.

Now a .nano-history is created in the users home-dir:
$ ls -all .nano*
-rw------- 1 root root 6 2008-04-14 19:20 .nano_history

Starting without superuser-rights reproduces this bug
$ nano

Fehler beim Lesen von /home/markus/.nano_history: Permission denied

Drücken Sie die Eingabetaste, um mit dem Starten von nano fortzufahren.

Markus

Changed in nano:
status: New → Confirmed
Revision history for this message
Caroline Ford (secretlondon) wrote :

Bug #11242 is the same issue, which was marked as invalid.

Revision history for this message
Caroline Ford (secretlondon) wrote :

Unassigning from me as it's not a simple fix, and looks like it would be a controversial one.

Changed in nano:
assignee: secretlondon → nobody
Revision history for this message
Fansana (ageofi95) wrote :

to fix this you just have to:

$ chmod currentUser:currentUser ~/.nano_history

if the error persists try:

$ sudo chmod o+rw ~/.nano_history
that way nano can read the file no matter who the owner is.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.