LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 05-12-2002, 09:28 AM   #1
ranixlb
Member
 
Registered: Apr 2002
Location: middle east- Lebanon- sidon (or saida if u like) city
Distribution: Redhat 9.0 and knoppix
Posts: 35

Rep: Reputation: 15
Giving a user all root permissions


How can i give a user all the root permissions? BTW: i know what am doing.
 
Old 05-12-2002, 04:20 PM   #2
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
use username root or sudo

Last edited by DavidPhillips; 05-12-2002 at 04:21 PM.
 
Old 05-12-2002, 04:41 PM   #3
Sfin
Member
 
Registered: Apr 2002
Location: Michigan
Distribution: Slackware 8.0
Posts: 197

Rep: Reputation: 30
Best way might be to add him to the group root I think.
 
Old 05-12-2002, 04:53 PM   #4
tyler_durden
Member
 
Registered: May 2001
Posts: 125

Rep: Reputation: 15
just add him to the passwd file with uid =0 (i think)
 
Old 05-12-2002, 05:01 PM   #5
safrout
Member
 
Registered: Mar 2002
Location: egypt
Distribution: Gentoo
Posts: 457

Rep: Reputation: 30
Talking a simple solution

u can log in as a root user and stop looking for a way to let a user work as a root

 
Old 05-12-2002, 06:19 PM   #6
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 256Reputation: 256Reputation: 256
You can make the user with a UID of Zero, but that is unsafe and can totally mess up your system and I wouldn't do that. Why not setup sudo or su as root, or just use root.
 
Old 05-12-2002, 07:35 PM   #7
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,255

Rep: Reputation: 3918Reputation: 3918Reputation: 3918Reputation: 3918Reputation: 3918Reputation: 3918Reputation: 3918Reputation: 3918Reputation: 3918Reputation: 3918Reputation: 3918
sudo is the best way to go in a situation like this. You will not need to give out the root password and everything will be logged.

--jeremy
 
Old 05-15-2002, 10:23 AM   #8
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
Plus with sudo you can designate different groups to have different privileges, for example you can have a group ADMINS and assign to this group full superuser privileges, and you can have a group OPERATORS with limited privileges, for example you can restrict the group to use certain apps that require root privileges, so at the end it only comes to designating users to aforementioned groups,
man sudo
should give you a good view on all of this.
 
Old 05-15-2002, 12:49 PM   #9
sewer_monkey
Member
 
Registered: May 2002
Location: Toronto, ON, Canada
Distribution: Ubuntu, Debian, RedHat/CentOS
Posts: 624

Rep: Reputation: 31
Quote:
Originally posted by Sfin
Best way might be to add him to the group root I think.
Nope, that'll just give him filesystem priviliges, i.e. access to files owned by the root group for which group permissions are set accordingly.
 
Old 05-15-2002, 12:50 PM   #10
sewer_monkey
Member
 
Registered: May 2002
Location: Toronto, ON, Canada
Distribution: Ubuntu, Debian, RedHat/CentOS
Posts: 624

Rep: Reputation: 31
Quote:
Originally posted by tyler_durden
just add him to the passwd file with uid =0 (i think)
Yeah, I used that once to crack into a box at work for which the root pass was forgotten by the previous "sysadmin". A crude method, I advise against it in a production environment.
 
  


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
Giving root privileges to another user BlackJackal Mandriva 5 10-19-2005 01:03 PM
Giving a user root privliges JonyKyte Linux - Newbie 17 03-07-2004 09:43 PM
Giving a User Root Privileges lawrencegoodman Linux - Newbie 4 12-23-2003 04:41 PM
user permissions giving me annoyances hypermegachi Slackware 3 11-01-2003 02:48 PM
how would i go about giving a user permissions to run Xwindowsv skoal Linux - Newbie 2 12-07-2001 04:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

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