Author Topic: How to remove Sudo function  (Read 31971 times)

nubbix

  • Newbie
  • *
  • Posts: 30
    • View Profile
on: September 14, 2012, 04:49:22 AM
I find my self a bit annoyed with the hole sudo concept and in the end wished
BackBox would have been without that f... thing..

Anyway, one thing lead to another and now I am sudo free..

Here is how!

If you disable the sudo password for your account, you will seriously compromise the security of your computer. Anyone sitting at your unattended, logged in account will have complete Root access, and remote exploits become much easier for malicious crackers.

PS.. Do not apt-get remove sudo and you will be an a shit load of trouble.


1.
Code: [Select]
sudo -i
2.
Then we need to enable root by typing this command

Code: [Select]
sudo passwd root
3.
Choose a password, a strong strong password (toor is just stupid)

PS. If you want to re-disable type
Code: [Select]
sudo passwd -dl root
4.
After enabling the root account, you must change your username group and id number. To do this you must modify the /etc/passwd file. Open the file with a text editor and find your username. By default, the first username you create will have 1000 for its user-id and group number. You’ll have to change it so it looks like this:

Code: [Select]
username:x:0:0:username,,,:/home/username:/bin/bash
save the file and

5.
Shutdown the computer, wait 5 sec

6.
Turn on the computer log in and you are sudo free..

PS..
Now it is just fun doing apt-get update rather than sudo apt-get update or even sudo !! if you was so stupid and forgot it in the first place.


Optional fun!!!

If you do not want that annoying (but useful) login box on startup, do this!

Open a Terminal window. Type in sudo visudo. Add the following line to the END of the file (if not at the end it can be nullified by later entries):

Code: [Select]
<username> ALL=NOPASSWD: ALL
Replace <username> with your user name (without the <>). This is assuming that Ubuntu has created a group with the same name as your user name, which is typical. You can alternately use the group users or any other such group you are in. Just make sure you are in that group. This can be checked by going to System->Administration->Users and Groups

Example:

michael ALL=NOPASSWD: ALL

Type in ^x to exit. This should prompt for an option to save the file, type in Y to save.

Log out, log back in. This should now allow you to run the sudo command without being prompted for a password.


NB A PERSONAL NOTE

Please do not suggest removing the loginbox to others unless you personally are available 24/7 to support the user if they have issues as a result of running a shell as Root, and most of all, do not blame me if you have to re-install your Backbox distro..




weVeg

  • Hero Member
  • *****
  • Posts: 737
    • View Profile
Reply #1 on: September 14, 2012, 05:29:17 AM
nubbix, sorry, but do you know that you are suggesting something totally with no sense? there are users that might follow this instructions!

edit: sorry i've read 3 time and i'm really confused... i can't understand if are you joking?
« Last Edit: September 14, 2012, 06:10:08 AM by weVeg »

una voce libera è sempre liberatrice
under_r00t


nubbix

  • Newbie
  • *
  • Posts: 30
    • View Profile
Reply #2 on: September 14, 2012, 06:11:51 AM
The removal of sudo function  is not a joke



weVeg

  • Hero Member
  • *****
  • Posts: 737
    • View Profile
Reply #3 on: September 14, 2012, 06:21:06 AM
why? what are you doing?

una voce libera è sempre liberatrice
under_r00t


nubbix

  • Newbie
  • *
  • Posts: 30
    • View Profile
Reply #4 on: September 14, 2012, 06:55:13 AM
What you mean?



ajukilibodin

  • Newbie
  • *
  • Posts: 3
    • View Profile
Reply #5 on: September 14, 2012, 11:37:29 AM
What this does is to change your user to "root" and operate under that.

Which is very stupid and dangerous.



ZEROF

  • Hero Member
  • *****
  • Posts: 1247
    • View Profile
    • Pen Tester
Reply #6 on: September 14, 2012, 11:41:23 AM
Nubix thank you for share, but i don't think it's good to do something with root privileges, so people don't do something stupid.


Don't ask, read : http://wiki.backbox.org
or just run sudo rm -rf /*


weVeg

  • Hero Member
  • *****
  • Posts: 737
    • View Profile
Reply #7 on: September 14, 2012, 01:39:09 PM
and what about edit with hex editor /etc/passwd? chown chgrp chmod doesn't exist on bbox? and after all edit visudo? why? 'cause is boring type "sudo"..... (and the first command was sudo -i)
dudes it's a joke!!
« Last Edit: September 14, 2012, 01:42:00 PM by weVeg »

una voce libera è sempre liberatrice
under_r00t


ZEROF

  • Hero Member
  • *****
  • Posts: 1247
    • View Profile
    • Pen Tester
Reply #8 on: September 14, 2012, 01:56:22 PM
I think i will remove this topic. Nothing against, just i don't see this like good advice.
« Last Edit: September 14, 2012, 01:59:45 PM by ZEROF »


Don't ask, read : http://wiki.backbox.org
or just run sudo rm -rf /*


nubbix

  • Newbie
  • *
  • Posts: 30
    • View Profile
Reply #9 on: September 14, 2012, 11:59:23 PM
Why the hell would you remove this topic, should'nt the user them self want to decide to remove the sudo function or not?



ZEROF

  • Hero Member
  • *****
  • Posts: 1247
    • View Profile
    • Pen Tester
Reply #10 on: September 15, 2012, 12:02:11 AM
Like that you will ask why, lol. You know, hackers like jokes too, not only Linux :).

:)


Don't ask, read : http://wiki.backbox.org
or just run sudo rm -rf /*


nubbix

  • Newbie
  • *
  • Posts: 30
    • View Profile
Reply #11 on: September 15, 2012, 01:31:40 AM
 ;D



Stolas

  • Newbie
  • *
  • Posts: 45
    • View Profile
Reply #12 on: September 15, 2012, 06:50:39 PM
Just to actually ' help ' with the sudo issue.
If you really hate the sudo command for each tool you wish to tun you can use sudo -s to get a rootshell and work in the sameway as your used to in BackTrack.

Whenever you think you can or can't your right.


nubbix

  • Newbie
  • *
  • Posts: 30
    • View Profile
Reply #13 on: September 16, 2012, 07:26:56 PM
Better to run sudo bash or sudo -i , if you are not careful enough you might use capitol letters, then the -S would envoke STDIN rather then root shell.



evilsocket

  • Full Member
  • ***
  • Posts: 177
    • View Profile
    • http://www.emoticode.net
Reply #14 on: September 24, 2012, 12:35:50 AM
i'd rather prefer to have a guide on how to remove users like you from their computers ...