Or you could try this:

export EDITOR=/usr/bin/gedit
vipw

Also, vipw doesn't seem to be installed by default on OpenSolaris, although
strangely the man page *is*. ;-)

Andrew.

On Sat, Aug 2, 2008 at 9:43 PM, Nicholas Senedzuk <
nicholas.senedzuk at gmail.com> wrote:

> If you edit the the password file while someone is logged in it is not
> going to cause any problems. The next time the person opens a shell then
> they will receive the new shell.
>
>
> Yes you can use gedit or something like that but you should really use
> vipw. The one thing with this is that it does require you to know VI to edit
> the file.
>
>
>
> On Sat, Aug 2, 2008 at 4:36 PM, andrew <andrum04 at gmail.com> wrote:
>
>> The default shell for each user is stored in the /etc/passwd file on the
>> end of each line. Change into single user mode (init S) then edit the passwd
>> file using vi (vi /etc/passwd and change it.
>>
>> That's the safe, recommended way to do it. If you like to live
>> dangerously, you can simply make sure you're the only person logged in and
>> do this in a terminal window:
>>
>> su
>> (enter root password)
>> gedit /etc/passwd &
>>
>> Then edit the passwd file in the Gnome text editor (gedit).
>>
>> Cheers
>>
>> Andrew.
>>
>>
>> This message posted from opensolaris.org
>> _______________________________________________
>> opensolaris-help mailing list
>> opensolaris-help at opensolaris.org
>>
>
>


-- 
Andrew Pattison
andrum04 at gmail dot com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://mail.opensolaris.org/pipermail/opensolaris-help/attachments/20080802/372959f5/attachment.html>

Reply via email to