Project

sudow

0.0
No commit activity in last 3 years
No release in over 3 years
sudow - sudo wrapper to avoid secure_path.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 2.1
~> 13.0.1
 Project Readme

sudow

sudow - sudo wrapper to avoid secure_path.

This command bypass the security mechanism called secure_path.
You need to know the risk before use.

Installation

$ gem install sudow
(you may need to run as root or through sudo.)

Usage

$ sudow [-E] command args...

-E  preserve existing environment variables


$ which gem
/usr/local/ruby2.5.1/bin/gem

$ sudo gem install ...
sudo: gem: command not found

$ sudow gem install ...
sudo /usr/local/ruby2.5.1/bin/gem install ...
Fetching: ...

-E option
$ export http_proxy=http://proxy.example.com:8080/
$ sudow -E gem install ...
sudo -E /usr/local/ruby2.5.1/bin/gem install ...
Fetching: ...

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/s3fxn/sudow.

License

The gem is available as open source under the terms of the MIT License.