LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-24-2005, 08:56 AM   #16
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669

And even in the scenario where you "forget the root password" you could create one of your other users with the ability to do "sudo su -". This would require them to enter THEIR password but then put them at the root prompt at which point they could reset root's password. Obviously you woulldn't want to give this "su -" capability to a lot of people.

The deal is if you trust your "co-admin" enough to give him an suid 0 account then you might as well give him the root password itself because he'll have as much authority on the system (including the ability to change root's password) either way. Therefore adding a second suid 0 account just gives you another account to remember to make changes to if you're doing something to tighten down root itself - why add to your admin burden for no reason?

Its your system so you can do what you want. You're just getting the input of folks that have done this for years trying to explain why its a bad idea and let you know other ways to accomplish what you want without further compromising your security.
 
Old 10-25-2005, 07:42 AM   #17
RipClaw
LQ Newbie
 
Registered: Oct 2005
Distribution: PCQ Linux 2006
Posts: 19

Original Poster
Rep: Reputation: 0
Thanks guys for sharing the information you all had gathered
Thanks to blindcoder for teaching with an example.

I am happy
 
Old 10-25-2005, 09:03 AM   #18
xpucto
Member
 
Registered: Sep 2005
Location: Vienna, Austria
Distribution: Mint 13
Posts: 524

Rep: Reputation: 31
I have another similar question. I would like to set up cron-jobs for a a user who needs root-privileges. But I canīt use the root-user himself because the user have to have German as local-language, and the root has english. I cannot change the root-language because I would then get other problems.
I hope that Iīm clear. The problem is that with cron-jobs, I canīt use sudo. How do I get then a root user?

XpucTo
 
Old 10-25-2005, 09:08 AM   #19
blindcoder
ROCK Linux
 
Registered: Dec 2003
Location: Berlin, Germany
Distribution: Crystal ROCK
Posts: 108

Rep: Reputation: 15
Quote:
Originally posted by xpucto
The problem is that with cron-jobs, I canīt use sudo. How do I get then a root user?
Actually, you can.
Enter this into the visudo command:
Code:
blindcoder    ALL = NOPASSWD: /path/to/command
That way the user "blindcoder" may run the command "/path/to/command" using sudo without having to enter a password.

Greetings,
Benjamin
 
Old 10-25-2005, 09:08 AM   #20
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
xpucto - I'd suggest you start a new thread with your question. It is likely to get more exposure as it will show 0 replies.
 
  


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 to create user root accounts - SuSE 92 jdaniel Linux - Software 3 07-29-2005 11:35 AM
how to create root-like user/account? rsumbeling Linux - General 6 11-23-2004 12:38 PM
root files: create as root:root or root:wheel? pcass Linux - Security 1 02-07-2004 04:14 PM
How can i create another user than root? BroinK Slackware - Installation 3 01-22-2004 01:20 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 - Newbie

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