> From: John Lewis [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, 26 August 2001 9:13 PM
> Subject: RE: [e-smith-devinfo] E-Smith and cd-record
>
>
> The easiest way is to edit the /etc/passwd file.
>
>       pico /etc/passwd

It is normally considered a bad thing to attempt to edit the passwd file
directly whilst you are in a multiuser mode, but you should use vipw as it
performs the necessary locking etc.

Note that whilst vipw is active no other program will be permitted to edit
the passwd file.

> A typical user's line will look like this:
>
>       isoadmin:x:5003:5003:ISO
> Admin:/home/e-smith/files/users/isoadmin:/bin/sshell
>
> Edit the last section (the shell directive) to have the following:

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.

> 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.

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

Rob.


--
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