LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 10-18-2005, 03:36 PM   #1
BlackJackal
Member
 
Registered: Jun 2004
Posts: 33

Rep: Reputation: 15
Giving root privileges to another user


How can you give root rights to another user on your system? The reason why I am doing this is because the computer in question is only used by me and is not networked.
 
Old 10-18-2005, 04:41 PM   #2
mebrelith
Member
 
Registered: Nov 2004
Location: Torreón, Coahuila, México
Distribution: Gentoo
Posts: 342
Blog Entries: 1

Rep: Reputation: 30
Well... I guess you might as well login as root.
 
Old 10-18-2005, 04:54 PM   #3
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,337

Rep: Reputation: 65
Well, then you can run as root all the time instead, without creating an user. However, running as root (or giving root privileges for another user) is not only a matter of being hacked via Internet or that your little brother will screw your system. This protection is good even to protect your computer from the most destructive being: the one sitting on the chair, right in front of the monitor and behind the keyboard (you, in the case it was not so clear, ghehe).

Think about the following situation:

- It's very common to move, create and edit files on your computer. When dealing with multiples files at the same time, it's also common to use meta-chars, such as "?" or "*". Suppose you want to delete a file (or a bunch of files starting with "file") and that you are at the root partition (/)

rm * file*

That's great. You've just ruined your system. That will delete all files (*) at the current folder, including those starting with file. Note that there's a "space" between the aster and the file. The correct should be rm *file*.

Also, some applications won't work well, or work at all if you are the root user or has the same rights as the root user. And you don't need to use root user for day to day work anyway. If you ever need to edit a file, use the command "su" and... well, that's it

Last edited by Mega Man X; 10-18-2005 at 05:01 PM.
 
Old 10-18-2005, 05:19 PM   #4
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 51
Have you looked into "sudo"? Once you set it up, it will allow you run commands as root from another account. By default it asks for that user's password, but you can also set it to not ask for passwords.
 
Old 10-19-2005, 12:35 PM   #5
registering
Member
 
Registered: Jun 2003
Location: Florida, USA
Distribution: Drake 10.1 Download
Posts: 182

Rep: Reputation: 30
I also recommend sudo, that way you can still track who did what, even while they had root permissions. If everyone just used root you wouldn't know who exactly did what.
http://www.courtesan.com/sudo/intro.html
 
Old 10-19-2005, 01:03 PM   #6
zak317
Member
 
Registered: Oct 2005
Location: 500$/monthly
Distribution: Mandriva 2006
Posts: 56

Rep: Reputation: 15
You can also be root for a short time typing the command "su -" (wo quotes) in a terminal. This will open a root session in the terminal. At this point, you will be able to do everything you want, even launching applications from the terminal (example: typing konqueror& will open a konqueror window with roots privileges...)

Cheers!
 
  


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
Root privileges for user ar1 Linux - Security 2 01-07-2005 09:33 PM
User with root privileges ShakyJake Linux - Newbie 2 06-18-2004 12:12 PM
Given regular user root privileges clo99dx Linux - Newbie 6 06-05-2004 04:27 PM
Giving a User Root Privileges lawrencegoodman Linux - Newbie 4 12-23-2003 04:41 PM
How can I create a user with the same privileges as the root ? Menestrel Linux - Newbie 3 11-19-2003 09:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 12:19 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