You are not logged in.
Pages: 1
At some point recently, my shell has begun insulting me if I type my password wrong while using sudo. I'm assuming that sudo now works with fortune-oneliners, but I'm not sure.
Is this a normal thing for sudo now? It seems to have happened with the last sudo upgrade. It used to say something like "Sorry, try again." Now it says stuff like this:
~$ sudo /etc/rc.d/httpd start
Password:
You type like i drive.
Password:
Are you on drugs?
Very weird, I must say, since it came out of nowhere.
dvdtube - download all uploads from a YouTube user and then optionally create a DVD.
(Regular version AUR link / SVN version AUR link)
Offline
I just looked through the CVS history; this seems to be new behaviour in 1.6.9p1 - it's built into sudo and enabled with --enable-all-insults in the ./configure line.
Interesting...
Offline
Password:
You speak an infinite deal of nothing
Password:
My pet ferret can type better than you!
Isn't it great?
Offline
It caught me by surprise!
I'm not sure if I'll keep it enabled or rebuild it, though... It makes my brain have to process more than it should!
Honestly, though.. I keep expecting to see "Sorry, try again," and get caught by surprise every time. Maybe this will help me learn how to type my password without messing up a few times each time =-)
dvdtube - download all uploads from a YouTube user and then optionally create a DVD.
(Regular version AUR link / SVN version AUR link)
Offline
I can remember seeing a bug report asking for the insults to be enabled but it still came as a surprize when I first saw them
Offline
If you add the following line in your sudoers file:
Defaults !insults
That will disable the insults. I don't really know why they had to be enabled by default, I probably would have preferred to make them optional.
Offline
I think it's a great feature. It doesn't really matter what's standing there as you expect your program to run or you expect an error message.
But this way, the error message is hilarious. (:
Maybe it's worth considering if it shall be made optional. But I think it's good that it was mandatory for some time as I didn't know sudo has such a feature. I'd enable it if it becomes optional.
Last edited by harlekin (2007-08-20 13:01:06)
Hail to the thief!
Offline
I wonder if fortunes can be injected into any other programs... I do know that Linux Mint gives you a fortune whenever you start a terminal [session].
(Yeah, I know that this isn't just "sudo || fortune" ...)
dvdtube - download all uploads from a YouTube user and then optionally create a DVD.
(Regular version AUR link / SVN version AUR link)
Offline
If you wanted fortunes for each terminal session, you could add 'echo `fortune`' to the end of your .bashrc.
Offline
Just noticed this myself. The only problem is now is I delibrately type my password wrong to see what pops up.
"When once you have tasted flight, you will forever walk the earth with your eyes turned skyward, for there you have been, and there you will always long to return."
Offline
Just noticed this myself. The only problem is now is I delibrately type my password wrong to see what pops up.
ahah, nice
I think I'll disable NOPASSWD just for that.
pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))
Offline
ditto ^^
"The only thing we have to fear is fear itself." - Franklin D. Roosevelt
Offline
Hm... maybe we should turn this off by default... I don't like it when my computer talks back.
Offline
Heh, i had a great laugh with this insults today .
It's not as boring as the other common version
Password:
Are you on d_rugs?
Password:
Your mind just hasn't been the same since the electro-shock, has it?
Password:
I can't hear you -- I'm using the scrambler.
Last edited by STiAT (2007-08-23 15:21:55)
Ability is nothing without opportunity.
Offline
Pages: 1