Skip to Content.
Sympa Menu

sm-grimoire-bugs - [SM-Grimoire-Bugs] [Bug 13505] useradd and adduser should be improved/fixed

sm-grimoire-bugs AT lists.ibiblio.org

Subject: SourceMage Grimoire Bug List

List archive

Chronological Thread  
  • From: bugzilla-daemon AT bugs.sourcemage.org
  • To: sm-grimoire-bugs AT lists.ibiblio.org
  • Subject: [SM-Grimoire-Bugs] [Bug 13505] useradd and adduser should be improved/fixed
  • Date: 9 Mar 2007 09:26:16 -0000

http://bugs.sourcemage.org/show_bug.cgi?id=13505





------- Additional Comments From sobukus AT sourcemage.org 2007-03-09 03:26
-------
Heck, /etc/default/useradd isn't even installed as config file ...
Gonna change that...

Jeremy, could you elaborate how the query behaviour should be?
Now, we have to plan for most ppl. having /etc/default/useradd with
HOME=/home/users already... this would be a sketch of the add functionality:

CONFIGURE:
old_home=$(grep '^HOME=' /etc/default/useradd && sed 's/HOME=//')
if[[ -z "$old_home" ]]; then
default_home=/home/users
else
default_home=$old_home
fi
config_query_string SHADOW_HOME "base for user homes:" "$default_home"
if ! [[ -e "$INSTALL_ROOT/$SHADOW_HOME" ]]; then
message "$SHADOW_HOME does not seem to exist, it's up to you to take care
of
that..."
fi

INSTALL:
sed -i 's,^HOME=.*$,HOME='"$SHADOW_HOME"',' etc/useradd
install_config_file etc/useradd $INSTALL_ROOT/etc/default/useradd

(hm, do we want to be smartass with appending TRACK_ROOT ot SHADOW_HOME?)

What do you think of that?
At least, we'll have to make the /etc/default/useradd a config file asap, so
that changes don't get overwritten.

--
Configure bugmail: http://bugs.sourcemage.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.




Archive powered by MHonArc 2.6.24.

Top of Page