[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnumed-devel] bootstrapping permissions
From: |
Sebastian Hilbert |
Subject: |
Re: [Gnumed-devel] bootstrapping permissions |
Date: |
Thu, 25 Feb 2010 16:45:12 +0100 |
User-agent: |
KMail/1.13.0 (Linux/2.6.31.12-0.1-default; KDE/4.4.0; i686; ; ) |
Am Donnerstag 25 Februar 2010 12:44:15 schrieb Karsten Hilbert:
> On Thu, Feb 25, 2010 at 12:31:32PM +0100, Hilbert, Sebastian wrote:
> > Rogerio (I think) contacted me via the Chat and asked what the password
> > is that Ubuntu 9.10 is asking him when running gm-bootstrap_server.
> >
> > I ran Ubuntu 9.10 and it looks like no password is needed when running as
> > user root. When you try this as user foo it will ask a password.
> >
> > I assume this is the password for the user postgres.
>
> $> grep su /usr/sbin/gm-bootstrap_server
> if ! su -c "psql -t -d template1 -c \"show lc_ctype;\"" postgres | grep
> -
q
> -e C -e UTF-8 ; then
>
> > I believe postgres usually has no password.
> >
> > So is the recommended procedure to run as root ?
>
> $> grep root /usr/sbin/gm-bootstrap_server
> # It should be run as root and will call the upstream script to
>
> $> head -15 /usr/sbin/gm-bootstrap_server
> #!/bin/sh
>
> #==============================================================
> # $Source:
> /home/ncq/Projekte/cvs2git/vcs-mirror/gnumed/gnumed/server/gm-bootstrap_se
> rver,v $ # $Id: gm-bootstrap_server,v 1.2 2009-10-28 16:44:13 ncq Exp $
> #
> # author: Andreas Tille, Karsten Hilbert
> # license: GPL v2
> #
> # This wrapper is intended to be installed into a systemwide
> # admin-only executable directory such as "/usr/sbin/"
> #
> # It should be run as root and will call the upstream script to
> # actually bootstrap the latest database from scratch.
That is what I figured. Rogerio did not yet tell me if he tried as normal user
or root.
Sebastian