SlideShare ist ein Scribd-Unternehmen logo
1 von 16
ROOT & SUDO
The root user in GNU/Linux is the user which has
administrative access to your system. Normal
users do not have this access for security
reasons. However, Ubuntu does not include the
root user. Instead, administrative access is
given to individual users, who may use the
"sudo" application to perform administrative
tasks. The first user account you created on
your system during installation will, by default,
have access to sudo. You can restrict and
enable sudo access to users with the Users
When you run an application that requires root
privileges, sudo will ask you to input your
normal user password. This ensures that rogue
applications cannot damage your system, and
serves as a reminder that you are about to
perform administrative actions which require
you to be careful!
To use sudo when using the command line,
simply type "sudo" before the command you
wish to run. Sudo will then prompt you for your
password.
Sudo will remember your password for a set
amount of time. This feature was designed to
To change the password via terminal

$sudo passwd root

Enter the new password and Retype the
password to confirm.
To disable password

If you don't want password to authenticate while
application installation, login......

$sudo passwd -I root
While you are working as user, you need to
access the root, but you dono the root
password, just type

$sudo -i

Enter your user password and start work as
root.
Root Passwd Reset

You forget the root password, you need to login
as root.

To do this you have to reset or change the
password.

First, you have to reboot into recovery mode.

If you have a single-boot (Ubuntu is the only
operating system on your computer), to get the
boot menu to show, you have to hold down the
Shift key during bootup.

If you have a dual-boot (Ubuntu is installed next
to Windows, another Linux operating system, or
Mac OS X; and you choose at boot time which
operating system to boot into), the boot menu
should appear without the need to hold down
the Shift key.

For older versions of Ubuntu (9.04 and 8.04),
you can press the Escape key during bootup in

From the boot menu, select recovery mode,
which is usually the second boot option.

After you select recovery mode and wait for all
the boot-up processes to finish, you'll be
presented with a few options. In this case, you
want the Drop to root shell prompt option so
press the Down arrow to get to that option, and
then press Enter to select it.

The root account is the ultimate administrator
and can do anything to the Ubuntu installation
(including erase it), so please be careful with
what commands you enter in the root terminal.

Once you're at the root shell prompt, if you
have forgotten your username as well, type

$ls /home

That's a lowercase L, by the way, not a capital i,
in ls. You should then see a list of the users on
your Ubuntu installation. In this case, I'm going
to reset ckuser18 password.
To reset the password, type

$passwd username
where username is the username you want to
reset. In this case, I want to reset ckuser's
password, so I type

$passwd ckuser18
You'll then be prompted for a new password.
When you type the password you will get no
visual response acknowledging your typing.
Your password is still being accepted. Just type
the password and hit Enter when you're done.
You'll be prompted to retype the password. Do
After you get back to the recovery
menu, select resume normal boot
Now you can login as root because you know the
password.
HACK-ROOT ACCESS

1. You need to reboot your Ubuntu

2. When you reach GRUB page, press ‘e’
(without quotes), this command is to edit grub

3. Edit one of your boot command

4. Replace “ro qiuet splash” by “rw
init=/bin/bash” at the end.

5. Press “ctrl x” or “b”, this will make your
Ubuntu to boot with passwordless root shell,ie
you will be logined as root without password.

6. Then just change your password with

Weitere ähnliche Inhalte

Ähnlich wie Ubuntu root access

Sudo & su commands
Sudo & su commandsSudo & su commands
Sudo & su commandsMeenu Chopra
 
Day 2 ubuntu boot camp
Day 2 ubuntu boot campDay 2 ubuntu boot camp
Day 2 ubuntu boot campDarlene Parker
 
Day 5 ubuntu boot camp
Day 5 ubuntu boot campDay 5 ubuntu boot camp
Day 5 ubuntu boot campDarlene Parker
 
Day 6 ubuntu boot camp
Day 6 ubuntu boot campDay 6 ubuntu boot camp
Day 6 ubuntu boot campDarlene Parker
 
Ubuntu Practice and Configuration
Ubuntu Practice and ConfigurationUbuntu Practice and Configuration
Ubuntu Practice and ConfigurationManoj Sahu
 
Basic Guide to make your Linux server ready
Basic Guide to make your Linux server readyBasic Guide to make your Linux server ready
Basic Guide to make your Linux server readyArslan Malik Aareez
 
www3.ntu.edu.sg-How to install Ubuntu and Get Started.pdf
www3.ntu.edu.sg-How to install Ubuntu and Get Started.pdfwww3.ntu.edu.sg-How to install Ubuntu and Get Started.pdf
www3.ntu.edu.sg-How to install Ubuntu and Get Started.pdfssuseraa78bd1
 
Create a sudo user on rhel
Create a sudo user on rhelCreate a sudo user on rhel
Create a sudo user on rhelLinuxConcept
 
Ubuntu alternate ubuntu installation
Ubuntu alternate ubuntu installationUbuntu alternate ubuntu installation
Ubuntu alternate ubuntu installationarunkumar sadhasivam
 
Linux system admin useful commands
Linux system admin useful commandsLinux system admin useful commands
Linux system admin useful commandsali98091
 
CMCC_CPT201_Linux_Chapter1.pptx
CMCC_CPT201_Linux_Chapter1.pptxCMCC_CPT201_Linux_Chapter1.pptx
CMCC_CPT201_Linux_Chapter1.pptxewcmfgewcmfg
 
Configuring the boot menu in ubuntu
Configuring the boot menu in ubuntuConfiguring the boot menu in ubuntu
Configuring the boot menu in ubuntuCOMSATS
 
Rhel 7 root password reset
Rhel 7 root password resetRhel 7 root password reset
Rhel 7 root password resetMd Shihab
 
Installation of DSpace, Koha and other software using Liblivecd
Installation of DSpace, Koha and other software using LiblivecdInstallation of DSpace, Koha and other software using Liblivecd
Installation of DSpace, Koha and other software using LiblivecdRupesh Kumar
 

Ähnlich wie Ubuntu root access (20)

Sudo & su commands
Sudo & su commandsSudo & su commands
Sudo & su commands
 
Day 2 ubuntu boot camp
Day 2 ubuntu boot campDay 2 ubuntu boot camp
Day 2 ubuntu boot camp
 
Day 5 ubuntu boot camp
Day 5 ubuntu boot campDay 5 ubuntu boot camp
Day 5 ubuntu boot camp
 
Day 6 ubuntu boot camp
Day 6 ubuntu boot campDay 6 ubuntu boot camp
Day 6 ubuntu boot camp
 
Ubuntu Practice and Configuration
Ubuntu Practice and ConfigurationUbuntu Practice and Configuration
Ubuntu Practice and Configuration
 
Basic Guide to make your Linux server ready
Basic Guide to make your Linux server readyBasic Guide to make your Linux server ready
Basic Guide to make your Linux server ready
 
www3.ntu.edu.sg-How to install Ubuntu and Get Started.pdf
www3.ntu.edu.sg-How to install Ubuntu and Get Started.pdfwww3.ntu.edu.sg-How to install Ubuntu and Get Started.pdf
www3.ntu.edu.sg-How to install Ubuntu and Get Started.pdf
 
Create a sudo user on rhel
Create a sudo user on rhelCreate a sudo user on rhel
Create a sudo user on rhel
 
Ubuntu alternate ubuntu installation
Ubuntu alternate ubuntu installationUbuntu alternate ubuntu installation
Ubuntu alternate ubuntu installation
 
Linux system admin useful commands
Linux system admin useful commandsLinux system admin useful commands
Linux system admin useful commands
 
Dspace Installation Manual in Ubuntu 14.04 Alongwith Windows
Dspace Installation Manual in Ubuntu 14.04 Alongwith WindowsDspace Installation Manual in Ubuntu 14.04 Alongwith Windows
Dspace Installation Manual in Ubuntu 14.04 Alongwith Windows
 
CMCC_CPT201_Linux_Chapter1.pptx
CMCC_CPT201_Linux_Chapter1.pptxCMCC_CPT201_Linux_Chapter1.pptx
CMCC_CPT201_Linux_Chapter1.pptx
 
Configuring the boot menu in ubuntu
Configuring the boot menu in ubuntuConfiguring the boot menu in ubuntu
Configuring the boot menu in ubuntu
 
Rhel 7 root password reset
Rhel 7 root password resetRhel 7 root password reset
Rhel 7 root password reset
 
Sudo
SudoSudo
Sudo
 
step by step to install the ubuntu
step by step to install the ubuntustep by step to install the ubuntu
step by step to install the ubuntu
 
Mush ubuntu
Mush ubuntu  Mush ubuntu
Mush ubuntu
 
Mush ubuntu
Mush ubuntu  Mush ubuntu
Mush ubuntu
 
Mush Ubuntu
Mush UbuntuMush Ubuntu
Mush Ubuntu
 
Installation of DSpace, Koha and other software using Liblivecd
Installation of DSpace, Koha and other software using LiblivecdInstallation of DSpace, Koha and other software using Liblivecd
Installation of DSpace, Koha and other software using Liblivecd
 

Mehr von MohanKumar Palanichamy (7)

Linux workshop
Linux workshopLinux workshop
Linux workshop
 
Ccie security
Ccie securityCcie security
Ccie security
 
Thunderbird cheat-sheet
Thunderbird cheat-sheetThunderbird cheat-sheet
Thunderbird cheat-sheet
 
Muo network-manual
Muo network-manualMuo network-manual
Muo network-manual
 
Linux com
Linux comLinux com
Linux com
 
Linux basic commands
Linux basic commandsLinux basic commands
Linux basic commands
 
Mohanccna
MohanccnaMohanccna
Mohanccna
 

Kürzlich hochgeladen

08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 

Kürzlich hochgeladen (20)

08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 

Ubuntu root access

  • 1.
  • 2. ROOT & SUDO The root user in GNU/Linux is the user which has administrative access to your system. Normal users do not have this access for security reasons. However, Ubuntu does not include the root user. Instead, administrative access is given to individual users, who may use the "sudo" application to perform administrative tasks. The first user account you created on your system during installation will, by default, have access to sudo. You can restrict and enable sudo access to users with the Users
  • 3. When you run an application that requires root privileges, sudo will ask you to input your normal user password. This ensures that rogue applications cannot damage your system, and serves as a reminder that you are about to perform administrative actions which require you to be careful! To use sudo when using the command line, simply type "sudo" before the command you wish to run. Sudo will then prompt you for your password. Sudo will remember your password for a set amount of time. This feature was designed to
  • 4. To change the password via terminal  $sudo passwd root  Enter the new password and Retype the password to confirm. To disable password  If you don't want password to authenticate while application installation, login......  $sudo passwd -I root
  • 5. While you are working as user, you need to access the root, but you dono the root password, just type  $sudo -i  Enter your user password and start work as root.
  • 6. Root Passwd Reset  You forget the root password, you need to login as root.  To do this you have to reset or change the password.
  • 7.  First, you have to reboot into recovery mode.  If you have a single-boot (Ubuntu is the only operating system on your computer), to get the boot menu to show, you have to hold down the Shift key during bootup.  If you have a dual-boot (Ubuntu is installed next to Windows, another Linux operating system, or Mac OS X; and you choose at boot time which operating system to boot into), the boot menu should appear without the need to hold down the Shift key.  For older versions of Ubuntu (9.04 and 8.04), you can press the Escape key during bootup in
  • 8.  From the boot menu, select recovery mode, which is usually the second boot option.
  • 9.
  • 10.  After you select recovery mode and wait for all the boot-up processes to finish, you'll be presented with a few options. In this case, you want the Drop to root shell prompt option so press the Down arrow to get to that option, and then press Enter to select it.
  • 11.
  • 12.  The root account is the ultimate administrator and can do anything to the Ubuntu installation (including erase it), so please be careful with what commands you enter in the root terminal.  Once you're at the root shell prompt, if you have forgotten your username as well, type  $ls /home  That's a lowercase L, by the way, not a capital i, in ls. You should then see a list of the users on your Ubuntu installation. In this case, I'm going to reset ckuser18 password.
  • 13. To reset the password, type  $passwd username where username is the username you want to reset. In this case, I want to reset ckuser's password, so I type  $passwd ckuser18 You'll then be prompted for a new password. When you type the password you will get no visual response acknowledging your typing. Your password is still being accepted. Just type the password and hit Enter when you're done. You'll be prompted to retype the password. Do
  • 14. After you get back to the recovery menu, select resume normal boot
  • 15. Now you can login as root because you know the password.
  • 16. HACK-ROOT ACCESS  1. You need to reboot your Ubuntu  2. When you reach GRUB page, press ‘e’ (without quotes), this command is to edit grub  3. Edit one of your boot command  4. Replace “ro qiuet splash” by “rw init=/bin/bash” at the end.  5. Press “ctrl x” or “b”, this will make your Ubuntu to boot with passwordless root shell,ie you will be logined as root without password.  6. Then just change your password with