How to remove Sudo function

Started by nubbix, September 14, 2012, 05:49:22 AM

Previous topic - Next topic

ostendali

Quote from: evilsocket on September 24, 2012, 01:35:50 AM
i'd rather prefer to have a guide on how to remove users like you from their computers ...
;D ;D ;D
evil, you are number 1! ;D ;D ;D

evilsocket

Quote from: ostendali on September 24, 2012, 12:23:23 PM
Quote from: evilsocket on September 24, 2012, 01:35:50 AM
i'd rather prefer to have a guide on how to remove users like you from their computers ...
;D ;D ;D
evil, you are number 1! ;D ;D ;D

;D ;D ;D

monchapi

Very interesting a nice learning curve and now I know why backtrack is a mess follow the instructions and you will be sudo free but also free from somethings that you were not wanting to be free from!! Not recommended but do try and see for yourself.  ;D

heuristic154

My first post! Saying HELLO to everyone from the state of Washington.

I'm glad someone put this article up, Thank You!! Anything I dislike more is being treated as a kid, and having to type "sudo" in every time I want to do something is quite frustrating, it's my computer and if I'm stupid enough to make it a brick so be it, it won't be the first time nor hopefully NOT won't be the last time.
I did not want to leave BT R5 because they understand that concept, knowing running in root is dangerous, but allow you to do so.
I left BT because of their self-righteousness and way too much pride. They have forgotten, they were newbies at one time.
Dave

ysf

#19
I only run into sudo after an install where I launch a sudo shell with -i or -s. I removed the password function for sudo alltogether for some commands.

For daily work I have aliases that include the sudo command:

alias apt-get='sudo apt-get'
alias install='apt-get install'
alias remove='apt-get remove'
etc.

which allows to type short & fast. If anytime there is a command that I want to repeat with sudo, I simply enter "sudo !!" and done. No need to compromise and mess up with root rights. I can only suggest to try it out to alias commands that you use often. If you need to add them often:

alias edit-aliases='vi ~/.bash_aliases && source ~/.bash_aliases'

is one hell of a typesafer ;) If I really would like to switch to root only, I'd simply remove the password for sudo usage.

#visudo, enter at the end of file:
your_username ALL=(ALL) NOPASSWD: ALL

sinflooddotnet

just use 'sudo -s' and leave the default OS behavior alone.

it's unfortunate that people read this item more than something much more useful.

Stolas

Quote from: nubbix on September 16, 2012, 08:26:56 PM
if you are not careful enough
If you are not careful enough, you should be root. period.
Whenever you think you can or can't your right.

SuperKawaii

how do u edit the passwd file

it wont let me save  ???

it says permission denied

ostendali

Quote from: SuperKawaii on January 17, 2013, 07:56:22 AM
how do u edit the passwd file

it wont let me save  ???

it says permission denied
evilsocket; this is one of them!
just google it and RTFM!