bugGNU nano - Bugs: bug #26000, Enhancement request: prompt for...

 
 

bug #26000: Enhancement request: prompt for password when permission denied

Submitted by:  Richard Neill <richardneill>
Submitted on:  Wed 25 Mar 2009 11:22:27 PM UTC  
 
Category: NoneSeverity: 1 - Wish
Item Group: NoneStatus: Wont Fix
Privacy: PublicAssigned to: None
Open/Closed: ClosedRelease: None

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sat 17 May 2014 12:09:42 PM UTC, comment #2:

Well, it is not nano's business to handle permissions. But... it can do much, much better at warning the user about unwritableness of the file -- better than just putting up an almost unnoticeable message tagged onto the "lines read" one. See bug #42383.

Benno Schulenberg <bens>
Project Member
Sun 23 Feb 2014 12:53:22 PM UTC, comment #1:

Hmm... I don't think that's a good idea -- one reason is that it assumes the user is allowed to do sudo. How about emitting a BELL when write permission is lacking (in addition to the warning in the status bar)? And meanwhile, it's easy enough to work your way around it: save the file as for example ./oops and after exiting nano sudo cp oops to destination.

Benno Schulenberg <bens>
Project Member
Wed 25 Mar 2009 11:22:27 PM UTC, original submission:

If I had $1 for every time I manage to forget to "sudo" before trying to edit a file as root, and then get into trouble when I try to save the file, I'd be a wealth (and far less stressed) person).

When nano generates the message: "Error saving file, permission denied", could we possibly have the option to prompt to enter the relevant (usually root) password?

Thanks!

Richard Neill <richardneill>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by bens (Posted a comment)
  • -unavailable- added by doherty
  • -unavailable- added by richardneill (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 17 May 2014 12:09:42 PM UTCbensSeverity3 - Normal=>1 - Wish
      StatusNeed Info=>Wont Fix
      Open/ClosedOpen=>Closed
    Sun 23 Feb 2014 12:53:22 PM UTCbensStatusNone=>Need Info
    Wed 11 May 2011 07:34:23 PM UTCdohertyCarbon-Copy-=>Added -unavailable-

    Back to the top


    Powered by Savane 3.1-cleanup