From 2a68e1aab59e8c46bde8ea56571b25597005f4fd Mon Sep 17 00:00:00 2001 From: Joshua Levy Date: Fri, 3 Jul 2015 00:59:32 -0700 Subject: [PATCH] Add sudo and su. Fixes #150. --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index a5d9b89..db5b175 100644 --- a/README.md +++ b/README.md @@ -151,6 +151,8 @@ Notes: - For a simple web server for all files in the current directory (and subdirs), available to anyone on your network, use: `python -m SimpleHTTPServer 7777` (for port 7777 and Python 2) and `python -m http.server 7777` (for port 7777 and Python 3). +- For running a command with privileges, use `sudo` (for root) or `sudo -u` (for another user). Use `su` or `sudo bash` to actually run a shell as that user. Use `su -` to simulate a fresh login as root or another user. + ## Processing files and data