Professional Web Applications Themes

changing default ssh shell? - Mac Applications & Software

How do I change the default shell that is executed when accessing my machine remotely via SSH? It seems there should be a preference file somewhere in XML I could edit directly, but I haven't found it. I want ssh to execute KSH and then an init (.profile, ..startup, rc, whatever) file upon logging in remotely. Any ideas? Mark...

  1. #1

    Default changing default ssh shell?

    How do I change the default shell that is executed
    when accessing my machine remotely via SSH?

    It seems there should be a preference file somewhere
    in XML I could edit directly, but I haven't found it.

    I want ssh to execute KSH and then an init (.profile,
    ..startup, rc, whatever) file upon logging in remotely.

    Any ideas?

    Mark
    G. Guest

  2. #2

    Default Re: changing default ssh shell?

    In article <google.com>,
    G. Mark Stewart <com> wrote: 

    Your shell is set in Netinfo Manager, under users/<you>/shell. Just edit
    that, and Bob's your uncle.

    --
    /* _ */main(int k,char**n){char*i=k&1?"+L*;99,RU[,RUo+BeKAA+BECACJ+CAACA"
    /* / ` */"CD+LBCACJ*":1[n],j,l=!k,m;do for(m=*i-48,j=l?m/k:m%k;m>>7?k=1<<m+
    /* | */8,!l&&puts(&l)**&l:j--;printf(" \0_/"+l));while((l^=3)||l[++i]);
    /* \_,hris Brown -- All opinions expressed are probably wrong. */return 0;}
    Chris Guest

  3. #3

    Default Re: changing default ssh shell?

    ["Followup-To:" header set to comp.sys.mac.apps.]
    On 2003-10-10, G. Mark Stewart <com> wrote: 

    If you don't provide a command to execute, ssh does an ordinary login
    to the machine you're connecting to. In this case, since you're
    connecting to an osx machine, an ordinary login means that the shell
    is selected according to the settings in the NetInfo data for your
    account. You can change it there, but this will of course apply to
    every login, not just when you connect via ssh.

    If you want a specific shell only when you connect through ssh, you'll
    have to provide it on the command line, eg 'ssh somehost ksh'.



    Hugh Guest

  4. #4

    Default Re: changing default ssh shell?

    Hugh Wolf <lieder.de> wrote in message news:<rgwhb.534358$cF.206231rwcrnsc53>... 
    >
    > If you don't provide a command to execute, ssh does an ordinary login
    > to the machine you're connecting to. In this case, since you're[/ref]


    Thanks, folks!

    One question tho', Hugh -- I assume by "ordinary login" you're
    referring to the default system shell (usually bourne shell -- I
    guess it's bash on OS X). So, fi that's the case, why doesn't
    it execute my .profile, as bourne shell normally would? And
    doesn't bash look through a hierarchy of filenames, including
    ..profile?

    Thanks again!

    Mark
    G. Guest

  5. #5

    Default Re: changing default ssh shell?

    On 11 Oct 2003 14:04:43 -0700, G. Mark Stewart wrote: 
    >>
    >> If you don't provide a command to execute, ssh does an ordinary login
    >> to the machine you're connecting to. In this case, since you're[/ref][/ref]

     
     

    The default login shell for OS X is tcsh, which looks for startup
    commands in the files .tcshrc and .login, not .profile.

    If you are unsure what your login shell is, you can either open NetInfo
    Manager or go to a Terminal window and type "echo $SHELL".

    However, I have heard that the default under Panther will change to bash.

    --
    Dave Seaman
    Judge Yohn's mistakes revealed in Mumia Abu-Jamal ruling.
    <http://www.commoncouragepress.com/index.cfm?action=book&bookid=228>
    Dave Guest

  6. #6

    Default Re: changing default ssh shell?

    ["Followup-To:" header set to comp.sys.mac.apps.]
    On 2003-10-11, G. Mark Stewart <com> wrote: 

    No, I was referring to ordinary login :) As in /usr/bin/login. Open
    a Terminal window with the preferences set to "default login shell"
    and you'll see what I mean. Or login graphically as >console.

    The choice of shell is user-specific. You can set it to whatever you
    like by editing your NetInfo entry. Ordinary login will run the shell
    you choose.


     

    In 10.0-10.2, the default shell is tcsh. In fact OSX didn't even
    include bash in early releases.


     

    I'm guessing you now understand why.


     

    I don't think Apple modifies the sources uses to build shells. From
    what I can see, shells in osx behave exactly as they do in, say,
    linux.







    Hugh Guest

  7. #7

    Default Re: changing default ssh shell?

    In comp.sys.mac.apps Hugh Wolf <lieder.de> wrote: 

    I'm using ksh93 for Mac OSX from http://www.research.att.com/sw/download
    as my default shell. Everyone knows that ksh is the only TRUE shell :-)
    Anyway, I changed my default shell in NetInfo to use ksh93. and I set my
    Terminal preferences to execute my default shell using /usr/bin/login.

    My .profile and .kshrc are executed properly.

    regards
    --
    John J. Rushford
    j j r { a t } a l i s a { d o t } o r g
    http://www.cs.du.edu/~jjr
    read-the-signature@send-spam-to-dev-null.com Guest

Similar Threads

  1. changing default browse4r
    By akolaczy in forum Macromedia Contribute General Discussion
    Replies: 0
    Last Post: March 10th, 01:20 PM
  2. Changing Log On of MX invokes jrunsvc.exe shell
    By schep in forum Coldfusion Database Access
    Replies: 0
    Last Post: February 9th, 10:27 PM
  3. Changing the default black
    By abbottt@adobeforums.com in forum Adobe Photoshop Mac CS, CS2 & CS3
    Replies: 3
    Last Post: April 7th, 04:40 AM
  4. Changing default browser
    By Tamara T in forum Adobe Photoshop Elements
    Replies: 2
    Last Post: September 21st, 02:25 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139