Quantcast
Channel: Viva o Linux - Forum
Viewing all articles
Browse latest Browse all 64415

debian >=9 nao encontra comandos na variavel path[AJUDA]

$
0
0

Por: Jean César (dark777)

E ae galera do debian beleza?

desde o debian 9 tenho a infelicidade de estar logado como root e sempre que digito um comando que esta em /usr/sbin ou /usr/local/sbin: retorna comando nao encontrado. Por�m no arquivo /etc/profile a configura��o esta assim:

PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
else
PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games"
fi
export PATH

# If not running interactively, don't do anything

# See bash(1) for more options
HISTCONTROL=ignoreboth

# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=1000
HISTFILESIZE=2000

# update the values of LINES and COLUMNS.

# If set, the pattern "**" used in a pathname expansion context will

#[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"

case "$TERM" in

# We have color support; assume it's compliant with Ecma-48
# (ISO/IEC-6429). (Lack of such support is extremely rare, and such

PS1='${debian_chroot:+($debian_chroot)}\[{BARRA}033[01;32m\]\u@\h\[{BARRA}033[00m\]:\[{BARRA}033[01;34m\]\w\[{BARRA}033[00m\]\$ '
else
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '

# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)
PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"

# colored GCC warnings and errors
#export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'

#alias la='ls -A'
#alias l='ls -CF'

# Alias definitions.
# You may want to put all your additions into a separate file like
# ~/.bash_aliases, instead of adding them here directly.
# See /usr/share/doc/bash-doc/examples in the bash-doc package.

# ~/.profile: executed by Bourne-compatible login shells.

if [ "$BASH" ]; then

Adicionei esta linha no arquivo "~/.profile" do usu�rio root:

# ~/.profile: executed by Bourne-compatible login shells.

if [ "$BASH" ]; then

reiniciei o bash, fiz logout, reiniciei o debian e mesmo assim n�o pega as configura�oes na variavel PATH, por que?
wiki.anon


Viewing all articles
Browse latest Browse all 64415


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>