User Permission SSH

  • Hi,


    I believe its best practice to remove root from SSH login for security purposes.


    As a result, I have set up a new user with groups - docker, root, users, sambashare, ssh, sudo.


    When I log into my system through putty with this username, the command line always has a fixed $ when using cd making it confusing where I am in the folder structure unlike when logging with root, which shows where you are in the folder structure - it there a way to have this with my user?

    • Official Post

    As a result, I have set up a new user with groups - docker, root, users, sambashare, ssh, sudo.


    There are zero reasons to add any user to the root group.


    When I log into my system through putty with this username, the command line always has a fixed $ when using cd making it confusing where I am in the folder structure unlike when logging with root, which shows where you are in the folder structure - it there a way to have this with my user?

    You need a home directory setup to store a .profile.

    omv 8.1.1-1 synchrony | 6.17 proxmox kernel

    plugins :: omvextrasorg 8.0.2 | kvm 8.0.7 | compose 8.1.5 | cterm 8.0 | borgbackup 8.1.7 | cputemp 8.0 | mergerfs 8.0 | scripts 8.0.1 | writecache 8.1.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!

    • Official Post

    Go to the Users - > Settings tab. enable and pick a shared folder. If you want to use the user you already have, you will have to change the home directory of that user. Otherwise, create a new user.

    omv 8.1.1-1 synchrony | 6.17 proxmox kernel

    plugins :: omvextrasorg 8.0.2 | kvm 8.0.7 | compose 8.1.5 | cterm 8.0 | borgbackup 8.1.7 | cputemp 8.0 | mergerfs 8.0 | scripts 8.0.1 | writecache 8.1.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!

    • Official Post

    Look at the usermod command.

    omv 8.1.1-1 synchrony | 6.17 proxmox kernel

    plugins :: omvextrasorg 8.0.2 | kvm 8.0.7 | compose 8.1.5 | cterm 8.0 | borgbackup 8.1.7 | cputemp 8.0 | mergerfs 8.0 | scripts 8.0.1 | writecache 8.1.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!