SFTP acccess denied?

  • Hello

    I want to use SFTP to access external to my OMV shared folders

    Open ports 2222 and use it on OMV (not 22)

    REdirect external port on router from 2222 to 2222 internal



    Now, two options (with two problems)

    - with native OMV SFTP can only login with root user and see root folder. When try to connect with other users (with diferent shared folders) alwas say access denied... Why?


    - with SFTP plugin i create sftp-group and sftp-user, add to group and grant 755 chmod to sftpshared (owner root, group users). When create shared folder on SFTP plugin say:

    Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; omv-salt deploy run --no-color fstab 2>&1' with exit code '1': wdnas.technicolor.net: ---------- ID: create_filesystem_mountpoint_e56acdfa-4619-46ce-9249-c4b1d8e3415e Function: file.accumulated Result: True Comment: Accumulator create_filesystem_mountpoint_e56acdfa-4619-46ce-9249-c4b1d8e3415e for file /etc/fstab was charged by text Started: 00:46:13.396742 Duration: 3.762 ms Changes: ---------- ID: mount_filesystem_mountpoint_e56acdfa-4619-46ce-9249-c4b1d8e3415e Function: mount.mounted Name: /mnt/data Result: True Comment: Target was already mounted Started: 00:46:13.403897 Duration: 680.924 ms Changes: ---------- umount: Forced remount because options (user_xattr) changed ---------- ID: create_remotemount_mountpoint_12c74102-be61-4e94-aa5c-2dc2954f5fe9 Function: file.accumulated Result: True Comment: Accumulator create_remotemount_mountpoint_12c74102-be61-4e94-aa5c-2dc2954f5fe9 for file /etc/fstab was charged by text Started: 00:46:14.085815 Duration: 6.187 ms Changes: ---------- ID: mount_filesystem_mountpoint_12c74102-be61-4e94-aa5c-2dc2954f5fe9 Function: mount.mounted Name: /srv/12c74102-be61-4e94-aa5c-2dc2954f5fe9 Result: False Comment: mount error: could not resolve address for CASCOSPC: Unknown error Started: 00:46:14.092750 Duration: 179.423 ms Changes: ---------- ID: create_sftp_mountpoint_f34fb58c-960f-4a80-8e3a-5f2a13e111d3 Function: file.accumulated Result: True Comment: Accumulator create_sftp_mountpoint_f34fb58c-960f-4a80-8e3a-5f2a13e111d3 for file /etc/fstab was charged by text Started: 00:46:14.273328 Duration: 5.528 ms Changes: ---------- ID: mount_sftp_mountpoint_f34fb58c-960f-4a80-8e3a-5f2a13e111d3 Function: mount.mounted Name: /sftp/systemsftp/sftpshared Result: True Comment: Target was already mounted Started: 00:46:14.279633 Duration: 62.104 ms Changes: ---------- ID: append_fstab_entries Function: file.blockreplace Name: /etc/fstab Result: True Comment: No changes needed to be made Started: 00:46:14.351727 Duration: 24.598 ms Changes: Summary for wdnas.technicolor.net ------------ Succeeded: 6 (changed=1) Failed: 1 ------------ Total states run: 7 Total run time: 962.526 ms


    Any help '

    Thx

Jetzt mitmachen!

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