gnumed-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnumed-devel] bootstrapping permissions


From: Karsten Hilbert
Subject: Re: [Gnumed-devel] bootstrapping permissions
Date: Thu, 25 Feb 2010 12:44:15 +0100
User-agent: Mutt/1.5.20 (2009-06-14)

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_server,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.


Karsten
-- 
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346




reply via email to

[Prev in Thread] Current Thread [Next in Thread]