On 6/17/05, wyzemoro <[EMAIL PROTECTED]> wrote:
> manually... change the line at /etc/passwd .../bin/bash to /bin/false
> after adding a username.

Hi,

Use vipw instead. It was specifically designed to both lock
/etc/passwd and /etc/shadow file while you are editing it. That way,
there is no corruption since you are the only one who have access to
both files.

vipw defaults to vi editor. You can change it by setting the VISUAL
environment variable to other editors. Example on the CLI:

$ VISUAL=joe ; export VISUAL ; vipw

Get the hang of it, almost all *nix have this utility.

regards,
Andre
_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
[email protected] (#PLUG @ irc.free.net.ph)
Read the Guidelines: http://linux.org.ph/lists
Searchable Archives: http://archives.free.net.ph

Reply via email to