creating user account with root power
How can i create a user account that have power as of ROOT account?
I read that using root account is bad. But many times its necessary to have root account,so can it be possible to have user account that look like normal user account but will do all task as root? |
That would be just as bad as using the root account. For normal system use you shouldn't need the root account at all. If you do, using sudo or su to temporarily give you root is a lot safer then having a user that always has those privileges. You can even setup sudo to not require a password to elevate privileges, but at least you have to go the slightest bit out of your way, so you understand the power you have before you use it.
I see not using the root account as a protection against yourself. I have seen people doing things with chmod, rm, and the recursive flags far to many times as root without realizing the implications of what they did..... until everything got screwed up anyway. |
You should just switch to root when you need to. If you do it frequently, you can configure certain things, like access to removable drives, so that normal users can handle it. Or you can look into sudo and like commands. But you definitely don't want to be trying to have two roots. What it *looks* like is irrelevant. There's very little you need to do as a normal user that you can't.
|
I heard that root access is needed when you do socket programming. isn't it? Also i think in service startup/shutdown root access is needed. Thats why i ask to have another account.
|
just use sudo
|
Quote:
|
As trevelluk said, in general you don't need root access for sockets. You run i.e. a mail client or telnet and they don't require root powers.
The only time you need root powers is when you use raw sockets. But there is a way araound that (setuid). The ping command uses raw sockets but you don't have to be root to use it (at least, normally not) |
All times are GMT -5. The time now is 05:54 PM. |