SSH does not display user or path for certain users

  • I created a non-root user for myself via the OMV workbench GUI, called spencer. Later, I enabled home directories.


    I have edited /etc/passwd to point to the proper user home folder:


    Code
    spencer:x:<USERID>:<GID>::<USER DIR PATH>/spencer:/bin/sh


    However, when I SSH in to the server as spencer, my terminal does not display the user or current working path. Additionally, I cannot tab to autocomplete paths, nor can I press the up arrow to access my command history.


    I presume this is a matter of missing bash settings, perhaps a .bashrc file? I know there is a "skeleton" at /etc/skel/.bashrc.


    My question is simply, what do I need to do to enable the conventional shell features I expect (displaying user and path, tab to autocomplete, command history, etc.)? If it involves the "skeleton" file, how is it recommended to use that file, and where do I put it? Is it just a matter of copying it somewhere?


    Thanks!

    • Official Post

    Try using bash for a shell before messing with the skel files. skel gives you a starting point by copying in files into a newly created user's home directory. After that, it is up to the user to customize the files based on their shell.

    omv 7.7.7-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0.2 | kvm 7.1.2 | compose 7.5.1 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.1


    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!

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!