[wplug] ssh and shell in Mac OS X

Paul lupey+ at pitt.edu
Wed Nov 6 16:13:22 EST 2002


hello,

Sorry but this is not a Linux specific question but pertains to the Unix
structure of the Macintosh OS X system.

I can ssh into my Mac machine but it provides me with the default tcsh
shell. I want to use bash. I solved (cumbersome at best) this by putting
"bash --login" in my ~/.tcshrc file. I thought about altering
/etc/passwd to specify my shell (bash) but I'm not sure how it works on
the Mac. My username is "lupey" but that account does not appear in
/etc/passwd:

nobody:*:-2:-2:Unprivileged User:/nohome:/noshell
root:*:0:0:System Administrator:/var/root:/bin/tcsh
daemon:*:1:1:System Services:/var/root:/noshell
smmsp:*:25:25:Sendmail User:/private/etc/mail:/noshell
www:*:70:70:World Wide Web Server:/Library/WebServer:/noshell
mysql:*:74:74:MySQL Server:/nohome:/noshell
sshd:*:75:75:sshd Privilege separation:/var/empty:/noshell
unknown:*:99:99:Unknown User:/nohome:/noshell

Can I manually put the user "lupey" into /etc/passwd? How else can I
tell sshd to provide me with a bash shell at login?

Thank you for your help,

Paul
University of Pittsburgh




More information about the wplug mailing list