Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.