Difference between revisions of "Su"

From wikieduonline
Jump to navigation Jump to search
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{lowercase}}
 
{{lowercase}}
su -
+
<code>su -</code>
[[su --help]]
 
  
 +
<code>[[su --help]]</code>
  
 +
<code>su: must be [[suid]] to work properly</code>
  
su: must be [[suid]] to work properly
+
<code>-, -l, --login                  make the shell a login shell </code>
  
 +
<code>sudo -u root [[su -c]] ps</code>
  
  -, -l, --login                  make the shell a login shell
+
<code>[[su -s]]</code>
 
 
sudo -u root [[su -c]] ps
 
 
 
[[su -s]]
 
  
 
== Related terms ==
 
== Related terms ==
Line 20: Line 18:
 
* <code>[[sudoers]]</code>
 
* <code>[[sudoers]]</code>
 
* <code>[[sudo su -]]</code>
 
* <code>[[sudo su -]]</code>
 +
* <code>[[suaws]]</code>
  
 
== See also ==
 
== See also ==
 
* <code>[[ksu]]</code>
 
* <code>[[ksu]]</code>
 +
* {{su}}
 
* {{sudo}}
 
* {{sudo}}
  
  
 
[[Category:Linux]]
 
[[Category:Linux]]

Latest revision as of 10:05, 22 November 2023

su -

su --help

su: must be suid to work properly

-, -l, --login make the shell a login shell

sudo -u root su -c ps

su -s

Related terms[edit]

See also[edit]

Advertising: