Re: your mail
Colocar um . no PATH é uma brecha de segurança, pois por exemplo se vc
resolve entrar no diretório /tmp e digita cd para sair dele, mas
suponhamos que alguém tenha criado um script com o nome de cd com o
seguinte conteúdo:
#!/bin/bash
chmod -R 777 $HOME/*
ou chmod 777 /etc/passwd
chmod 777 /etc/shadow
pronto, já eram seus arquivos, isso sem falar no caso de vc ser root, em
que o estrago poderia ser bem pior. Eu não recomendaria colocar o . no
PATH.
abraços,
Otavio.
On Tue, Feb 15, 2005 at 11:47:36AM -0300, Francisco Welington de Sousa Lima wrote:
> Olá pessoal,
> Este é o meu .bashrc
> # ~/.bashrc: executed by bash(1) for non-login shells.
> # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
> # for examples
>
> # If running interactively, then:
> if [ "$PS1" ]; then
>
> # don't put duplicate lines in the history. See bash(1) for more options
> # export HISTCONTROL=ignoredups
>
> # check the window size after each command and, if necessary,
> # update the values of LINES and COLUMNS.
> #shopt -s checkwinsize
>
> # enable color support of ls and also add handy aliases
> if [ "$TERM" != "dumb" ]; then
> eval `dircolors -b`
> alias ls='ls --color=auto'
> #alias dir='ls --color=auto --format=vertical'
> #alias vdir='ls --color=auto --format=long'
> fi
>
> # some more ls aliases
> #alias ll='ls -l'
> #alias la='ls -A'
> #alias l='ls -CF'
>
> # set a fancy prompt
> PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
>
> # If this is an xterm set the title to user@host:dir
> case $TERM in
> xterm*)
> PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
> ;;
> *)
> ;;
> esac
>
> # enable programmable completion features (you don't need to enable
> # this, if it's already enabled in /etc/bash.bashrc).
> #if [ -f /etc/bash_completion ]; then
> # . /etc/bash_completion
> #fi
>
> fi
> source /opt/intel_fc_80/bin/ifortvars.sh
> O quero saber é se está faltando um "." no meu PATH, pois estou tentando
> executar uns scripts e não funciona , então meu colega questionou isso,
>
>
>
> I think there is a problem with the path defined in your shell (for
> example in your ~/.bashrc file: is there also "." in your definition of
> variable PATH ?)
>
>
>
>
>
>
> --
> To UNSUBSCRIBE, email to debian-user-portuguese-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>
Reply to:
- References:
- [no subject]
- From: "Francisco Welington de Sousa Lima" <wel@ufpi.br>