SlideShare une entreprise Scribd logo
1  sur  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

Contenu connexe

Similaire à 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
 

Similaire à 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
 

Plus 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
 

Dernier

Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demoHarshalMandlekar2
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesThousandEyes
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxLoriGlavin3
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxLoriGlavin3
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfLoriGlavin3
 
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Alkin Tezuysal
 
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...Scott Andery
 
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rick Flair
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality AssuranceInflectra
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxLoriGlavin3
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Strongerpanagenda
 
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentPim van der Noll
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxLoriGlavin3
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesAssure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesThousandEyes
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsRavi Sanghani
 

Dernier (20)

Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demo
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdf
 
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
 
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
 
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
 
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesAssure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and Insights
 

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