Software working in root but not working in user accounts
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Software working in root but not working in user accounts
Hi,
Some of my programming tools are working absolutely fine in root on my Fedora 10 machine, but when I login as other users (non-root accounts), and use it, it is not working and I get the message: commands not found.
Any idea how can solve this issue?
I will aprecaite your replies and thanks in advance for your time.
1-The command that I want to run from non-root account: nvcc
2-nvcc location
[root@Heshsham]# locate nvcc
/usr/local/cuda/bin/nvcc
/usr/local/cuda/bin/nvcc.profile
/usr/local/cuda/man/man1/nvcc.1
this shows that nvcc is located in /usr/local/cuda
so I did chmod -R 777 /usr/local/cuda.
(I did chmod -R 777 /usr/local/cuda so I got drwxrwxrwx)
which shows that root (owner), group and other users all have the permissions to read, write and execute the contents of /usr/local/cuda.
Now when I run nvcc from root it works fine as intended. However, when I login as non-root account it prints the following message:
1-The command that I want to run from non-root account: nvcc
2-nvcc location
[root@Heshsham]# locate nvcc
/usr/local/cuda/bin/nvcc
/usr/local/cuda/bin/nvcc.profile
/usr/local/cuda/man/man1/nvcc.1
this shows that nvcc is located in /usr/local/cuda
so I did chmod -R 777 /usr/local/cuda.
(I did chmod -R 777 /usr/local/cuda so I got drwxrwxrwx)
which shows that root (owner), group and other users all have the permissions to read, write and execute the contents of /usr/local/cuda.
Now when I run nvcc from root it works fine as intended. However, when I login as non-root account it prints the following message:
-bash: nvcc: command not found
What do you think? Where is the problem?
Because 'nvcc' can not located in $PATH variable. You should use full path (/usr/local/cuda/bin/nvcc) to execute program or add '/usr/local/cuda/bin' to $PATH.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.