You are not logged in.

#1 2019-09-30 09:10:18

URemery
Member
Registered: 2019-09-30
Posts: 14

Non root user write permission on auto-mounted usb drive

Hi,

I want to backup my data periodically on an external drive. So I created a systemd service (launched by a systemd timer) which uses rsync to do the job.
Unfortunately, rsync can't write on my usb drive because non-root users don't have write permission on auto-mounted drives.

It might be unsafe to just put a "sudo" in front of the rsync command so is there a way to configure Udisks2 so that a non-root user can write on an auto-mounte drive ?

This is my first post here, hopefully no mistakes were made haha. Thanks in advance,

Ugo

Offline

#2 2019-09-30 10:03:55

sabroad
Member
Registered: 2015-05-24
Posts: 242

Re: Non root user write permission on auto-mounted usb drive

If this is ext4, then the filesystem itself will have permissions control, in which case you need to use chown.


--
saint_abroad

Offline

#3 2019-09-30 14:49:28

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,701

Re: Non root user write permission on auto-mounted usb drive

Welcome to the Arch Linux Forums.

How are you "auto-mounting" the drive?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB