Something you would always want: a Root privilege...
Not many ways to do that...
When u install Linux it asks u to create an user account so as to not accidentally modify any system files..
You take that advice quite seriously forgetting that you are the root user...Quite a paradox I think..
Every time you try to install anything you from the user account you created you wud be shown a message "Permission Denied"..
Quite common, coz the user don't have the privileges to do anything in the root directories or system files.
Then you log in as root using "su" and then the password..
A simple way to do away with that..
Quite easy if you are the root and the user as well
Login as the root, open a terminal and open file /etc/passwd
using vi/vim editor.
You will find an entry for the user u created
Like this
xyz:x:500:500:xyz:/home/xyz:/bin/csh
where xyz is the user name u created..
Just change "500"(both) to "0" in that line....
save and exit..(500 or 501 whatever number u find there change that to ZERO)
Congrats you are the Super User....
Technically saying u have just changed the UID(User Id) and GID(Group Id) to root's UID and GID.
That makes you root when u log in from next time..
Caution: With great power comes greater responsibilities..
So dont mess up with the system file you dont know much about..
Little Knowledge is really very dangerous....specially when handling Linux Files.....
No comments:
Post a Comment