gedit does not elevate privileges while it's being launched

Bug #1300004 reported by Hopungo Semi-bit
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
gedit (Ubuntu)
Confirmed
Low
Unassigned

Bug Description

When I run gedit as normal user and try to change some file inside a system (for example, /etc/fstab) it doesn't allow me to write changes directly to that file. Instead, I can save file in my home directory, then move it on the right place with sudo mv. Other option is to copy it's content inside clipboard, relaunch gedit as root, then paste and save in appropriate place.

These paths are not convenient, because I have to do a lot of unnecessary work, searching for the file twice or typing it's location into terminal. Imagine a situation when file cannot be saved and gedit asks for root password and escalates privileges automatically so we can now write directly to that file. Kedit can do this. Can we embed such functionality inside gedit?

ProblemType: Bug
DistroRelease: Ubuntu 13.10
Package: gedit 3.8.3-0ubuntu3 [modified: usr/bin/gedit usr/lib/x86_64-linux-gnu/gedit/libgedit-private.so]
ProcVersionSignature: Ubuntu 3.11.0-18.32-generic 3.11.10.4
Uname: Linux 3.11.0-18-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.12.5-0ubuntu2.2
Architecture: amd64
Date: Mon Mar 31 10:28:06 2014
InstallationDate: Installed on 2013-09-10 (201 days ago)
InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Release amd64 (20130424)
MarkForUpload: True
SourcePackage: gedit
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Hopungo Semi-bit (hopungo) wrote :
Changed in gedit (Ubuntu):
importance: Undecided → Low
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gedit (Ubuntu):
status: New → Confirmed
Revision history for this message
iFlame (benjamin-fercher-bf) wrote :

I realize it's not a bug but a feature request, still I'd very much like it to be implemented.
It's easy to forget running gedit with sudo when trying to create new files in directories you don't have write rights to. I believe many users new to Ubuntu can relate. This feature would be a great step towards more usability. Another possibility would be a warning if you are editing a file you don't have write access to.

Revision history for this message
Floyd Taylor (fbtjr) wrote :

Old version of gedit that installed by default in Ubuntu 18.04.3 clean install just done today allows saving a file or "save as" to any directory. Snap version of "Text Editor" which purports to be gedit version 3.32.0 can't save a file anywhere I've tried. The error is that I don't have permission even though I do have permission to Read AND Write files in the directories I've tried.

Thinking that there may have been conflict, I uninstalled "old gedit" via sudo apt remove gedit, then uninstalled and reinstalled "New gedit" aka "Text Editor" from the Ubuntu Software app. No improvement.

FWIW if it's supposed to be gedit call it gedit. Look at VLC for an example of old version and new snap version both listed and installable in the Ubuntu Software store. Choose the version you want. It's a new VERSION with a new install source not a new App.

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.