Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dotnetcarpenter/secure-connect
https://github.com/dotnetcarpenter/secure-connect
Last synced: 4 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/dotnetcarpenter/secure-connect
- Owner: dotnetCarpenter
- Created: 2016-11-12T12:37:07.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2016-12-21T16:57:16.000Z (about 8 years ago)
- Last Synced: 2024-10-19T19:45:52.404Z (2 months ago)
- Language: Shell
- Size: 15.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Secure Connect
==============Gnome only - you need to install `macchanger` and have setup a
VPN in [network-manager](https://wiki.gnome.org/Projects/NetworkManager/).```sh
sudo apt install -y macchanger
```## Configuration ##
Config is in `sc.config` (for now you have to create it in this directory).
```sh
# User name for a privileged account - see "get su"
user=username
# The name for VPN as registred in your NetworkManager
vpn=vnpname
```Notes
=====## get su ##
The trick is to set `su.sh` to run as super user without password, if I am the user.
This is done via `sudo visudo`.```
[User] ALL=([User]) NOPASSWD: SETENV: sha224:10abe95a5dd53216fc4bad61d54f18c5e989b52ea3df26edb7f1e475 [path]/su.sh
```
_example of sudoers line_Where [User] is the username written in `sc.config`.
Where [path] is the absolute path to `su.sh`.See:
+ http://toroid.org/sudoers-syntax
+ http://askubuntu.com/questions/246455/how-to-give-nopasswd-access-to-multiple-commands-via-sudoers#246592
+ ~~http://askubuntu.com/questions/155791/how-do-i-sudo-a-command-in-a-script-without-being-asked-for-a-password#155827~~ - is wrong## checksum su.sh ##
Current `sha224:10abe95a5dd53216fc4bad61d54f18c5e989b52ea3df26edb7f1e475` for `su.sh`