question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add "sudo" option to `link` plugin

See original GitHub issue

Dotbot is used by multiple usersincluding 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 as root
  • ~/.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:open
  • Created 6 years ago
  • Reactions:13
  • Comments:32 (12 by maintainers)

github_iconTop GitHub Comments

3reactions
ecarlson94commented, Apr 19, 2021

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.

3reactions
FatBoyXPCcommented, Jul 15, 2020

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found