Results 1 to 10 of 34
when im in "su" and running a command like "kwrite /etc/lilo.conf" it doesnt work i get this
bash: kwrite: command not found
but when im in normal user mode. i ...
- 07-15-2003 #1Linux User
- Join Date
- Jun 2003
- Location
- Minnesota, USA yes.....
- Posts
- 479
"su" commands?
when im in "su" and running a command like "kwrite /etc/lilo.conf" it doesnt work i get this
bash: kwrite: command not found
but when im in normal user mode. i can run it. but the problem with that is i cant save what i edited. so how do i get su to recognize the same commands as normal user?
- 07-15-2003 #2Just Joined!
- Join Date
- Mar 2003
- Location
- Auburn, AL
- Posts
- 20
kwrite is probably not in your root path. For the most part, the root path is shorter that most user paths. You can add the directory that krite is in to your root path and it should work.
- 07-15-2003 #3Linux User
- Join Date
- Jun 2003
- Location
- Minnesota, USA yes.....
- Posts
- 479
ahh i see. how would i do that?
- 07-15-2003 #4Linux Guru
- Join Date
- Oct 2001
- Location
- Täby, Sweden
- Posts
- 7,578
Try this (as root, that is):
Code:PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin
- 07-15-2003 #5Linux User
- Join Date
- Jun 2003
- Location
- Minnesota, USA yes.....
- Posts
- 479
nope i put exactly what you did Dolda2000, No Go.
- 07-15-2003 #6Linux Guru
- Join Date
- Oct 2001
- Location
- Täby, Sweden
- Posts
- 7,578
Check what "which kwrite" returns.
- 07-15-2003 #7Linux User
- Join Date
- Jun 2003
- Location
- Minnesota, USA yes.....
- Posts
- 479
Code:troy@slackware:~$ which kwrite /opt/kde/bin/kwrite
- 07-15-2003 #8Linux Guru
- Join Date
- Oct 2001
- Location
- Täby, Sweden
- Posts
- 7,578
Have you installed KDE on your own or something? Well then, add /opt/kde/bin to root's PATH as well.
- 07-15-2003 #9Linux User
- Join Date
- Jun 2003
- Location
- Minnesota, USA yes.....
- Posts
- 479
*sigh* once again i dont know how to do something. can you guess what? heh. how do i add that line to PATH? and no i did nto install it on my own. i just had slackware do a full install.
- 07-15-2003 #10Linux Guru
- Join Date
- Oct 2001
- Location
- Täby, Sweden
- Posts
- 7,578
Code:PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/opt/kde/bin


Reply With Quote
