LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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

Reply
 
Search this Thread
Old 12-21-2004, 10:53 AM   #1
linux_lover2005
Member
 
Registered: Dec 2004
Posts: 44

Rep: Reputation: 15
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?
 
Old 12-21-2004, 11:01 AM   #2
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 66
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.
 
Old 12-21-2004, 11:03 AM   #3
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
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.
 
Old 12-21-2004, 11:20 AM   #4
linux_lover2005
Member
 
Registered: Dec 2004
Posts: 44

Original Poster
Rep: Reputation: 15
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.
 
Old 12-21-2004, 11:47 AM   #5
hakker82
Newbie
 
Registered: Dec 2004
Location: Heidelberg
Distribution: Gentoo
Posts: 1

Rep: Reputation: 0
just use sudo
 
Old 01-03-2007, 07:31 AM   #6
trevelluk
Member
 
Registered: Nov 2003
Location: Bristol, UK
Distribution: Debian Lenny, Gentoo (at work)
Posts: 388

Rep: Reputation: 32
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.
 
Old 01-04-2007, 12:51 AM   #7
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
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)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
creating user account similar to root neerajchaudhari Linux - Software 2 08-26-2005 09:23 AM
creating user account similar to root neerajchaudhari Linux - Newbie 4 08-26-2005 06:35 AM
samba - creating network user account dclark Linux - Networking 5 04-10-2004 09:13 PM
creating user account Robin01 Linux - Newbie 2 01-25-2004 01:17 PM
Creating A Root Account qcoder Linux - General 9 10-15-2003 03:05 AM


All times are GMT -5. The time now is 04:04 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration