From: Roy Marples <roy@marples.name>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] How to force homedir on enewuser
Date: Fri, 18 Jan 2008 11:51:54 +0000 [thread overview]
Message-ID: <1200657114.2500.1.camel@uberlaptop.marples.name> (raw)
In-Reply-To: <200801180641.14847.vapier@gentoo.org>
On Fri, 2008-01-18 at 06:41 -0500, Mike Frysinger wrote:
> right, there is no way (by design) to force these settings on an already
> created user. if the old path really truly should not be the old value, you
> can do something like this in pkg_setup:
> if [[ $(egetent passwd user | cut -d: -f6) == "/the/old/path" ]] ; then
> eerror "please run usermod -m -d /new/path ......"
> die "moocow"
> fi
You should also ensure that ${ROOT} is /
Thanks
Roy
--
gentoo-dev@lists.gentoo.org mailing list
prev parent reply other threads:[~2008-01-18 11:51 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-18 2:46 [gentoo-dev] How to force homedir on enewuser Hanno Böck
2008-01-18 8:12 ` Marius Mauch
2008-01-18 11:41 ` Mike Frysinger
2008-01-18 11:51 ` Roy Marples [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1200657114.2500.1.camel@uberlaptop.marples.name \
--to=roy@marples.name \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox