Remove the console Script

Home Page Forums Network Management ZeroShell Remove the console Script

This topic contains 4 replies, has 0 voices, and was last updated by  Rover 8 years, 3 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #42887

    Rover
    Member

    is it possible to remove the script when you login over SSH as root.

    #51623

    atheling
    Member

    @rover wrote:

    is it possible to remove the script when you login over SSH as root.

    So that when you log in you are at a bash prompt?

    Get to the bash prompt via the default script menu then change the default shell to bash:


    root@zeroshell root> which bash
    /bin/bash
    root@zeroshell root> chsh -s /bin/bash admin

    Exit bash and log out. Now when you log in you will be directly in bash. This will last until you reboot the box.

    I do this so that I can use the FUSE ssh filesystem setup to mount my Zeroshell box for drag-and-drop access from my MacBook.

    #51624

    Rover
    Member

    hey, thanks, work fine.

    any change to make the configuration make permanent?
    because i wount lose the config after the reboot.

    #51625

    atheling
    Member

    @rover wrote:

    hey, thanks, work fine.

    any change to make the configuration make permanent?
    because i wount lose the config after the reboot.

    I suppose you could put the chsh command line into the post boot script on the UI.

    #51626

    Rover
    Member

    i tried to put the command in the rc.local, but didnt work out.

    any other idea? what about the preboot script where can i find it?

    #51627

    Rover
    Member

    i found a solution.

    I enabled the postboot script and set up the command in the rc.local.
    Now, it works fine.

    Thanks for the help….

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.