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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
01-06-2005, 09:49 AM
|
#1
|
Member
Registered: Jul 2004
Posts: 68
Rep:
|
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
|
|
|
01-06-2005, 09:55 AM
|
#2
|
Senior Member
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994
Rep:
|
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).
|
|
|
01-06-2005, 10:11 AM
|
#3
|
Member
Registered: Jul 2004
Posts: 68
Original Poster
Rep:
|
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?
|
|
|
01-17-2005, 01:57 PM
|
#4
|
Senior Member
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994
Rep:
|
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.
|
|
|
01-17-2005, 03:47 PM
|
#5
|
Member
Registered: Jul 2004
Location: Palo Alto, CA
Distribution: #! Korora
Posts: 472
Rep:
|
|
|
|
All times are GMT -5. The time now is 01:58 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|