You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to mount, as a regular user (not in a namespace or mapped uid/gid), a directory normally owned by root and have it writable, but also changing the owner to my regular user as well. I thought -o squash_to_uid=myuid was about to do the trick, but it didnt:
The mounted is owned by me and I can write to it, but I cannot change ownership:
$ touch mounted/test
$ ls -l mounted
-r-xr-xr-x akiross akiross foo
-r-xr-xr-x akiross akiross test
-rwxrwx akiross akiross test
$ chmod 755 mounted/foo
chmod: changing permissions of 'mounted/foo': Permission denied
I thought overlayfs would save file metadata, and modifications to files, in the upper directory, so what I'm trying to do sounds legit, but I might be missing something.
Is it possible to achieve this with unprivileged user?
The text was updated successfully, but these errors were encountered:
Hello,
I would like to mount, as a regular user (not in a namespace or mapped uid/gid), a directory normally owned by root and have it writable, but also changing the owner to my regular user as well. I thought
-o squash_to_uid=myuid
was about to do the trick, but it didnt:The mounted is owned by me and I can write to it, but I cannot change ownership:
I thought overlayfs would save file metadata, and modifications to files, in the
upper
directory, so what I'm trying to do sounds legit, but I might be missing something.Is it possible to achieve this with unprivileged user?
The text was updated successfully, but these errors were encountered: