SlideShare uma empresa Scribd logo
1 de 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

Mais conteúdo relacionado

Semelhante a 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
 

Semelhante a 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
 

Mais de 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
 

Último

Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamUiPathCommunity
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesrafiqahmad00786416
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxRustici Software
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsNanddeep Nachan
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...Zilliz
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusZilliz
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businesspanagenda
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Jeffrey Haguewood
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontologyjohnbeverley2021
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelDeepika Singh
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfOrbitshub
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistandanishmna97
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Victor Rentea
 

Último (20)

Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 

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