LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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

Reply
 
Search this Thread
Old 05-28-2010, 09:35 AM   #1
Heshsham
LQ Newbie
 
Registered: May 2010
Posts: 6

Rep: Reputation: 0
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
 
Old 05-28-2010, 09:47 AM   #2
eco
Member
 
Registered: May 2006
Location: BE
Distribution: Debian/Gentoo
Posts: 412

Rep: Reputation: 48
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.
 
Old 05-29-2010, 03:31 AM   #3
Heshsham
LQ Newbie
 
Registered: May 2010
Posts: 6

Original Poster
Rep: Reputation: 0
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 03:36 AM.
 
Old 05-29-2010, 03:58 AM   #4
mac.tieu
Member
 
Registered: Jan 2010
Location: Vietnam
Distribution: Arch
Posts: 65

Rep: Reputation: 22
Quote:
Originally Posted by Heshsham View Post
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
 
  


Reply

Tags
account, command, file, found, nonroot, permission


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Crontab not working for non-root User ferventslacker Linux - Newbie 5 01-19-2010 10:50 AM
DBus not working with Kerberos-LDAP user accounts teamanx Linux - Software 0 09-20-2007 09:33 AM
Sendmail from User to Root. Not working bumjubeo Linux - Networking 6 12-04-2006 03:51 PM
GPSD not working from non-root user? Archer36 Slackware 1 03-21-2006 09:54 PM


All times are GMT -5. The time now is 06:40 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration