It’s not possible to mount a share as “User X” ?
Geht nicht. Gibts nicht.
bindfs is the answer
It will take an already mounted file system and provide a view of it with whichever uid you’d like:
su - root apt update apt install bindfs; # install bindfs mkdir /mnt/mointpoint; # make mountpoint where to mount bindfs -u $(id -u) -g $(id -g) /media/source /mnt/mointpoint
now you will ask: What is my USERID/GROUPID?
id -u; # display user id of current user id -g; # display group id of current user # alternative: cat /etc/passwd|grep user user:x:1000:1000:user,,,:/home/user:/bin/bash
creditz: askubuntu.com/questions/34066/mounting-filesystem-with-special-user-id-set
liked this article?
- only together we can create a truly free world
- plz support dwaves to keep it up & running!
- (yes the info on the internet is (mostly) free but beer is still not free (still have to work on that))
- really really hate advertisement
- contribute: whenever a solution was found, blog about it for others to find!
- talk about, recommend & link to this blog and articles
- thanks to all who contribute!