On Mon, Aug 27, 2001 at 05:40:01AM +0930, Rob Adams <[EMAIL PROTECTED]> wrote:
> > From: John Lewis [mailto:[EMAIL PROTECTED]]
> [...]
> 
> Take a look at the chsh command, it does exactly what you are trying to do
> here, and does all the necessary file locking etc also.

Yep. Always use chsh and usermod, and vipw as a last resort. Locking in
/etc/passwd is very important.

> > You could also alter the default home directory for the account so that it
> > defaults to the ibay:
> >
> >     isoadmin:x:5003:5003:ISO
> > Admin:/home/e-smith/files/ibays/iso:/bin/bash
> 
> Hmmm cant think of any utils to do this, so you may need to use vipw after
> all.

usermod -d {newdir} -m

> NB: watch out for theose ':' characters, they are important.

Even better, just use the tools available to manage /etc/passwd and friends.

Gordon
--
  Gordon Rowell                        [EMAIL PROTECTED]
  VP Engineering
  Network Server Solutions Group       http://www.e-smith.com
  Mitel Networks Corporation           http://www.mitel.com


--
Please report bugs to [EMAIL PROTECTED]
Please mail [EMAIL PROTECTED] (only) to discuss security issues
Support for registered customers and partners to [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Archives by mail and http://www.mail-archive.com/devinfo%40lists.e-smith.org

Reply via email to