From cc6f7005c209f8a5bdfe97ff19025ba1629ab997 Mon Sep 17 00:00:00 2001 From: Waldir Pimenta Date: Mon, 30 Dec 2019 17:30:30 +0000 Subject: [PATCH] su: reword example descriptions and add a new one (#3715) --- pages/common/su.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/pages/common/su.md b/pages/common/su.md index 0eb0258b3..8b8364399 100644 --- a/pages/common/su.md +++ b/pages/common/su.md @@ -2,14 +2,18 @@ > Switch shell to another user. -- Switch to superuser (admin password required): +- Switch to superuser (requires the root password): `su` -- Switch to user {{username}} (password required): +- Switch to a given user (requires the user's password): `su {{username}}` -- Switch to user {{username}} and simulate a full login shell: +- Switch to a given user and simulate a full login shell: `su - {{username}}` + +- Execute a command as another user: + +`su - {{username}} -c "{{command}}"`