Skip to content

Latest commit

 

History

History
44 lines (28 loc) · 912 Bytes

README.md

File metadata and controls

44 lines (28 loc) · 912 Bytes

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.