rclone service

hi I make rclone service to automount cloud drive but I only can view directory as root how can i fix it? thanks.Permission problem :thinking:

[Unit]
Description=Yadex nube
After=syslog.target network-online.target

[Service]
Type=simple
ExecStartPre=/bin/mkdir -p /mnt/nube/yadex
ExecStart=rclone mount yadex: /mnt/nube/yadex --config /home/dietpi/.config/rclone/rclone.conf --checkers 16 --dir-cache-time 30m --quiet
ExecStop=fusermount -uz /mnt/nube/yadex
Restart=on-abort

[Install]
WantedBy=multi-user.target

which directory you like to look into and which user you are trying to use? Some more information might be helpful.

If I login as root I can view /mnt/nube/yadex , service mounts. But with dietpi user I can`t.

dietpi@DietPi:~$ ls /mnt/nube/yadex
ls: cannot access '/mnt/nube/yadex': Permission denied



dietpi@DietPi:~$ df
Filesystem     1K-blocks     Used Available Use% Mounted on
/dev/root       30481256  6426376  22791572  22% /
devtmpfs          211556        0    211556   0% /dev
tmpfs             244536        0    244536   0% /dev/shm
tmpfs              97816     5168     92648   6% /run
tmpfs               5120        0      5120   0% /run/lock
/dev/mmcblk0p1    258095    50698    207398  20% /boot
/dev/sda1      114854020 33756016  81081620  30% /mnt/ssd
tmpfs            1048576       12   1048564   1% /tmp
tmpfs              51200       12     51188   1% /var/log

Same command but with root login mounted: :face_with_raised_eyebrow:

root@DietPi:~# df
Filesystem     1K-blocks     Used Available Use% Mounted on
/dev/root       30481256  6426376  22791572  22% /
devtmpfs          211556        0    211556   0% /dev
tmpfs             244536        0    244536   0% /dev/shm
tmpfs              97816     5168     92648   6% /run
tmpfs               5120        0      5120   0% /run/lock
/dev/mmcblk0p1    258095    50698    207398  20% /boot
/dev/sda1      114854020 33756016  81081620  30% /mnt/ssd
tmpfs            1048576       12   1048564   1% /tmp
tmpfs              51200       12     51188   1% /var/log
yadex:          10485760  1370792   9114968  14% /mnt/nube/yadex

can you share following

ls -la/mnt/nube/yadex
lsblk -o name,fstype,label,size,ro,type,mountpoint,partuuid,uuid
root@DietPi:/mnt/nube/yadex# lsblk -o name,fstype,label,size,ro,type,mountpoint,partuuid,uuid
NAME        FSTYPE LABEL    SIZE RO TYPE MOUNTPOINT PARTUUID                             UUID
sda                       111.8G  0 disk                                                 
└─sda1      ext4          111.8G  0 part /mnt/ssd   27c7e151-d63c-477a-b3ab-4e3d88807129 2bc7352b-cb07-4f62-b5c7-05be525189e7
mmcblk0                    29.8G  0 disk                                                 
├─mmcblk0p1 vfat   boot     256M  0 part /boot      2fed7fee-01                          592B-C92C
└─mmcblk0p2 ext4   rootfs  29.6G  0 part /          2fed7fee-02                          706944a6-7d0f-4a45-9f8c-7fb07375e9f7
root@DietPi:/mnt/nube/yadex# df
Filesystem     1K-blocks     Used Available Use% Mounted on
/dev/root       30481256  6327136  22890812  22% /
devtmpfs          211556        0    211556   0% /dev
tmpfs             244536        0    244536   0% /dev/shm
tmpfs              97816    11288     86528  12% /run
tmpfs               5120        0      5120   0% /run/lock
/dev/mmcblk0p1    258095    50698    207398  20% /boot
/dev/sda1      114854020 33756016  81081620  30% /mnt/ssd
tmpfs            1048576       12   1048564   1% /tmp
tmpfs              51200        8     51192   1% /var/log
yadex:          10485760  1370792   9114968  14% /mnt/nube/yadex
root@DietPi:/mnt/nube/yadex# lsblk -o name,fstype,label,size,ro,type,mountpoint,partuuid,uuid /mnt/nube/yadex
lsblk: /mnt/nube/yadex: not a block device/code]

sorry there was a typo. pls can you share

ls -la /mnt/nube/yadex
root@DietPi:~# ls -la /mnt/nube/yadex
total 4
drwxr-xr-x 1 root root    0 Nov 28 11:59  .
drwxr-xr-x 5 root root 4096 Nov 24 17:41  ..
drwxr-xr-x 1 root root    0 Feb  7  2021 'apk android'
drwxr-xr-x 1 root root    0 Apr  1  2021  compartido
drwxr-xr-x 1 root root    0 Feb  9  2021  kodi
drwxr-xr-x 1 root root    0 Mar  7  2021  recordings

as you can see, all files/folders are owned by user root. Means root is the only one who is able to access the files. You would need to change permission if you like other users to access the files. But honestly I’m not 100% sure how these yadex file system is working.

hi I fix it the problem, missing mount parameter. If I can help somebody. Solution:
add –allow-other

ExecStart=rclone mount yadex: /mnt/nube/yandex --config /home/dietpi/.config/rclone/rclone.conf --checkers 16 --dir-cache-time 30m --allow-other --quiet