LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 06-19-2006, 05:54 PM   #1
esc_5p1d0r
Newbie
 
Registered: Jun 2006
Posts: 20

Rep: Reputation: 0
Can I give a useraccount root powers?


Is there a way to give a user account root abilities?
 
Old 06-19-2006, 05:57 PM   #2
vimal
Red Hat India
 
Registered: Nov 2004
Location: Kerala/Pune,india
Distribution: RedHat, Fedora
Posts: 260

Rep: Reputation: 36
Hello esc_5p1d0r,

You can give a user root privileges by adding him to the sudoers list. The user can switch to the root user by executing the sudo command. Please reply if you have any doubts..

Thanks...
 
Old 06-19-2006, 05:58 PM   #3
esc_5p1d0r
Newbie
 
Registered: Jun 2006
Posts: 20

Original Poster
Rep: Reputation: 0
Um... how do I add them to the sudoers list?
 
Old 06-19-2006, 06:02 PM   #4
vimal
Red Hat India
 
Registered: Nov 2004
Location: Kerala/Pune,india
Distribution: RedHat, Fedora
Posts: 260

Rep: Reputation: 36
Hello esc_5p1d0r,

Edit the /etc/sudoers file where you can see the format. Just add the username there and save the file. After that try logging in as root by issuing the command 'sudo su -'. This will prompt for your password, after entering it you will be presented with the root prompt.

Thanks...
 
Old 06-20-2006, 07:32 PM   #5
mcmillan
Member
 
Registered: Jul 2005
Distribution: Arch
Posts: 489

Rep: Reputation: 30
It might be necessary to install a package for sudo first, I'm not certain all distros have it by default. Also I'd recommend using the command visudo rather than directly editing the file. Doing it this way will check to make sure you have the write syntax.
 
Old 06-20-2006, 07:42 PM   #6
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,673
Blog Entries: 4

Rep: Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945
One of the most serious mistakes that you can make in a Linux system is to "give someone other than root super powers." That's repeating the old Windows mistake, and it has exactly the same very-harmful consequences.

When you, or anyone at all, logs-in to your system, they should be a non-privileged, ordinary-Joe user. (The same is true in Windows, where they're called "limited users.")

You should designate one account, not normally used, in which to do all non-rootly system maintenance. And you should reserve root strictly for those tasks which demand it.

Here's why...

On any system of any type, you cannot prevent a program from somehow finding its way into your system and being run 'by you.' [All the money you spend on "anti-virus" programs, which try to do precisely that, is (imho) wasted.]

But you can prevent the program from succeeding!

"Nasty programs" require considerable privileges to be able to do their nasty things. On a "typical" Windows system that's easy, because every Joe-user has unlimited powers. But if those same nasty-programs are run by a user with no privileges at all, they don't succeed. They can't.

This is done by very careful design, and it's your best ally.
 
Old 06-21-2006, 01:31 AM   #7
scweej
LQ Newbie
 
Registered: May 2006
Distribution: Kanotix, Debian, openSUSE, Ubuntu
Posts: 11

Rep: Reputation: 0
i agree ...

think of having a root account as insurance against stuff ups...

u might have to type some extra chars but it will save u a lot of trouble.
 
  


Reply

Tags
root



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
Give root password for maintenance mijohnst Linux - General 5 12-29-2010 10:07 AM
How can I give myself root priv's as a user? Mr. Hill Linux - Newbie 9 06-12-2005 02:19 PM
How to know user name when u su to another useraccount amitguptainn Linux - General 4 04-14-2005 03:12 PM
give root privilleges to a user atlonyx Linux - General 9 08-02-2004 01:10 AM
Give root priviligies to an user Skululu Red Hat 7 03-06-2004 08:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration