LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   creating user account with root power (https://www.linuxquestions.org/questions/linux-newbie-8/creating-user-account-with-root-power-268818/)

linux_lover2005 12-21-2004 10:53 AM

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?

jtshaw 12-21-2004 11:01 AM

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.

slakmagik 12-21-2004 11:03 AM

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.

linux_lover2005 12-21-2004 11:20 AM

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.

hakker82 12-21-2004 11:47 AM

just use sudo

trevelluk 01-03-2007 07:31 AM

Quote:

I heard that root access is needed when you do socket programming. isn't it?
Just to clarify, you need root access to run servers on port numbers below 1024. Other than this, you certainly don't need root access for socket programming.

Wim Sturkenboom 01-04-2007 12:51 AM

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.