Re: Changing Default Shell
chsh Samuel Martín Moro CamTrace {EPITECH.} tek4 Nobody wants to say how this works. Maybe nobody knows ... Xorg.conf(5) On Fri, Feb 26, 2010 at 5:41 AM, mikel king mikel.k...@olivent.com wrote: On Feb 25, 2010, at 9:57 PM, Roger Campbell wrote: Lowell Gilbert, I would like to thank you for your posting about changing the default shell. I was running in circles until I found your post suggestion vipw. Roger Roger, You can also use pw. pw usermod rcampbell -s /bin/tcsh Regards, Mikel King CEO, Olivent Technologies Senior Editor, BSD News Network Columnist, BSD Magazine 6 Alpine Court, Medford, NY 11763 o: 631.627.3055 c: 631.796.1499 skype:mikel.king http://olivent.com http://www.linkedin.com/in/mikelking http://twitter.com/mikelking ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Changing Default Shell
Lowell Gilbert, I would like to thank you for your posting about changing the default shell. I was running in circles until I found your post suggestion vipw. Roger ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Changing Default Shell
On Feb 25, 2010, at 9:57 PM, Roger Campbell wrote: Lowell Gilbert, I would like to thank you for your posting about changing the default shell. I was running in circles until I found your post suggestion vipw. Roger Roger, You can also use pw. pw usermod rcampbell -s /bin/tcsh Regards, Mikel King CEO, Olivent Technologies Senior Editor, BSD News Network Columnist, BSD Magazine 6 Alpine Court, Medford, NY 11763 o: 631.627.3055 c: 631.796.1499 skype:mikel.king http://olivent.com http://www.linkedin.com/in/mikelking http://twitter.com/mikelking ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Changing Default Shell
I'm running freeBSD 6 release (FreeBSD taurus.cruz 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Mon Jan 2 01:42:42 EST 2006 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/FILESERV i386) and for whatever reason, i'm stuck in bourne. Sure, I can type bash and open a new shell that way, but it will not let me change the default at all :( I've tried bin, csh, and tsch, all with the same result: invalid argument. Here are my shells (from /etc/shells) /bin/sh /bin/csh /bin/tcsh /usr/local/bin/bash I try to run chsh with flags, and I get this: $ chsh -s /usr/local/bin/bash Password: chsh: entry inconsistent chsh: pw_copy: Invalid argument I try to run without flags,and it gives me /etc/pw.ej2LjB: 7 lines, 150 characters. Password: chsh: entry inconsistent chsh: pw_copy: Invalid argument Any help on this is much appreciated. -John ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Changing Default Shell
John Cruz [EMAIL PROTECTED] writes: I'm running freeBSD 6 release (FreeBSD taurus.cruz 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Mon Jan 2 01:42:42 EST 2006 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/FILESERV i386) and for whatever reason, i'm stuck in bourne. Sure, I can type bash and open a new shell that way, but it will not let me change the default at all :( I've tried bin, csh, and tsch, all with the same result: invalid argument. Here are my shells (from /etc/shells) /bin/sh /bin/csh /bin/tcsh /usr/local/bin/bash I try to run chsh with flags, and I get this: $ chsh -s /usr/local/bin/bash Password: chsh: entry inconsistent chsh: pw_copy: Invalid argument I try to run without flags,and it gives me /etc/pw.ej2LjB: 7 lines, 150 characters. Password: chsh: entry inconsistent chsh: pw_copy: Invalid argument Any help on this is much appreciated. Something is wrong with the entry already in the password file. Use vipw to (a) look at it, (b) fix it, and (c) rebuild the database. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Changing Default Shell
Lowell Gilbert wrote: Something is wrong with the entry already in the password file. Use vipw to (a) look at it, (b) fix it, and (c) rebuild the database. Thanks, that did it! I tried manually editing /etc/passwd before and I guess there's other ways that have to be done to change it. -John ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Changing Default Shell
John Cruz wrote: Lowell Gilbert wrote: Something is wrong with the entry already in the password file. Use vipw to (a) look at it, (b) fix it, and (c) rebuild the database. Thanks, that did it! I tried manually editing /etc/passwd before and I guess there's other ways that have to be done to change it. If you edit the passwd file manually you should always use vipw. Apart from locking which prevents two people editing at the same time and mucking things up, you also get consistency checking. from man vipw The vipw utility performs a number of consistency checks on the password entries, and will not allow a password file with a ``mangled'' entry to be installed. If vipw rejects the new password file, the user is prompted to re-enter the edit session. --Alex ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]