chevron_left chevron_right
Login Register invert_colors photo_library
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.
Never forget your towel.
Student of all. Master of none.
Stay hydrated.
Fool Proof Wally World Encryption PIN RemovalFor DiSa Locked Tablets
Nextbooks, RCA Voyager series, and any other tablet running Android that has a big yellow lock on the packaging

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]

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






Users browsing this thread: 1 Guest(s)