Gentoo Archives: gentoo-dev

From: Roy Marples <roy@×××××××.name>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] How to force homedir on enewuser
Date: Fri, 18 Jan 2008 11:51:58
Message-Id: 1200657114.2500.1.camel@uberlaptop.marples.name
In Reply to: Re: [gentoo-dev] How to force homedir on enewuser by Mike Frysinger
1 On Fri, 2008-01-18 at 06:41 -0500, Mike Frysinger wrote:
2 > right, there is no way (by design) to force these settings on an already
3 > created user. if the old path really truly should not be the old value, you
4 > can do something like this in pkg_setup:
5 > if [[ $(egetent passwd user | cut -d: -f6) == "/the/old/path" ]] ; then
6 > eerror "please run usermod -m -d /new/path ......"
7 > die "moocow"
8 > fi
9
10 You should also ensure that ${ROOT} is /
11
12 Thanks
13
14 Roy
15
16 --
17 gentoo-dev@l.g.o mailing list