Linux - Software This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
05-28-2010, 08:35 AM
|
#1
|
|
LQ Newbie
Registered: May 2010
Posts: 6
Rep:
|
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.
Thanks and regards,
Heshsham
|
|
|
|
05-28-2010, 08:47 AM
|
#2
|
|
Member
Registered: May 2006
Location: BE
Distribution: Debian/Gentoo
Posts: 412
Rep:
|
Hi,
If you installed the application as root, it probably has set the permissions for root.
Do you know where the application is?
if so, simply check the permissions on folder(s) and file(s) or at least on the file you run to start the application.
just a thought.
|
|
|
|
05-29-2010, 02:31 AM
|
#3
|
|
LQ Newbie
Registered: May 2010
Posts: 6
Original Poster
Rep:
|
Thanks for your reply. :-)
I am providing you further details here:
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.
3-File permission of /usr/local/cuda
[root@Heshsham]# ls -ld /usr/local/cuda
drwxrwxrwx 10 root root 4096 2009-12-13 21:21 /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?
Last edited by Heshsham; 05-29-2010 at 02:36 AM.
|
|
|
|
05-29-2010, 02:58 AM
|
#4
|
|
Member
Registered: Jan 2010
Location: Vietnam
Distribution: Arch
Posts: 65
Rep:
|
Quote:
Originally Posted by Heshsham
Thanks for your reply. :-)
I am providing you further details here:
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.
3-File permission of /usr/local/cuda
[root@Heshsham]# ls -ld /usr/local/cuda
drwxrwxrwx 10 root root 4096 2009-12-13 21:21 /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.
MT
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 07:07 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|