Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
05-12-2002, 09:28 AM
|
#1
|
Member
Registered: Apr 2002
Location: middle east- Lebanon- sidon (or saida if u like) city
Distribution: Redhat 9.0 and knoppix
Posts: 35
Rep:
|
Giving a user all root permissions
How can i give a user all the root permissions? BTW: i know what am doing.
|
|
|
05-12-2002, 04:20 PM
|
#2
|
LQ Guru
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163
Rep:
|
use username root or sudo
Last edited by DavidPhillips; 05-12-2002 at 04:21 PM.
|
|
|
05-12-2002, 04:41 PM
|
#3
|
Member
Registered: Apr 2002
Location: Michigan
Distribution: Slackware 8.0
Posts: 197
Rep:
|
Best way might be to add him to the group root I think.
|
|
|
05-12-2002, 04:53 PM
|
#4
|
Member
Registered: May 2001
Posts: 125
Rep:
|
just add him to the passwd file with uid =0 (i think)
|
|
|
05-12-2002, 05:01 PM
|
#5
|
Member
Registered: Mar 2002
Location: egypt
Distribution: Gentoo
Posts: 457
Rep:
|
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

|
|
|
05-12-2002, 06:19 PM
|
#6
|
LQ Guru
Registered: Jan 2001
Posts: 24,149
|
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.
|
|
|
05-12-2002, 07:35 PM
|
#7
|
root 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,630
|
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
|
|
|
05-15-2002, 10:23 AM
|
#8
|
LQ Addict
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704
Rep:
|
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.
|
|
|
05-15-2002, 12:49 PM
|
#9
|
Member
Registered: May 2002
Location: Toronto, ON, Canada
Distribution: Ubuntu, Debian, RedHat/CentOS
Posts: 624
Rep:
|
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.
|
|
|
05-15-2002, 12:50 PM
|
#10
|
Member
Registered: May 2002
Location: Toronto, ON, Canada
Distribution: Ubuntu, Debian, RedHat/CentOS
Posts: 624
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 11:48 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|