Skip to content

Set timestamps with another user not allowed #8521

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
cberni opened this issue Apr 22, 2025 · 0 comments
Open

Set timestamps with another user not allowed #8521

cberni opened this issue Apr 22, 2025 · 0 comments

Comments

@cberni
Copy link

cberni commented Apr 22, 2025

What is the problem you are having with rclone?

RCLONE_UID=557 ('pacs' user)
RCLONE_GID=557 ('pacs' user)
sudo -u pacs touch -d "2020-01-01 00:00:00" /union/pacs-user.txt
(runs ok)

sudo -u tomcat touch -d "2020-01-01 00:00:00" /union/tomcat-user.txt
touch: setting times of '/union/tomcat-user.txt': Operation not permitted

We're encountering some issues when another user tries to set file timestamps.

In this case, the filesystem is mounted as 'pacs', and the issue occurs when attempting to create a file as the 'tomcat' user.

Run the command 'rclone version' and share the full output of the command.

rclone v1.69.1
- os/version: ubuntu 24.04 (64 bit)
- os/kernel: 6.8.0-1023-oracle (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.24.0
- go/linking: static
- go/tags: none

Which cloud storage system are you using? (eg Google Drive)

google cloud storage

The command you were trying to run (eg rclone copy /tmp remote:tmp)

/usr/bin/rclone mount union: /union --union-upstreams /local:writeback remote:bucket --log-file=/var/log/animati/union/mount-rclone.log -vvv --allow-other --default-permissions --use-mmap --disable-http2 --rc

The rclone config contents with secrets removed.

[union]
type = union
action_policy = all
create_policy = all
search_policy = ff

[remote]
type = google cloud storage
service_account_file = bucket.json
no_check_bucket = true

A log from the command with the -vv flag

2025/04/11 18:00:07 DEBUG : /union: Unmounted externally. Just exit now.
2025/04/11 18:00:07 DEBUG : rclone: Version "v1.69.1" finishing with parameters ["/usr/bin/rclone" "mount" "union:" "/union" "--union-upstreams" "/local:writeback remote:bucket" "--log-file=/mount-rclone.log" "-vv" "--allow-other" "--default-permissions" "--use-mmap" "--disable-http2" "--rc"]
2025/04/11 18:00:07 DEBUG : rclone: Version "v1.69.1" starting with parameters ["/usr/bin/rclone" "mount" "union:" "/union" "--union-upstreams" "/local:writeback remote:bucket" "--log-file=/mount-rclone.log" "-vv" "--allow-other" "--default-permissions" "--use-mmap" "--disable-http2" "--rc"]
2025/04/11 18:00:07 NOTICE: Serving remote control on http://127.0.0.1:5572/
2025/04/11 18:00:07 DEBUG : Creating backend with remote "union:"
2025/04/11 18:00:07 DEBUG : Using config file from "/rclone.conf"
2025/04/11 18:00:07 DEBUG : union: detected overridden config - adding "{_4qF1}" suffix to name
2025/04/11 18:00:07 DEBUG : Creating backend with remote "/local"
2025/04/11 18:00:07 DEBUG : Creating backend with remote "remote:bucket"
2025/04/11 18:00:07 DEBUG : union root '': actionPolicy = *policy.All, createPolicy = *policy.All, searchPolicy = *policy.FF
2025/04/11 18:00:07 DEBUG : fs cache: renaming cache item "union:" to be canonical "union{_4qF1}:"
2025/04/11 18:00:07 INFO  : union root '': poll-interval is not supported by this remote
2025/04/11 18:00:07 DEBUG : union root '': vfs cache: root is "/rclone"
2025/04/11 18:00:07 DEBUG : union root '': vfs cache: data root is "/rclone/vfs/union{_4qF1}"
2025/04/11 18:00:07 DEBUG : union root '': vfs cache: metadata root is "/rclone/vfsMeta/union{_4qF1}"
2025/04/11 18:00:07 DEBUG : Creating backend with remote ":local,encoding='Slash,Dot',links=false:/rclone/vfs/union{_4qF1}/"
2025/04/11 18:00:07 DEBUG : :local: detected overridden config - adding "{8un-i}" suffix to name
2025/04/11 18:00:07 DEBUG : fs cache: renaming cache item ":local,encoding='Slash,Dot',links=false:/rclone/vfs/union{_4qF1}/" to be canonical ":local{8un-i}:/rclone/vfs/union{_4qF1}"
2025/04/11 18:00:07 DEBUG : Creating backend with remote ":local,encoding='Slash,Dot',links=false:/rclone/vfsMeta/union{_4qF1}/"
2025/04/11 18:00:07 DEBUG : :local: detected overridden config - adding "{8un-i}" suffix to name
2025/04/11 18:00:07 DEBUG : fs cache: renaming cache item ":local,encoding='Slash,Dot',links=false:/rclone/vfsMeta/union{_4qF1}/" to be canonical ":local{8un-i}:/rclone/vfsMeta/union{_4qF1}"
2025/04/11 18:00:07 INFO  : union root '': vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0)
2025/04/11 18:00:07 DEBUG : union root '': Mounting on "/union"
2025/04/11 18:00:07 DEBUG : : Root:
2025/04/11 18:00:07 DEBUG : : >Root: node=/, err=<nil>
2025/04/11 18:00:16 DEBUG : /: Attr:
2025/04/11 18:00:16 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2025/04/11 18:00:16 DEBUG : /: Lookup: name="tomcat-user.txt"
2025/04/11 18:00:17 DEBUG : /: >Lookup: node=tomcat-user.txt, err=<nil>
2025/04/11 18:00:17 DEBUG : tomcat-user.txt: Attr:
2025/04/11 18:00:17 DEBUG : tomcat-user.txt: >Attr: a=valid=1s ino=0 size=0 mode=-rw-rw-r--, err=<nil>
2025/04/11 18:00:17 DEBUG : tomcat-user.txt: Open: flags=OpenWriteOnly+OpenNonblock
2025/04/11 18:00:17 DEBUG : tomcat-user.txt: Open: flags=O_WRONLY|0x800
2025/04/11 18:00:17 DEBUG : tomcat-user.txt: newRWFileHandle:
2025/04/11 18:00:17 DEBUG : tomcat-user.txt: >newRWFileHandle: err=<nil>
2025/04/11 18:00:17 DEBUG : tomcat-user.txt: >Open: fd=tomcat-user.txt (rw), err=<nil>
2025/04/11 18:00:17 DEBUG : tomcat-user.txt: >Open: fh=&{tomcat-user.txt (rw)}, err=<nil>
2025/04/11 18:00:17 DEBUG : &{tomcat-user.txt (rw)}: Flush:
2025/04/11 18:00:17 DEBUG : tomcat-user.txt(0xc000d00100): RWFileHandle.Flush
2025/04/11 18:00:17 DEBUG : &{tomcat-user.txt (rw)}: >Flush: err=<nil>
2025/04/11 18:00:17 DEBUG : &{tomcat-user.txt (rw)}: Flush:
2025/04/11 18:00:17 DEBUG : tomcat-user.txt(0xc000d00100): RWFileHandle.Flush
2025/04/11 18:00:17 DEBUG : &{tomcat-user.txt (rw)}: >Flush: err=<nil>
2025/04/11 18:00:17 DEBUG : &{tomcat-user.txt (rw)}: Release:
2025/04/11 18:00:17 DEBUG : tomcat-user.txt(0xc000d00100): RWFileHandle.Release
2025/04/11 18:00:17 DEBUG : tomcat-user.txt(0xc000d00100): close:
2025/04/11 18:00:17 DEBUG : tomcat-user.txt(0xc000d00100): >close: err=<nil>
2025/04/11 18:00:17 DEBUG : &{tomcat-user.txt (rw)}: >Release: err=<nil>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant