LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 03-05-2004, 02:22 PM   #1
Skululu
LQ Newbie
 
Registered: Mar 2004
Posts: 2

Rep: Reputation: 0
Question Give root priviligies to an user


How can I give a user root privileges? I don't want the user to type the command us to have them, What I want is that when the user log-in he would be able to do everything the root is able to do. Is any way to do so?

Thank you
 
Old 03-05-2004, 02:25 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Welcome to LQ.

Yes it is possible but it would significantly reduce the security of your system. Perhaps there is another way to resolve the issues you are having.
 
Old 03-05-2004, 02:28 PM   #3
Skululu
LQ Newbie
 
Registered: Mar 2004
Posts: 2

Original Poster
Rep: Reputation: 0
I'm just playing around with a server Red HAt 9.1, so I wanted to give root privilegies to my user. Do you know how to do it?
 
Old 03-05-2004, 03:52 PM   #4
cwaidelich
LQ Newbie
 
Registered: Sep 2003
Location: Colombia
Distribution: Ubuntu / Kubuntu
Posts: 27

Rep: Reputation: 15
i have the same question:

there is on folder (im specially sharing with windows) with mp3, work sheeds, etc, and i can only write and read on them as root.

where can i change that? im using Suse 8.2.

Chris
 
Old 03-06-2004, 02:14 AM   #5
plexus
LQ Newbie
 
Registered: Feb 2004
Location: Singapore
Distribution: Windows XP, RedHat 9
Posts: 16

Rep: Reputation: 0
Skululu: Here's how you can give root previleges to another user (be aware that this will compromise system security)

Code:
    vi /etc/passwd
Look for the username, change the first digit to 0

Example:
Code:
    testuser:x:501:501::/home/testuser:/bin/bash
Change to:
Code:
    testuser:x:0:501::/home/testuser:/bin/bash
Login as the user and type "whoami" to verify it has root previleges
 
Old 03-06-2004, 02:17 AM   #6
plexus
LQ Newbie
 
Registered: Feb 2004
Location: Singapore
Distribution: Windows XP, RedHat 9
Posts: 16

Rep: Reputation: 0
cwaidelich,

Try to chmod the folder. If you have a group with all the users in it, try "chmod 0775"
 
Old 03-06-2004, 08:04 AM   #7
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
You may also have to change the mount options for that partition too.
 
Old 03-06-2004, 08:11 AM   #8
fsbooks
Member
 
Registered: Jan 2002
Location: Missoula. Montana, USA
Distribution: Slackware (various)
Posts: 464

Rep: Reputation: 52
Maybe this is a stupid question, but If you want have root privileges, why don't you become root?

Otherwise, use something like sudo, which can be set up to run all or a subset of root commands as a user. Then at least you have to consciously be root.

Last edited by fsbooks; 03-06-2004 at 08:15 AM.
 
  


Reply



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
How can give ROOT permission to a NORMAL USER bipinkdas Linux - Software 2 06-23-2005 11:03 PM
How to give user always root privileges? SimeonV SUSE / openSUSE 18 06-23-2005 11:02 AM
How can I give myself root priv's as a user? Mr. Hill Linux - Newbie 9 06-12-2005 02:19 PM
Give Root Access To A Normal User waknauss Linux - Security 2 11-11-2004 09:00 AM
give root privilleges to a user atlonyx Linux - General 9 08-02-2004 01:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

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