Add "sudo" option to `link` plugin
See original GitHub issueDotbot is used by multiple users — including me — to symlink files in folders that need root
privileges.
It would be nice to add an option (just like path
or create
) to the link
plugin to describe if the target needs to be symlinked with root
privileges. We could name this option sudo
or root
.
For example:
- link:
/etc/some/restricted/path/whatever.conf: whatever.conf
create: true
sudo: true
~/.vimrc: vimrc
sudo: false
Running ./install
would create two symlinks:
/etc/some/restricted/path/whatever.conf
created asroot
~/.vimrc
created as regular current user
If you prefer to keep Dotbot simple, we could create a plugin that extends the link
plugin.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:13
- Comments:32 (12 by maintainers)
Top Results From Across the Web
Sudo Plugin API
The sudoedit_follow option can be used to restore the older behavior and allow sudoedit to open symbolic links. Only available starting with API...
Read more >30.4. Adding sudo Commands, Command Groups, and Rules
Under the Policy tab, click Sudo → Sudo Command Groups. · Click Add at the top of the list. · Fill out the...
Read more >How to Set Up and Manage Sudo Permissions - Liquid Web
Sudo is a Linux program meant to allow a user to use root privileges for a limited timeframe to users and log root...
Read more >Ubuntu Manpage: sudoers — default sudo security policy plugin
The sudoers policy plugin determines a user's sudo privileges. It is the default sudo policy plugin. The policy is driven by the /etc/sudoers...
Read more >Does Tenable provide a sudoers list for the commands ...
Plugin 102094 was specifically designed to allow users the ability to update the sudoers file for the scan service account with only the ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I know this is really outdated, but the new install scripts solve this problem by allowing you to add
-sudo
to the end of any configuration. i.e../install-standalone some-config other-config-sudo
. Only downside is that it requires you to have implemented the more advanced setup from the Tips and Tricks section of the wiki.I think the
install-sudo
script is an alright enough way to go. That allows things to stay separate if need be.See these files: install-sudo, install.sudo.conf.yaml, and install.conf.yaml