Shell Limitations?

  • I'm a new user of Openmediavault, installed as a complete image. I created a normal user with Bash as the shell for that user, set up SSH access and I'm wondering why the shell has so many limitations. No retained command history and no tab completion for filenames or paths in particular. Is there any way to upgrade the Bash or shell access in general to give me a decent Linux shell?

  • KM0201

    Hat das Thema freigeschaltet.
    • Offizieller Beitrag

    I'm a new user of Openmediavault, installed as a complete image. I created a normal user with Bash as the shell for that user, set up SSH access and I'm wondering why the shell has so many limitations. No retained command history and no tab completion for filenames or paths in particular. Is there any way to upgrade the Bash or shell access in general to give me a decent Linux shell?

    When you set up your user (which I assume you used the webUI for)... which shell did you set in the user setup? I believe the default you're describing, is /bin/sh (and you're right it's pretty useless IMO). votdev I've wondered for a while, is there any way to make /bin/bash default? I've dealt with this problem a lot in discord. Probably more of a feature request than a bug.


    Go back to the user settings, edit yoru user, and change the shell to /bin/bash then save and apply.


    Log out of SSH then SSH back in.


    That's probably what you're looking for.


    • Offizieller Beitrag

    Did you set a home directory?

    this can also be a cause.. but even w/o a home directory, /bin/bash works as expected (only thing I can recall when a home directory is not set.. is you cannot just hit "cd" and hit enter, and clear the prompt)... I'm willing to bet what he is describing is /bin/sh

    • Offizieller Beitrag

    When no home directory is set and/or it doesn't exist, you will have no shell history and other things will not work.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.6 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Offizieller Beitrag

    When no home directory is set and/or it doesn't exist, you will have no shell history and other things will not work.

    Hmm, I never remember the history, but I'm guessing you're right on that now that I think about it.


    Generally speaking in this situation, I've usually foud auto-complete still works.

    • Offizieller Beitrag

    I never remember the history, but I'm guessing you're right on that now that I think about it.

    I run into this all the time at work on systems without home directories. You never use the up arrow key to go thru the history to avoid retyping commands you recently typed? Or the history command?

    Generally speaking in this situation, I've usually foud auto-complete still works.

    auto-complete should still work depending on the shell. bash works.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.6 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Offizieller Beitrag

    I run into this all the time at work on systems without home directories. You never use the up arrow key to go thru the history to avoid retyping commands you recently typed? Or the history command?

    auto-complete should still work depending on the shell. bash works.

    No, I do use it all the time (but I also set home directories)... I was saying I don't remember that not working.. but when you think about it, it makes sense in this scenario that it doesn't

    • Offizieller Beitrag

    When the home directory doesn't exist, the user gets dropped in /. The user doesn't have permissions to write .bash_history and therefore no history. It also can't write the file to a path that doesn't exist.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.6 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • When the home directory doesn't exist, the user gets dropped in /. The user doesn't have permissions to write .bash_history and therefore no history. It also can't write the file to a path that doesn't exist.

    OK, I seem to be lacking a home directory. The GUI doesn't seem to have a way to do that, and of course a regular Linux OS does that by default when to add a user. Guess I'll have to figure out how to do that with OMV.


    OK, I figured that out.

    Einmal editiert, zuletzt von stevewnj () aus folgendem Grund: Updating my progress.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!