[Bug 365141] [NEW] euca_conf: inelegant retrieval of eucalyptus' $HOME

Loïc Minier lool at dooz.org
Wed Apr 22 15:14:12 UTC 2009


Public bug reported:

reading euca_conf, I wanted to check why I was prompted for a password to run "euca_conf -addnode" (whether it needed to be run as root or eucalyptus); it actually runs:
EUCA_HOME=`su - -c 'echo $HOME' $EUCA_USER`
that's a bit ugly; I think it should use getent instead:
getent passwd "$EUCA_USER" | cut -d: -f6

** Affects: eucalyptus (Ubuntu)
     Importance: Low
         Status: New

** Changed in: eucalyptus (Ubuntu)
   Importance: Undecided => Low

** Description changed:

- Hi
- 
  reading euca_conf, I wanted to check why I was prompted for a password to run "euca_conf -addnode" (whether it needed to be run as root or eucalyptus); it actually runs:
  EUCA_HOME=`su - -c 'echo $HOME' $EUCA_USER`
  that's a bit ugly; I think it should use getent instead:
- export EUCA_USER=eucalyptus; getent passwd "$EUCA_USER" | cut -d: -f6
- 
- Thanks
+ getent passwd "$EUCA_USER" | cut -d: -f6

-- 
euca_conf: inelegant retrieval of eucalyptus' $HOME
https://bugs.launchpad.net/bugs/365141
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs




More information about the universe-bugs mailing list