chevron_left chevron_right
Login Register invert_colors photo_library
The Discord has been disabled - read about it here, check out our IRC here, and if you're upgraded check here.
Thread Rating:
  • 0 Vote(s) - 0 Average


filter_list What ways to access root user in Linux?
Author
Message
What ways to access root user in Linux? #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#

Reply

What ways to access root user in Linux? #2
I recommend you read online on Linux privilege escalation techniques.

So I am assuming you are generally asking all the possible ways. One very known technique is looking for binaries that may have a SUID bit for root. Anyone executing these and finding a way to execute commands, would execute as root. So `whoami` would give you root for output.

Many tools pass commands to the shell for execution. Nmap (long time ago) used to have an interactive mode, but because Nmap needs low level access, many admins would configure it with SUID bit, so that all users can scan with root access from it.

Sadly, because of its interactive mode low privileged users could run shell commands as root.

Read the below article for more details:

https://null-byte.wonderhowto.com/how-to...t-0173929/

Reply

RE: What ways to access root user in Linux? #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.

Reply

RE: What ways to access root user in Linux? #4
The "su -" command also works.

Are you actually experiencing Issues, or Is It for Informative purposes?
[Image: AD83g1A.png]

[+] 1 user Likes mothered's post
Reply

RE: What ways to access root user in Linux? #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.

Reply

RE: What ways to access root user in Linux? #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#

Reply

RE: What ways to access root user in Linux? #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#

Reply






Users browsing this thread: 1 Guest(s)