외부 저장 장치가 루트가 아닌 로그인한 udisks2
( udisksd
service myuser`를 통해 /run/media/myuser/에 성공적으로 마운트되었습니다.). I can read data from devices. However I can NOT write to them. I'm trying to edit directory ACLs in order to get write permissions for regular
기본 권한은 다음과 같습니다.
getfacl /run/media
getfacl: Removing leading '/' from absolute path names
# file: run/media
# owner: root
# group: root
user::rwx
group::r-x
mask::r-x
other::r-x
getfacl /run/media/myuser
getfacl: Removing leading '/' from absolute path names # file: run/media/myuser
# owner: root
# group: root
user::rwx
group::---
mask::---
other::---
getfacl /run/media/myuser/mydisk
getfacl: Removing leading '/' from absolute path names
# file: run/media/myuser/mydisk
# owner: myuser
# group: myuser
user::rwx
group::---
other::---
위의 기본 설정으로 인해 마운트된 장치에 데이터를 쓸 수 없습니다 /run/media/mydisk
. /run/media/myuser 디렉토리에 대해 myuser에게 쓰기 acl 권한을 추가해 보았습니다.
getfacl /run/media/myuser
getfacl: Removing leading '/' from absolute path names
# file: run/media/myuser
# owner: root
# group: root
user::rwx
user:myuser:rwx
group::---
mask::rwx
other::---
그러나 이것은 아무것도 바꾸지 않습니다.
Sudoleved를 사용해도 마운트된 장치에 데이터를 쓸 수 없습니다 myuser
. 마운트된 장치에 데이터를 쓸 수 있도록 이 문제를 어떻게 해결해야 합니까?
Linux myuser 4.11.9-1-ARCH #1 SMP PREEMPT 수요일 7월 5일 18:23:08 CEST 2017 2017 x86_64 GNU/Linux
systemctl status udisks2
● udisks2.service - Disk Manager
Loaded: loaded (/usr/lib/systemd/system/udisks2.service; disabled; vendor preset: disabled)
Active: active (running) since Tue 2017-07-18 01:32:51 CEST; 11min ago
Docs: man:udisks(8)
Main PID: 549 (udisksd)
Tasks: 5 (limit: 4915)
CGroup: /system.slice/udisks2.service
└─549 /usr/lib/udisks2/udisksd
Jul 18 01:32:51 myuser systemd[1]: Starting Disk Manager...
Jul 18 01:32:51 myuser udisksd[549]: udisks daemon version 2.7.0 starting
Jul 18 01:32:51 myuser udisksd[549]: Acquired the name org.freedesktop.UDisks2 on the system message bus
Jul 18 01:32:51 myuser systemd[1]: Started Disk Manager.
Jul 18 01:32:52 myuser udisksd[549]: g_variant_new_string: assertion 'string != NULL' failed
Jul 18 01:32:52 myuser udisksd[549]: Mounted /dev/sdd1 at /run/media/myuser/mydisk on behalf of uid 1000