• We did not send an email asking for donations - please read this post.

How to i become the superuser ?



arochester

Moderator
Staff member
Gold Supporter
Joined
Apr 25, 2017
Messages
1,676
Reaction score
1,339
Credits
3,374
What distro are you using?
 

roshanya

New Member
Joined
May 19, 2022
Messages
2
Reaction score
2
Credits
43
Solution:
In linux operating system ,root is the conventional name of the user who has all the rights or permissions in all mode
The root user can make many things to the file such as
Changing the ownership of the file and root is the only
User account with permisions to modify the root directory.
Super user is also known as root user.
Linux login in Operating system can be done in two commands
•su command
•sudo command
You can see your secondary group membership by either running groups or id command
•$ groups
•$ id
Then type sudo -i command to become the root Then Linux will ask for password then if we enter the password We will gain access to root shell
1652972251933.png

After becoming the root user we are now able change the owner or group of the file

Let us assume that If someone is working on particular project and he has the complete access and think if after completing the project the user needs to give the project to someone other User then the user need to change the owner to whom he his handing over the project and this can be done only by the root user using chown command ,chown newowner rootshare command
 

CrazedNerd

Well-Known Member
Joined
Mar 31, 2021
Messages
758
Reaction score
303
Credits
6,472
sudo gives you privileges (given you remember your password and your system works properly) to do whatever you want. To BECOME the superuser, you can* create a password for su by pulling up a terminal and typing "sudo passwd root". After hitting enter, it will ask you for your password, then ask you to make a password for su. After that, you can enter "su" on the terminal...and your password...then you can do whatever you want, even destroy your system.

You can also wear a cape while using your computer.

*i said "must" but sudo -i also works, my method will save you a little bit of typing though.
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!

Linux.org Hosting Donations
Consider making a donation

Members online


Top