Jump to content

how to make a program available to user? [solved]


Recommended Posts

Well, generally there's a reason you can't run them as a user...

You could always just do use sudo or something....maybe...don't actually know if that'd work....

 

Try 'locate [command]' to find where it is and just run if from there.

For example, I know urpmi can only be run as root....I did 'locate urpmi', lotta results, one being /usr/sbin/urpmi....

 

[urza9814@Arochone ~]$ urpmi
bash: urpmi: command not found
[urza9814@Arochone ~]$ /usr/sbin/urpmi
urpmi version 4.7.15
Copyright (C) 1999-2005 Mandriva.
This is free software and may be redistributed under the terms of the GNU GPL
...

 

They might all be under /usr/sbin, I'm really not sure...just a bit of exploration on my part...hope it helps :)

Link to comment
Share on other sites

Yes, but I need this program to run, its located in /usr/local/bin I tried permissions and stuff but it wont run. When I enter ra + rab it auto-completes but my user finds nothing, there are other programs in the same dir which my user does auto-complete.

 

I need to be able to run it without path, so I can use rar as a backend for graphical archivers....

 

edit: this is not true, i had some duplicates. So the question really should by how can I make my user look in /usr/local/bin like root can?

Edited by ffi
Link to comment
Share on other sites

edit .bash_profile and add /usr/local/bin to your path:

PATH=$PATH:/usr/local/bin
export PATH

assuming PATH isn't being set and exported already in your .bash_profile - if it is, then just add :/usr/local/bin to the end of the PATH=$PATH:* line.

 

you could also allow all users to access /usr/local/bin by editing the file /etc/profile similarly.

Link to comment
Share on other sites

edit .bash_profile and add /usr/local/bin to your path:

PATH=$PATH:/usr/local/bin
export PATH

assuming PATH isn't being set and exported already in your .bash_profile - if it is, then just add :/usr/local/bin to the end of the [/i]PATH=$PATH:*[/i] line.

Hmm, this in part worked, I can now access rar from command line but xarchiver still doesnt work. Maybe it needs to know the path too :s

Edited by ffi
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...