Networking Forums

Networking Forums > Computer Networking > Linux Networking > best way to make regular user superuser

Reply
Thread Tools Display Modes

best way to make regular user superuser

 
 
deko
Guest
Posts: n/a

 
      07-10-2006, 09:00 PM
What is the best way to clone root?

if the account is 'rclone':

1) add rclone to groups adm and root
2) edit /etc/sudoers and add this line:
rclone All=(ALL)ALL

 
Reply With Quote
 
 
 
 
David Efflandt
Guest
Posts: n/a

 
      07-11-2006, 12:07 AM
On Mon, 10 Jul 2006 14:00:09 -0700, deko <(E-Mail Removed)> wrote:
> What is the best way to clone root?
>
> if the account is 'rclone':
>
> 1) add rclone to groups adm and root
> 2) edit /etc/sudoers and add this line:
> rclone All=(ALL)ALL


Why do you want to clone root? For security reasons it is usually best
NOT to allow a user with root's powers to login directly. A normal user
can become root after they have logged in as themself (if they know root's
password) by doing "su -". Then at least a cracker would have to know 2
passwords to get root access.

Or if someone needs to remotely run root commands from a background or
cron script, ssh keys can be configured without a passphrase to only allow
"specific" commands for that key.
 
Reply With Quote
 
deko
Guest
Posts: n/a

 
      07-11-2006, 12:49 AM
>> What is the best way to clone root?
>>
>> if the account is 'rclone':
>>
>> 1) add rclone to groups adm and root
>> 2) edit /etc/sudoers and add this line:
>> rclone All=(ALL)ALL

>
> Why do you want to clone root? For security reasons it is usually best
> NOT to allow a user with root's powers to login directly. A normal user
> can become root after they have logged in as themself (if they know root's
> password) by doing "su -". Then at least a cracker would have to know 2
> passwords to get root access.
>
> Or if someone needs to remotely run root commands from a background or
> cron script, ssh keys can be configured without a passphrase to only allow
> "specific" commands for that key.


yawn...

the question was "how to clone root" not your opinion of doing so.

I am going to clone root, and I will find the best way to do it. And I will
kill anyone that trys to stop me.


 
Reply With Quote
 
left_coast
Guest
Posts: n/a

 
      07-11-2006, 02:08 AM
deko wrote:

>>> What is the best way to clone root?
>>>
>>> if the account is 'rclone':
>>>
>>> 1) add rclone to groups adm and root
>>> 2) edit /etc/sudoers and add this line:
>>> rclone All=(ALL)ALL

>>
>> Why do you want to clone root? For security reasons it is usually best
>> NOT to allow a user with root's powers to login directly. A normal user
>> can become root after they have logged in as themself (if they know
>> root's
>> password) by doing "su -". Then at least a cracker would have to know 2
>> passwords to get root access.
>>
>> Or if someone needs to remotely run root commands from a background or
>> cron script, ssh keys can be configured without a passphrase to only
>> allow "specific" commands for that key.

>
> yawn...
>
> the question was "how to clone root" not your opinion of doing so.
>
> I am going to clone root, and I will find the best way to do it. And I
> will kill anyone that trys to stop me.



Then you won't get much help and you will killfile those that know the most.
Bad security on YOUR system can affect EVERONE on the net. If someone gets
root on your system, they can use your system to attack or spam everyone
else. It is NOT just his opinion, it is in the best interest of EVERYONE
that you take security seriously.

--

Dan C. Gets caught apparently Plagiarizing:
Message ID: <3ab7l3-(E-Mail Removed)>
Yeah, this is the type critical of me!
 
Reply With Quote
 
Unruh
Guest
Posts: n/a

 
      07-11-2006, 02:08 AM
"deko" <(E-Mail Removed)> writes:

>>> What is the best way to clone root?
>>>
>>> if the account is 'rclone':
>>>
>>> 1) add rclone to groups adm and root
>>> 2) edit /etc/sudoers and add this line:
>>> rclone All=(ALL)ALL

>>
>> Why do you want to clone root? For security reasons it is usually best
>> NOT to allow a user with root's powers to login directly. A normal user
>> can become root after they have logged in as themself (if they know root's
>> password) by doing "su -". Then at least a cracker would have to know 2
>> passwords to get root access.
>>
>> Or if someone needs to remotely run root commands from a background or
>> cron script, ssh keys can be configured without a passphrase to only allow
>> "specific" commands for that key.


>yawn...


>the question was "how to clone root" not your opinion of doing so.


>I am going to clone root, and I will find the best way to do it. And I will
>kill anyone that trys to stop me.


Go ahead.

But why not just do
su
And if you have the user in the wheel group, and place
auth sufficient pam_succeed_if.so use_uid user ingroup wheel
into /etc/pam.d/su
you will not even have to use a password for that user.




 
Reply With Quote
 
Keith Keller
Guest
Posts: n/a

 
      07-11-2006, 04:30 AM
On 2006-07-11, deko <(E-Mail Removed)> wrote:
> the question was "how to clone root" not your opinion of doing so.
>
> I am going to clone root, and I will find the best way to do it. And I will
> kill anyone that trys to stop me.


Well, between you killing them, and nobody wishing to answer,
it seems like you will find the best way to do without any help.

--keith

--
kkeller-(E-Mail Removed)
(try just my userid to email me)
AOLSFAQ=http://wombat.san-francisco.ca.us/cgi-bin/fom
see X- headers for PGP signature information

 
Reply With Quote
 
deko
Guest
Posts: n/a

 
      07-11-2006, 04:47 AM

"Unruh" <unruh-(E-Mail Removed)> wrote in message
news:e8v16h$6ih$(E-Mail Removed)...
> "deko" <(E-Mail Removed)> writes:
>
>>>> What is the best way to clone root?
>>>>
>>>> if the account is 'rclone':
>>>>
>>>> 1) add rclone to groups adm and root
>>>> 2) edit /etc/sudoers and add this line:
>>>> rclone All=(ALL)ALL
>>>
>>> Why do you want to clone root? For security reasons it is usually best
>>> NOT to allow a user with root's powers to login directly. A normal user
>>> can become root after they have logged in as themself (if they know root's
>>> password) by doing "su -". Then at least a cracker would have to know 2
>>> passwords to get root access.
>>>
>>> Or if someone needs to remotely run root commands from a background or
>>> cron script, ssh keys can be configured without a passphrase to only allow
>>> "specific" commands for that key.

>
>>yawn...

>
>>the question was "how to clone root" not your opinion of doing so.

>
>>I am going to clone root, and I will find the best way to do it. And I will
>>kill anyone that trys to stop me.

>
> Go ahead.
>
> But why not just do
> su
> And if you have the user in the wheel group, and place
> auth sufficient pam_succeed_if.so use_uid user ingroup wheel
> into /etc/pam.d/su
> you will not even have to use a password for that user.
>
>
>
>


 
Reply With Quote
 
deko
Guest
Posts: n/a

 
      07-11-2006, 04:50 AM
> And if you have the user in the wheel group, and place
> auth sufficient pam_succeed_if.so use_uid user ingroup wheel
> into /etc/pam.d/su
> you will not even have to use a password for that user.


Thanks for the tip. Not needing a password is nice. As soon as I nail down the
rest I'll post the complete solution.

 
Reply With Quote
 
left_coast
Guest
Posts: n/a

 
      07-11-2006, 04:51 AM
deko wrote:

>> And if you have the user in the wheel group, and place
>> auth sufficient pam_succeed_if.so use_uid user ingroup wheel
>> into /etc/pam.d/su
>> you will not even have to use a password for that user.

>
> Thanks for the tip. Not needing a password is nice. As soon as I nail
> down the rest I'll post the complete solution.


Please do the net a favor an not connect the machine to the network. We like
the fact that Linux is far more secure than the OS you are currently using,
please, if you want to use an insecure OS, stay with windows.

--

Dan C. Gets caught apparently Plagiarizing:
Message ID: <3ab7l3-(E-Mail Removed)>
Yeah, this is the type critical of me!
 
Reply With Quote
 
deko
Guest
Posts: n/a

 
      07-11-2006, 04:52 AM
> And if you have the user in the wheel group, and place
> auth sufficient pam_succeed_if.so use_uid user ingroup wheel
> into /etc/pam.d/su
> you will not even have to use a password for that user.


Thanks for the tip. Not needing a password is a nice touch. As soon as I have
a complete solution I'll post it.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Regular user unable to add remote printer Michel Timmerman Windows Networking 0 10-20-2008 01:58 PM
Regular Expression Dan N Linux Networking 6 04-14-2008 07:46 AM
How do I make make a network boot floppy? Boe Windows Networking 3 05-23-2006 11:37 PM
Regular ADSL crashes (through Plus.net) N Orr Broadband 5 10-08-2004 03:09 PM
VPN as well as regular connection Superlifer Wireless Internet 2 11-12-2003 03:35 PM



1 2 3 4 5 6 7 8 9 10 11