how to make programs available to all users | Unix Linux Forums | UNIX for Dummies Questions & Answers

  Go Back    


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

how to make programs available to all users

UNIX for Dummies Questions & Answers


Tags
dpkg

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 06-08-2011
lramsb4u lramsb4u is offline
Registered User
 
Join Date: May 2011
Last Activity: 15 November 2012, 3:17 PM EST
Posts: 56
Thanks: 8
Thanked 2 Times in 2 Posts
how to make programs available to all users

Hi all,

where (path) usually the programs are installed in linux.
How to make installed programs available to all users of the system ?
Thanks in advance!
Sponsored Links
    #2  
Old 06-08-2011
subodh.thakar subodh.thakar is offline
Registered User
 
Join Date: May 2011
Last Activity: 11 July 2011, 2:31 AM EDT
Location: Mumbai
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts

Code:
dpkg -l


Last edited by Yogesh Sawant; 06-11-2011 at 01:02 PM.. Reason: added code tags
Sponsored Links
    #3  
Old 06-08-2011
Corona688 Corona688 is online now Forum Staff  
Mead Rotor
 
Join Date: Aug 2005
Last Activity: 1 August 2014, 6:22 PM EDT
Location: Saskatchewan
Posts: 19,068
Thanks: 759
Thanked 3,172 Times in 2,975 Posts
How to do this depends on your system. If you're using a debian-derived distro you'll have dpkg, if you're not you won't.

How to make them 'available to all users of the system' depends on what things you want to make available to what users.
    #4  
Old 06-08-2011
lramsb4u lramsb4u is offline
Registered User
 
Join Date: May 2011
Last Activity: 15 November 2012, 3:17 PM EST
Posts: 56
Thanks: 8
Thanked 2 Times in 2 Posts
Hi Corona688,

I am using RHEL so i did not find dpkg.
I am trying to know what files to be edited if i installed a program for example in /usr/bin etc. How i make this program available to say xyz user.

Thanks in advance!
Sponsored Links
    #5  
Old 06-08-2011
Corona688 Corona688 is online now Forum Staff  
Mead Rotor
 
Join Date: Aug 2005
Last Activity: 1 August 2014, 6:22 PM EDT
Location: Saskatchewan
Posts: 19,068
Thanks: 759
Thanked 3,172 Times in 2,975 Posts
There's two things to consider, whether they'll find it and whether they're actually allowed to use it.

The PATH variable is what a users' shell will use to locate programs. /usr/bin will very probably be in the default PATH so users will find things in there by default. If they need to look in /usr/local/bin/ you may need to add that to the PATH. The PATH is adjusted in a variety of locations, see How does the default PATH get set on RHEL?

Even if it's not in their PATH, they can still run programs by giving the full path themselves, i.e. running /usr/local/sbin/myprogramname

File permissions can also be used to allow or deny users from running programs they'd otherwise be able to access, but without knowing what you're trying to do this may be getting into too much detail.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Are programs like sys_open( ) ,sys_read( ) et al examples of system level programs ? vishwamitra UNIX for Dummies Questions & Answers 1 10-28-2009 12:00 PM
Gani Network Driver Won't Install - make: Fatal error: Don't know how to make targ... Bradj47 Solaris 1 08-17-2009 12:46 AM
Error in issuing a make and make install ahjiefreak Linux 1 03-12-2008 01:32 AM
make script deleting mp3 with warnig to users stefan Shell Programming and Scripting 2 11-24-2006 03:43 AM
How to make a script executable by all users? chrs0302 Solaris 2 10-18-2005 12:46 PM



All times are GMT -4. The time now is 06:28 PM.