Unix Technical Forum

Running rpm as non-root

This is a discussion on Running rpm as non-root within the Linux Operating System forums, part of the Unix Operating Systems category; --> Just installed Fedora Core 2 and I now want to install MySQL using the rpms. I want to do ...


Go Back   Unix Technical Forum > Unix Operating Systems > Linux Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-17-2008, 08:18 PM
Bart
 
Posts: n/a
Default Running rpm as non-root

Just installed Fedora Core 2 and I now want to install MySQL using the
rpms. I want to do this using the user "mysql", since I don't want the
MySQL-stuff to run as root. But it seems impossible to do this as a
non-root user without compromising security (ie. changing permissions
on all rpm-related files).
Any thoughts ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-17-2008, 08:18 PM
Clive Dove
 
Posts: n/a
Default Re: Running rpm as non-root

Bart wrote:

> Just installed Fedora Core 2 and I now want to install MySQL using the
> rpms. I want to do this using the user "mysql", since I don't want the
> MySQL-stuff to run as root. But it seems impossible to do this as a
> non-root user without compromising security (ie. changing permissions
> on all rpm-related files).
> Any thoughts ?



Why would any linux program run in the root unless invoked by the root
user?

The way linux works is that while the application is in the root tree,
when you run it you are running as a user, using your own
configurations, preferences, settings and workproduct, all of which are
in the /home tree and all of which are owned by you and have your own
permissions.

A different user running the same linux program will have his own
configurations, preferences, settings and workproduct, and neither can
be seen by the other. I cannot see my son's work and he cannot see
mine, even though we use the same constellation of programs from the
same root tree, If there is anything we want to share, we have to set
up group permissions explicitly for that purpose.

I cannot imagine that MySQL would work any differently.


Clive



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-17-2008, 08:18 PM
Jean-David Beyer
 
Posts: n/a
Default Re: Running rpm as non-root

Clive Dove wrote:
> Bart wrote:
>
>
>> Just installed Fedora Core 2 and I now want to install MySQL using
>> the rpms. I want to do this using the user "mysql", since I don't
>> want the MySQL-stuff to run as root. But it seems impossible to do
>> this as a non-root user without compromising security (ie. changing
>> permissions on all rpm-related files). Any thoughts ?

>
>
>
> Why would any linux program run in the root unless invoked by the root
> user?
>

IBM's DB2 DBMS is very interesting that way. It owns all its own files
(program and data) and all the data database files of its users. It
specifically checks each user connecting to a database and if the user is
root, it does not allow access. I.e., the root user cannot use the
database. (Of course root can cheat and pretend to be another user easily
enough, but it sure guards against accidents.)

--
.~. Jean-David Beyer Registered Linux User 85642.
/V\ Registered Machine 241939.
/( )\ Shrewsbury, New Jersey http://counter.li.org
^^-^^ 08:20:00 up 3 days, 17:45, 5 users, load average: 4.95, 4.83, 4.49

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-17-2008, 08:18 PM
Markku Kolkka
 
Posts: n/a
Default Re: Running rpm as non-root

Bart wrote:

> Just installed Fedora Core 2 and I now want to install MySQL using the
> rpms. I want to do this using the user "mysql", since I don't want the
> MySQL-stuff to run as root.


The MySQL installed from Fedora packages _will_ run as the user mysql.
It's specified by the contents of the RPM package, not by the user ID
that's used for the installation.

--
Markku Kolkka
markku.kolkka@iki.fi
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 04:14 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com