Skip to content

How to write to files that require super user rights? #4251

Answered by the-mikedavis
kirusfg asked this question in Q&A
Discussion options

You must be logged in to vote

sudoedit(8) is a good tool for this: instead of running sudo helix which runs helix with root permissions, it creates a temp file, runs helix as you, and then moves the temp file to the location of the real file when done editing.

Replies: 8 comments 12 replies

Comment options

You must be logged in to vote
7 replies
@David-Else
Comment options

@sudormrfbin
Comment options

@the-mikedavis
Comment options

@kirusfg
Comment options

@yonatan8070
Comment options

Answer selected by kirusfg
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@webdev23
Comment options

@zhexyez
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Hezhexi2002
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@yonatan8070
Comment options

@jobukkit
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet