summaryrefslogtreecommitdiffstats
path: root/sshuttle/options.py
diff options
context:
space:
mode:
Diffstat (limited to 'sshuttle/options.py')
-rw-r--r--sshuttle/options.py31
1 files changed, 31 insertions, 0 deletions
diff --git a/sshuttle/options.py b/sshuttle/options.py
index 62f3510..79c404b 100644
--- a/sshuttle/options.py
+++ b/sshuttle/options.py
@@ -322,6 +322,37 @@ parser.add_argument(
"""
)
parser.add_argument(
+ "--sudoers",
+ action="store_true",
+ help="""
+ Add sshuttle to the sudoers for this user
+ """
+)
+parser.add_argument(
+ "--sudoers-no-modify",
+ action="store_true",
+ help="""
+ Prints the sudoers config to STDOUT and DOES NOT modify anything.
+ """
+)
+parser.add_argument(
+ "--sudoers-user",
+ default="",
+ help="""
+ Set the user name or group with %%group_name for passwordless operation.
+ Default is the current user.set ALL for all users. Only works with
+ --sudoers or --sudoers-no-modify option.
+ """
+)
+parser.add_argument(
+ "--sudoers-filename",
+ default="sshuttle_auto",
+ help="""
+ Set the file name for the sudoers.d file to be added. Default is
+ "sshuttle_auto". Only works with --sudoers or --sudoers-no-modify option.
+ """
+)
+parser.add_argument(
"--no-sudo-pythonpath",
action="store_false",
dest="sudo_pythonpath",