LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Software working in root but not working in user accounts (https://www.linuxquestions.org/questions/linux-software-2/software-working-in-root-but-not-working-in-user-accounts-810704/)

Heshsham 05-28-2010 08:35 AM

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

eco 05-28-2010 08:47 AM

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.

Heshsham 05-29-2010 02:31 AM

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?

mac.tieu 05-29-2010 02:58 AM

Quote:

Originally Posted by Heshsham (Post 3985071)
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


All times are GMT -5. The time now is 12:21 AM.