If I open pcmanfm using the gksudo command this lets me manipulate files and directories safely. But what if I want to open and modify a text file in one of those directories? Will the gksudo protection carry over to any files I open in Leafpad or do I have to open those files using gksudo leafpad?
Asked
Active
Viewed 371 times
2
1 Answers
2
I was not sure myself so I experimented a little as follows:
- Opened pcmanfm using
gksudo pcmanfm - Navigated to
/etcand opened a text file from within pcmanfm using Right Click andOpen with Leafpad - Edited a text file and successfully saved it
So you do not have to run gksudo leafpad to edit text files not editable as an ordinary user while using pcmanfm opened with gksudo.
Note: Just be a little careful editing files with super user privileges as a mistake could easily cripple your system...
andrew.46
- 39,359