Six Years of Service
Posts: 2,973
Threads: 246
Points: 284NSP
What ways to access root user in Linux? 09-26-2018, 09:19 PM
#1
What ways to access root user in Linux?
I know one way is su or sudo command.
My IT skills that I know perfect is SQL, HTML ,css ,wordpress, PHP.
coding skills that I know is Java, JavaScript and C#
•
Six Years of Service
Posts: 138
Threads: 9
Points: 164NSP
RE: What ways to access root user in Linux? 10-01-2018, 03:38 AM
#3
Broheim, if you can su or sudo, you can most likely "sudo -i" which will cause your terminal to run with root privileges as long as it is open without ever typing sudo again.
Do not always run as root. It's dangerous. If someone manages to get one command to your terminal while running as root, they can run whatever the hell type of nefarious thing they want.
Good luck, bub.
•
Twelve Years of Service
Posts: 72,622
Threads: 307
Points: 50,359NSP
RE: What ways to access root user in Linux? 10-01-2018, 04:22 AM
#4
The "su -" command also works.
Are you actually experiencing Issues, or Is It for Informative purposes?
Six Years of Service
Posts: 168
Threads: 8
Points: 31NSP
RE: What ways to access root user in Linux? 10-01-2018, 11:49 AM
#5
To change your password, use: "sudo passwd root"
As mothered said, use "su -" Make sure to use a hyphen as it emulates you being actually logged into root, not controlling root.
•
Six Years of Service
Posts: 2,973
Threads: 246
Points: 284NSP
RE: What ways to access root user in Linux? 01-23-2019, 09:48 AM
#6
(10-01-2018, 11:49 AM)vex. Wrote: To change your password, use: "sudo passwd root"
As mothered said, use "su -" Make sure to use a hyphen as it emulates you being actually logged into root, not controlling root.
thank you vex
My IT skills that I know perfect is SQL, HTML ,css ,wordpress, PHP.
coding skills that I know is Java, JavaScript and C#
•
Six Years of Service
Posts: 2,973
Threads: 246
Points: 284NSP
RE: What ways to access root user in Linux? 02-19-2019, 11:42 AM
#7
(10-01-2018, 04:22 AM)mothered Wrote: The "su -" command also works.
Are you actually experiencing Issues, or Is It for Informative purposes?
my purpose is going inside the root dir or log in as the root account.
My IT skills that I know perfect is SQL, HTML ,css ,wordpress, PHP.
coding skills that I know is Java, JavaScript and C#
•