faqts : Computers : Operating Systems : Linux

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

18 of 29 people (62%) answered Yes
Recently 10 of 10 people (100%) answered Yes

Entry

Linux: Log on: User: Operation: Userid: Change: Root: How to change your userid to 'root'? [su]

Nov 20th, 2003 05:53
Knud van Eeden,


----------------------------------------------------------------------
--- Knud van Eeden --- 19 September 2003 - 03:13 pm ------------------

Linux: Log on: User: Operation: Userid: Change: Root: How to change 
your userid to 'root'? [su]

---

Steps: Overview:

 1. -Open a console

 2. -Type the command

      su

     1. If you are already the root, nothing is shown

     2. If you are not the root, it will show a prompt

         Password:

        1. Supply then your root password

     3. In Linux Red Hat v9 you might have to wait a while
        after this, as it does not immediately return
        to the command prompt

     4. -If the password for root is accepted,
         to check you current userid, type

          whoami

         1. This should then show 'root'

---
---

This has been tested successfully in:

-Linux Debian v3

-Linux Mandrake v9

-Linux Red Hat v9

-Linux Slackware v9

-Linux SuSE v9

-Linux TurboLinux v9

---
---

Internet: see also:

---

How to change the current userid?
http://www.faqts.com/knowledge_base/view.phtml/aid/24540/fid/107

---

How to create a new userid in Linux?
http://www.faqts.com/knowledge_base/view.phtml/aid/24526/fid/107

---

Linux: Logon: Userid: Operation: View: How to view the current userid? 
[whoami]
http://www.faqts.com/knowledge_base/view.phtml/aid/24538/fid/107

---

Operating system: Linux: Console: Start: How to start a console in 
Linux? [terminal]
http://www.faqts.com/knowledge_base/view.phtml/aid/26684/fid/107

----------------------------------------------------------------------