[ Home | Liste | F.A.Q. | Risorse | Cerca... ]


[ Data: precedente | successivo | indice ] [ Argomento: precedente | successivo | indice ]


Archivio: openbsd@sikurezza.org
Soggetto: Re: Help con root e "prompt"
Mittente: Nichol
Data: 5 Feb 2004 23:16:54 -0000
Prova ad installare la bash shell invece di utilizzare la c come stai
facendo
----- Original Message -----
From: "Andrea Riela" <ml@xxxxxxxx>
To: "'openbsd'" <openbsd@xxxxxxxxxxxxx>
Sent: Tuesday, February 03, 2004 2:43 AM
Subject: Help con root e "prompt"


Ciao ragazzi,

Trafficando con vi ho fatto un casino nel .cshrc.
Sta di fatto che ora, ogni volta che mi loggo come root o digito un semplice
"cd, ricevo un messaggio del tipo "prompt: Command not found."

E il mio insecurity output dice:

Checking root csh paths, umask values:
/etc/csh.cshrc /etc/csh.login /root/.cshrc /root/.login
The root path includes .
The root path includes .

E

======
/root/.cshrc diffs (-OLD  +NEW)
======
--- /var/backups/root_.cshrc.current Mon Oct 13 17:04:07 2003
+++ /root/.cshrc Mon Feb  2 00:38:52 2004
@@ -1,34 +1,34 @@
-# $OpenBSD: dot.cshrc,v 1.11 2003/03/20 01:43:31 david Exp $
+B
+# $OpenBSD: dot.cshrc,v 1.3 2002/06/09 06:15:15 todd Exp $
 #
 # csh initialization

-umask 022
-alias mail Mail
-set history=1000
-set path=(/sbin /usr/sbin /bin /usr/bin /usr/local/bin /usr/X11R6/bin) -set
filec
+alias df df -k
+alias du du -k
+alias f finger
+alias h 'history -r | more'
+alias j jobs -l
+alias la ls -a
+alias lf ls -FA
+alias ll ls -lgsA
+alias tset 'set noglob histchars=""; eval `\tset -s \!*`; unset noglob
histchars'
+alias z suspend

-# directory stuff: cdpath/cd/back
-set cdpath=(/sys /sys/arch
/usr/src/{bin,sbin,usr.{bin,sbin},pgrm,lib,libexec,share,contrib,local,devel
,games,old,gnu,gnu/{lib,usr.bin,usr.sbin,libexec}})
-
-setenv BLOCKSIZE 1k
-
-alias cd 'set old="$cwd"; chdir \!*'
-alias h history
-alias j jobs -l
-alias ll ls -l
-alias l ls -alF
-alias back 'set back="$old"; set old="$cwd"; cd "$back"; unset back;
dirs'
-
-alias z suspend
-alias x exit
-alias pd pushd
-alias pd2 pushd +2
-alias pd3 pushd +3
-alias pd4 pushd +4
+set path = (~/bin /bin /sbin /usr/{bin,sbin,local/bin,local/sbin,games}
+.)

 if ($?prompt) then
- set prompt="`hostname -s`# "
+ # An interactive shell -- set some stuff up
+ set filec
+ set history = 1000
+ set ignoreeof
+ set mail = (/var/mail/$USER)
+        set prompt="`hostname -s`# "
+# set mch = `hostname -s`
+# alias prompt 'set prompt = "$mch:q"":$cwd:t {\!} "'
+ alias cd 'cd \!*; prompt'
+        alias chdir 'cd \!*; prompt'
+ alias popd 'popd \!*; prompt'
+ alias pushd 'pushd \!*; prompt'
+ cd .
+ umask 22
 endif
-
-setenv EDITOR joe
\ No newline at end of file

Ho provato a rimetterlo a posto, ma non sortisce alcun effetto.

Potete aiutarmi?
Grazie mille
Andrea


________________________________________________________
http://www.sikurezza.org - Italian Security Mailing List


________________________________________________________
http://www.sikurezza.org - Italian Security Mailing List




[ Home | Liste | F.A.Q. | Risorse | Cerca... ]

www.sikurezza.org - Italian Security Mailing List
(c) 1999-2005