Article 4T6NM [SOLVED] command not found under su

[SOLVED] command not found under su

by
Basslord1124
from LinuxQuestions.org on (#4T6NM)
Ok, so just recently installed Debian 10 on my new file server after running Debian 6 for a while. So far things are going pretty good, except one little thing.

If I do an su to root from a regular user and run an application...sometimes I get a "command not found". Some commands will work but others (one of these is fdisk) will give a command not found.

I have never came across this in my past (guess I got lucky) Linux experience, and at least from what I have read so far it relates to the PATH in my .profile files. The thing is, I'm not sure which config/profile file I need to edit for this AND what directories to add to allow my programs to work.

I don't mind doing this under the normal root login (where it appears like most all apps work) but sometimes it's just quicker to su to make a quick fix.latest?d=yIl2AUoC8zA latest?i=HzaonZ76INg:DTYhNOFCDj0:F7zBnMy latest?i=HzaonZ76INg:DTYhNOFCDj0:V_sGLiP latest?d=qj6IDK7rITs latest?i=HzaonZ76INg:DTYhNOFCDj0:gIN9vFwHzaonZ76INg
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments