[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: What does the minus sign - do?... in the command sudo su -
From: |
Floyd L. Davidson |
Subject: |
Re: What does the minus sign - do?... in the command sudo su - |
Date: |
Wed, 25 Sep 2013 04:52:27 -0800 |
User-agent: |
gnus 5.10.6/XEmacs 21.4.15/Linux 2.6.19 |
Don Saklad <dsaklad@gnu.org> wrote:
>What does the minus sign - do?... in the command
>
> sudo su -
>
>.
It should cause you to read the man page for su, where it is explained
as the equivalent of -l or -login. But you want to read the details
of exactly what that means...
In practice it's the way you select the environment you'll be in after
the su command. If you want to retain your own login environment, don't
use the -login option. If you want the environment the specified user
would normally get, use the -login option.
--
Floyd L. Davidson http://www.apaflo.com/floyd_davidson
Ukpeagvik (Barrow, Alaska) floyd@apaflo.com