You are not logged in.

#1 2004-10-21 14:25:14

dammit
Member
Registered: 2004-07-06
Posts: 67

prob with bash + sudo

Hi,
there is this annoying thing that happens once in a bluemoon when i do sudo su in console.

It seems that sometimes after I type sudo su and then press enter, I'm about to type "pacman -Syu", then all of a sudden right after I'm about to type "p", it presses enter for me automatically, which immediately gives me the message : "bash: p: command not found".

  It gets annoying a lot cuz it means that I have to press backspace.    I have my user name in visudo setup like this:
dammit ALL=(ALL) NOPASSWD: ALL.  It only happens when I do sudo su. The current version of bash is bash 3.0-2.

I dunno how to fix this stupid annoyance, and curious if anyone experience the same senario?

thanks in advance.
dammit

Offline

#2 2004-10-21 14:34:26

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: prob with bash + sudo

out of curiosity, why "sudo su" for pacman... why not sudo pacman -Syu

Offline

#3 2004-10-21 16:52:02

dammit
Member
Registered: 2004-07-06
Posts: 67

Re: prob with bash + sudo

phrakture wrote:

out of curiosity, why "sudo su" for pacman... why not sudo pacman -Syu

actually it was just an example, but yeah i think i better put pacman into visudo because i use it a lot.  atm sudo su is convenient way of goin to a super user since my password is quite long and with symbols

Offline

#4 2004-10-21 19:51:42

ScottTFrazer
Member
Registered: 2004-10-20
Posts: 47

Re: prob with bash + sudo

Wild shot in the dark, cause I had this happen to me:

Are you using an ssh client (such as SecureCRT) that can automate the login to certain sites?

Took me a good day to figure out what was happening there.

Offline

#5 2004-10-22 04:46:39

dammit
Member
Registered: 2004-07-06
Posts: 67

Re: prob with bash + sudo

ScottTFrazer wrote:

Wild shot in the dark, cause I had this happen to me:

Are you using an ssh client (such as SecureCRT) that can automate the login to certain sites?

Took me a good day to figure out what was happening there.

Hi, no I am not using any ssh client at the time.  I dunno the cause because it happens so randomly, sometimes it happens after I login.

Offline

#6 2004-10-22 05:08:13

z4ziggy
Member
From: Israel
Registered: 2004-03-29
Posts: 573
Website

Re: prob with bash + sudo

i thought i was dreaming when that happened to me... good to know im not imagining things... wink in anyway, it didnt happen to me too often so i didnt bother to check it. it did however, only happened in console mode. i hope u find the solution.

btw, if u too tired of retyping root's pass each time (like me), checkout the "su/sudo with no pass" i posted ( http://bbs.archlinux.org/viewtopic.php?t=7534 )

gluck

Offline

#7 2004-10-22 13:39:54

afu
Member
From: Tuscalooser, Alabummer
Registered: 2004-02-19
Posts: 155

Re: prob with bash + sudo

Does it do this when you type "sudo su -"  ?  Just curious.
-Shawn

Offline

#8 2004-10-22 14:18:40

dammit
Member
Registered: 2004-07-06
Posts: 67

Re: prob with bash + sudo

afu wrote:

Does it do this when you type "sudo su -"  ?  Just curious.
-Shawn

Nope, just a normal "sudo su", but it happens at random times, which makes it really hard to figure out.
thx

Offline

Board footer

Powered by FluxBB