Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
bash: RIFFP�: command not found. {RISOLTO}
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
bandreabis
Advocate
Advocate


Joined: 18 Feb 2005
Posts: 2410
Location: イタリアのロディで

PostPosted: Tue Jan 13, 2009 6:35 pm    Post subject: bash: RIFFP�: command not found. {RISOLTO} Reply with quote

Quando do il comando su, mi restituisce questo output
Code:
su
Password:
bash: RIFFP�: command not found

cosa può essere?
Non ho modificato a mano nessun file di sistema.

Idee?

Grazie.
Andrea
_________________
Il numero di post non fa di me un esperto! Anzi!


Last edited by bandreabis on Sat Jan 24, 2009 4:24 pm; edited 4 times in total
Back to top
View user's profile Send private message
Elbryan
Guru
Guru


Joined: 13 Nov 2006
Posts: 523
Location: Rovereto (TN)

PostPosted: Tue Jan 13, 2009 6:45 pm    Post subject: Re: bash: RIFFP�: command not found Reply with quote

bandreabis wrote:
Quando do il comando su, mi restituisce questo output
Code:
su
Password:
bash: RIFFP�: command not found

cosa può essere?
Non ho modificato a mano nessun file di sistema.

Idee?

Grazie.
Andrea


hai qualcosa di strano nel bashrc di root?
Back to top
View user's profile Send private message
lucapost
Veteran
Veteran


Joined: 24 Nov 2005
Posts: 1415
Location: <ud|me|ts> - Italy

PostPosted: Tue Jan 13, 2009 6:47 pm    Post subject: Reply with quote

prova a controllare i file /root/.bashrc e /root/.bash_porofile, sempre se esistono.
oppure hai messo mano in /etc/profile...
_________________
LP
Back to top
View user's profile Send private message
bandreabis
Advocate
Advocate


Joined: 18 Feb 2005
Posts: 2410
Location: イタリアのロディで

PostPosted: Tue Jan 13, 2009 6:51 pm    Post subject: Reply with quote

Se do
Code:
su -
non da errore. E non ho modificato nessun bashrc da tempo, e sto errore è comparso tra ieri sera (spento PC) e oggi (riacceso PC).
EDIT: cancellatoil sottopostato /root/.bashrc l'errore è sparito.
EDIT2: Eliminate le righe su bash-completion ora il problema non c'è più.
In ogni caso:
Code:
cat  /root/.bashrc
# /etc/skel/.bashrc:
# $Header: /var/cvsroot/gentoo-x86/app-shells/bash/files/dot-bashrc,v 1.3 2005/07/06 22:10:22 vapier Exp $
#
# This file is sourced by all *interactive* bash shells on startup,
# including some apparently interactive shells such as scp and rcp
# that can't tolerate any output.


# Test for an interactive shell.  There is no need to set anything
# past this point for scp and rcp, and it's important to refrain from
# outputting anything in those cases.
if [[ $- != *i* ]]; then
        # Shell is non-interactive.  Be done now
        return
fi

# Shell is interactive.  It is okay to produce output at this point,
# though this example doesn't produce any.  Do setup for
# command-line interactivity.

# colors for ls, etc.  Prefer ~/.dir_colors #64489
if [[ -f ~/.dir_colors ]]; then
        eval `dircolors -b ~/.dir_colors`
else
        eval `dircolors -b /etc/DIR_COLORS`
fi
alias ls="ls --color=auto"

# Change the window title of X terminals
case $TERM in
        xterm*|rxvt*|Eterm)
                PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\007"'
                ;;
        screen)
                PROMPT_COMMAND='echo -ne "\033_${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\033\\"'
                ;;
esac

# uncomment the following to activate bash-completion:
[ -f /etc/profile.d/bash-completion ] && source /etc/profile.d/bash-completion

PS1='\[\033[01;31m\]\u@\h \[\033[01;34m\]$(basename "$PWD") \$ \[\033[00m\]'

_________________
Il numero di post non fa di me un esperto! Anzi!
Back to top
View user's profile Send private message
bandreabis
Advocate
Advocate


Joined: 18 Feb 2005
Posts: 2410
Location: イタリアのロディで

PostPosted: Thu Jan 22, 2009 6:33 am    Post subject: Reply with quote

Ho provato ad aggiornare bash-completion all'ultima versione, ma non ho risolto.
Ecco come si comporta:

Da utente bashcomp funziona.
Code:
velociraptor@pavilion velociraptor $ cat .bashrc
# /etc/skel/.bashrc:
#
# This file is sourced by all *interactive* bash shells on startup,
# including some apparently interactive shells such as scp and rcp
# that can't tolerate any output.  So make sure this doesn't display
# anything or bad things will happen !


# Test for an interactive shell.  There is no need to set anything
# past this point for scp and rcp, and it's important to refrain from
# outputting anything in those cases.
if [[ $- != *i* ]] ; then
        # Shell is non-interactive.  Be done now!
        return
fi

# Enable colors for ls, etc.  Prefer ~/.dir_colors #64489
if [[ -f ~/.dir_colors ]]; then
        eval `dircolors -b ~/.dir_colors`
else
        eval `dircolors -b /etc/DIR_COLORS`
fi
alias ls="ls --color=auto"

# Change the window title of X terminals
case $TERM in
        xterm*|rxvt*|Eterm)
                PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\007"'
                ;;
        screen)
                PROMPT_COMMAND='echo -ne "\033_${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\033\\"'
                ;;
esac
[ -f /etc/profile.d/bash-completion ] && source /etc/profile.d/bash-completion
PS1='\[\033[01;32m\]\u@\h \[\033[01;34m\]$(basename "$PWD") \$ \[\033[00m\]'


# This line was appended by KDE
# Make sure our customised gtkrc file is loaded.
export GTK2_RC_FILES="$HOME/.gtkrc-2.0:$HOME/.kde/share/config/gtkrc-2.0:/etc/gtk-2.0/gtkrc"

Da root
Code:
cat /root/.bashrc
# /etc/skel/.bashrc:
# $Header: /var/cvsroot/gentoo-x86/app-shells/bash/files/dot-bashrc,v 1.3 2005/07/06 22:10:22 vapier Exp $
#
# This file is sourced by all *interactive* bash shells on startup,
# including some apparently interactive shells such as scp and rcp
# that can't tolerate any output.


# Test for an interactive shell.  There is no need to set anything
# past this point for scp and rcp, and it's important to refrain from
# outputting anything in those cases.
if [[ $- != *i* ]]; then
        # Shell is non-interactive.  Be done now
        return
fi

# Shell is interactive.  It is okay to produce output at this point,
# though this example doesn't produce any.  Do setup for
# command-line interactivity.

# colors for ls, etc.  Prefer ~/.dir_colors #64489
if [[ -f ~/.dir_colors ]]; then
        eval `dircolors -b ~/.dir_colors`
else
        eval `dircolors -b /etc/DIR_COLORS`
fi
alias ls="ls --color=auto"

# Change the window title of X terminals
case $TERM in
        xterm*|rxvt*|Eterm)
                PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\007"'
                ;;
        screen)
                PROMPT_COMMAND='echo -ne "\033_${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\033\\"'
                ;;
esac

# uncomment the following to activate bash-completion:
[ -f /etc/profile.d/bash-completion ] && source /etc/profile.d/bash-completion


PS1='\[\033[01;31m\]\u@\h \[\033[01;34m\]$(basename "$PWD") \$ \[\033[00m\]'
ho 2 comportamenti:
Il primo senza bashcomp:
Code:
velociraptor@pavilion velociraptor $ su
Password:
root@pavilion velociraptor # 
Il secondo con bashcomp attivo
Code:
velociraptor@pavilion velociraptor $ su -
Password:
-su: RIFFP�: command not found
pavilion ~ # 


Diciamo che mi sto "impapocchiando" un po' molto.
_________________
Il numero di post non fa di me un esperto! Anzi!
Back to top
View user's profile Send private message
devilheart
l33t
l33t


Joined: 17 Mar 2005
Posts: 832
Location: Villach, Austria

PostPosted: Thu Jan 22, 2009 8:33 am    Post subject: Reply with quote

Code:
grep -lr RIFFP /etc/*
Back to top
View user's profile Send private message
bandreabis
Advocate
Advocate


Joined: 18 Feb 2005
Posts: 2410
Location: イタリアのロディで

PostPosted: Thu Jan 22, 2009 7:01 pm    Post subject: Reply with quote

devilheart wrote:
Code:
grep -lr RIFFP /etc/*

Nessun file trovato. :cry:
_________________
Il numero di post non fa di me un esperto! Anzi!
Back to top
View user's profile Send private message
devilheart
l33t
l33t


Joined: 17 Mar 2005
Posts: 832
Location: Villach, Austria

PostPosted: Thu Jan 22, 2009 8:28 pm    Post subject: Reply with quote

l'unica cosa che mi viene in mente è usare strace e controllare tutti i files aperti da su
Back to top
View user's profile Send private message
Peach
Advocate
Advocate


Joined: 08 Mar 2003
Posts: 3686
Location: London, UK

PostPosted: Thu Jan 22, 2009 9:20 pm    Post subject: Reply with quote

bandreabis wrote:
devilheart wrote:
Code:
grep -lr RIFFP /etc/*

Nessun file trovato. :cry:


fallo su tutto /*
_________________
Gentoo user since 2004.
"It's all fun and games, until someone loses an eye" - mom
Back to top
View user's profile Send private message
devilheart
l33t
l33t


Joined: 17 Mar 2005
Posts: 832
Location: Villach, Austria

PostPosted: Thu Jan 22, 2009 9:30 pm    Post subject: Reply with quote

Peach wrote:

fallo su tutto /*
mi pare che stia un attimo a farlo :D
Back to top
View user's profile Send private message
bandreabis
Advocate
Advocate


Joined: 18 Feb 2005
Posts: 2410
Location: イタリアのロディで

PostPosted: Fri Jan 23, 2009 6:47 am    Post subject: Reply with quote

Ci ho provato, ma non ho potuto finire la ricerca.
Stasera mi ci metto.
_________________
Il numero di post non fa di me un esperto! Anzi!
Back to top
View user's profile Send private message
bandreabis
Advocate
Advocate


Joined: 18 Feb 2005
Posts: 2410
Location: イタリアのロディで

PostPosted: Fri Jan 23, 2009 5:42 pm    Post subject: Reply with quote

devilheart wrote:
l'unica cosa che mi viene in mente è usare strace e controllare tutti i files aperti da su

Provo.
Come funziona?

Altra domanda, che differenza c'è tra "su" e "su -".
Ho provato a mascherare l'ultimo bash-completion stabile ma nulla, l'ho rimesso ed ora su - non da errore e su invece sì.

Ma che BIP!!
_________________
Il numero di post non fa di me un esperto! Anzi!
Back to top
View user's profile Send private message
devilheart
l33t
l33t


Joined: 17 Mar 2005
Posts: 832
Location: Villach, Austria

PostPosted: Fri Jan 23, 2009 8:15 pm    Post subject: Reply with quote

bandreabis wrote:
devilheart wrote:
l'unica cosa che mi viene in mente è usare strace e controllare tutti i files aperti da su

Provo.
Come funziona?

Altra domanda, che differenza c'è tra "su" e "su -".
Ho provato a mascherare l'ultimo bash-completion stabile ma nulla, l'ho rimesso ed ora su - non da errore e su invece sì.

Ma che BIP!!
su - ricrea l'ambiente che avresti facendo il login direttamente. per strace ti basta scrivere strace su e leggere tutti i files che vengono aperti. lancialo da root così non devi mettere la password
Back to top
View user's profile Send private message
bandreabis
Advocate
Advocate


Joined: 18 Feb 2005
Posts: 2410
Location: イタリアのロディで

PostPosted: Sat Jan 24, 2009 10:27 am    Post subject: Reply with quote

Trovata la caxx@ta!
Non la dico nemmeno perchè è una stupidata.
Dico solo che in /root/.bash_completion.d/ c'erano file che non dovevano esserci.
Il comando di prima su /* è ancora lì che gira. Andava fatto su /root/*
:roll:
_________________
Il numero di post non fa di me un esperto! Anzi!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum