Systemd for mount remote just for root

Hi.
Im using this files to automount the remote, and the auto mount is working except that is only available to the root user. How i can make this work with my user?

sudo cat /etc/systemd/system/mnt-data.automount           

[Unit]
After=network-online.target
[Automount]
Where=/mnt/data
TimeoutIdleSec=600
[Install]
WantedBy=multi-user.target
sudo cat /etc/systemd/system/mnt-data.mount         
[Unit]
After=network-online.target
[Mount]
Type=rclone
What=encriptado:
Where=/mnt/data
Options=vfs-cache-mode=full,config=/home/panchines/.config/rclone/rclone.conf

Example of how is working:

cd /mnt/data/                                                   
cd: permiso denegado: /mnt/data/

("permiso denegado" meaning you cant access)

if i make root i can enter:

sudo su                    
[sudo] contraseƱa para panchines: 
[nueva-exo panchines]# cd /mnt/data/
[nueva-exo data]#

Thanks!

You need to add:

      --allow-other                            Allow access to other users (not supported on Windows)

Sorry, for not open a new post:
i cant put other location? because i try to put this location:

/home/panchines/gdrive

And replace the two "Where=" related but is not working if i put that location.
The gdrive have 755 permissions.
Thanks!

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.