Forge Home

paranoid

sudo configuration to run programs as dummy user

8,756 downloads

8,601 latest version

1.3 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 0.2.1 (latest)
  • 0.2.0
released May 27th 2014
This version is compatible with:
  • Puppet 3.x
  • ,

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'myDistro-paranoid', '0.2.1'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add myDistro-paranoid
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install myDistro-paranoid --version 0.2.1

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

myDistro/paranoid — version 0.2.1 May 27th 2014

This is the paranoid module. It's basically the blog-post of calium.org : running firefox as another user using sudo.

It configures sudo so you can run the commons like firefox, chromium, google-chrome or skype as another user. You can use the class paranoid to set up the sudoers file, but you don't have to. If you don't use the paranoid class, you have to make sudo load the files in /etc/sudoers.d/ folder.

Usage

To run firefox and thunderbird as the user browser you can do the same thing.

/* 
  not really necessary 
  creates only good sudoers file
*/
class { 'paranoid': } 

/*
  create a sudo file to run firefox and thunderbird
  as user browser
*/
paranoid::user { 'browsing': 
    master   => 'my_name' ,
    puppet   => 'browser',
    binaries => ['/usr/bin/firefox',
                 '/usr/bin/thunderbird'],
}

Make sure you run a xhost for programs (like firefox) that need X. For example put in you ~/.xsession

xhost +

Now you can run firefox as user browser with the command

sudo -u browser -H /usr/bin/firefox

Or

sudo -u browser -H firefox

Support