... all gonna wonder how you ever thought you could live so large and leave so little for the rest of us...
1
| export PATH=${PATH}:/sbin:/usr/sbin:/usr/local/sbin |
"Een serveradmin, voluit een serveradministrator, is dan weer een slavenbeheerder oftewel een slavendrijver" - Rataplan
1
2
3
4
5
6
7
8
9
10
11
12
13
| declare -x HOME="/" declare -x LOGNAME="root" declare -x MAIL="/var/mail/root" declare -x OLDPWD declare -x PATH="/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games" declare -x PS1="\\u@\\h:\\w\\\$ " declare -x PWD="/" declare -x SHELL="/bin/bash" declare -x SHLVL="1" declare -x SSH_CLIENT="192.168.1.10 2210 2200" declare -x SSH_TTY="/dev/ttyp0" declare -x TERM="xterm" declare -x USER="root" |
ben root geworden door met ssh direct op de rootaccount in te loggen
... all gonna wonder how you ever thought you could live so large and leave so little for the rest of us...
1
2
3
| export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin export PS1='\h:\w\$ ' umask 022 |
In /root/.profile
1
2
3
4
5
6
7
8
| if [ -f ~/.bashrc ]; then . ~/.bashrc fi PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin export PATH mesg n |
als ik het commando export los uitvoer werkt het natuurlijk wel gewoon, maar het lijkt erop dat hij .bashrd en .profile niet gebruikt.
... all gonna wonder how you ever thought you could live so large and leave so little for the rest of us...
Je mist in je path iig diverse sbin-directories
ge-flopt:
vries335 schreef op dinsdag 11 januari 2005 @ 12:02:
ben root geworden door met ssh direct op de rootaccount in te loggen
[ Voor 25% gewijzigd door Paul op 11-01-2005 12:16 ]
"Your life is yours alone. Rise up and live it." - Richard Rahl
Rhàshan - Aditu Sunlock
niet via andere user en dan su of su -
in sshd_config staat rootlogin standaard aan trouwens, maar ook als ik naar mijn server toe loop en met het toetsenbord inlog geeft hij het zelfde probleem.
[ Voor 57% gewijzigd door Zware Unit op 11-01-2005 12:19 ]
... all gonna wonder how you ever thought you could live so large and leave so little for the rest of us...
miss heb je hier wat aan?