LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 07-27-2009, 02:07 AM   #1
alpha_lt
Member
 
Registered: Jul 2009
Location: Denmark
Distribution: Fedora
Posts: 95

Rep: Reputation: 15
Installing binaries as user


Hello,

I've found that some linux users configure sources like this:
Code:
install_user=xxx install_group=xxx ./configure....
Then binaries are installed as user xxx. What's a benefit of it ? Will it be more secure to install binaries as some user other than root ?

Regards
alpha
 
Old 07-27-2009, 02:41 AM   #2
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
I can't see why. Normally, binaries compiled by you are put in /usr/local/bin which are executable by everybody. I would think the way that you describe would be less secure than the normal way.
cheers,
jdk
 
Old 07-27-2009, 02:49 AM   #3
alpha_lt
Member
 
Registered: Jul 2009
Location: Denmark
Distribution: Fedora
Posts: 95

Original Poster
Rep: Reputation: 15
I've found this method writen by some user who explained how to compile and install proftpd. So I didn't understand what's the benefit of installing as another user. I thought that this will not be more secure as installing by root.
You've mentioned that this method will be even more insecure. Can you explain why ?

Regards,
alpha
 
Old 07-27-2009, 03:26 AM   #4
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
If you put an executable in /usr/local/bin then in order to delete or modify it you must have root privileges. If you give ownership to a user then that user may also do this to the file. In general any non-reversible action to a file outside of your home directory should be done using root privileges. I hope this is clear enough.
cheers,
jdk
 
Old 07-27-2009, 10:41 PM   #5
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940
One of the more obscure permission-bits is called setuid, which may permit a program created by, say, root to execute with root's privileges rather than your own.

Nevertheless, not all installations manage everything using the root user. For example, in my tiny shop, all non-system applications are owned and installed by a non-root "maintenance user" (that's my term...) whose only purpose is to install programs ... and to own what has just been installed. This user doesn't have the privilege to install things in /usr/bin but instead installs them somewhere in /usr/local.

And so it goes. Programs which are "part of the Linux system" live one place, while programs which are system-wide user applications live elsewhere.
 
  


Reply



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
my user have no privileges under the binaries nachman Linux - General 1 08-27-2008 05:20 PM
Difference between installing from source and binaries? Infernal211283 Linux - Newbie 8 12-10-2005 04:25 PM
installing gcc 4.0.1(binaries) naveenu Fedora - Installation 3 09-28-2005 09:37 AM
Installing GCC Binaries Coookie Monster Linux - Newbie 4 07-23-2005 07:25 PM
Installing/Using Binaries e_a_olson Linux - Newbie 3 06-27-2001 11:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:32 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
Open Source Consulting | Domain Registration