LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-06-2005, 10:49 AM   #1
slug420
Member
 
Registered: Jul 2004
Posts: 68

Rep: Reputation: 15
how/where to install apps for all users


im running suse 9.1 pro if its relevant...

trying to find out how and where I should be installing programs so that they are available to all users. I am aware of the security concerns and how dangerous it is to login as root, but I usually do login as root for administrative tasks, so assuming I download the app as root, how should I install it (and where do you reccomend to install it) so that all users can access it.

Thanks
 
Old 01-06-2005, 10:55 AM   #2
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,990

Rep: Reputation: 69
I do not recommend downloading anything as root.
Download it as a regular user. In the case of source tarballs (.tar.gz files), compile the software as a regular user; you only need to be root to install it.

Tip: from a console, you can use the su command to switch to the root user account without needing to log out; you will still need the login password.

The /usr/local/bin/ directory is supposed to be used for executable files for all users. Generally, you need to set the install prefix to /usr/local/ for this location to be used; other files will then go into appropriate places, documentation in /usr/local/doc, data files in /usr/local/share and so on.

The /usr/local directory structure is similar to /usr (used for software that ships as a part of your distro) and /opt (a legacy location used for “optional” or additional software).
 
Old 01-06-2005, 11:11 AM   #3
slug420
Member
 
Registered: Jul 2004
Posts: 68

Original Poster
Rep: Reputation: 15
so a user's ability to run a program depends just on where it is located (in /usr/sbin) and not on who installed it?
 
Old 01-17-2005, 02:57 PM   #4
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,990

Rep: Reputation: 69
No, it depends on:

- the permissions of the mounted filesystem (if the filesystem has the noexec option set, nothing on that filesystem will run)

- the permissions and owner of the file. A file can be marked as executable for the owner user, the owning group, or everyone. By default, most packages set themselves to be run by everyone. (NB: scripts also have to be readable before they can be run)

- the permissions of the directory that the file is in. If a user cannot read the directory, then they can't run executables in that directory.

Security packages like sudo can be used to add more fine-grain tuning to who can use what.
 
Old 01-17-2005, 04:47 PM   #5
shengchieh
Member
 
Registered: Jul 2004
Location: Palo Alto, CA
Distribution: #! Korora
Posts: 472

Rep: Reputation: 30
You might be interested in

http://www.comptechdoc.org/os/linux/commands/
http://tldp.org/HOWTO/HighQuality-Apps-HOWTO/fhs.html

Then you can figure out where files should be.

Sheng-Chieh
 
  


Reply


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
QUERY: how to install more apps from install cds? woes :S kevingpo SUSE / openSUSE 2 09-10-2005 06:07 AM
installing apps for all users cerebellum Linux - Newbie 10 05-31-2005 05:05 PM
Where to install apps lapthorn Linux - Newbie 2 03-09-2004 08:44 AM
Running apps as alternate users otisthegbs Linux - Software 1 11-25-2003 04:12 AM
Making apps available for other users. Dead_Goon Slackware 2 03-08-2003 01:18 PM


All times are GMT -5. The time now is 10:16 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration