Re: Having filesystems mounted with the user option be owned by the user that mounts them?

2020-09-04 Thread Keith Bainbridge
On 5/9/20 3:56 am, Reco wrote: or do the backups as root, Nothing wrong with this approach, see below. Preferable to have only root have the ability to change the backup. Perhaps have some trusted users in a group that can read them, for retrieval purposes. If an user needs to be able to

Re: Having filesystems mounted with the user option be owned by the user that mounts them?

2020-09-04 Thread David Christensen
On 2020-09-04 10:37, rhkra...@gmail.com wrote: I'm still working on my backup system, and setting up mount points. You might want to consider ZFS and zfs-auto-snapshot -- backups are automatic and immutable, and restores are self-serve. David

Re: Having filesystems mounted with the user option be owned by the user that mounts them?

2020-09-04 Thread Charles Curley
On Fri, 4 Sep 2020 13:37:07 -0400 rhkra...@gmail.com wrote: > Is there a simple way to have the mounted filesystem be owned by the > user that mounts it? Have the user execute an appropriate script, and get the uid and gid from the environment: uid=$(grep ${USER} /etc/passwd | cut -d: -f 3)

Re: Having filesystems mounted with the user option be owned by the user that mounts them?

2020-09-04 Thread Reco
Hi. On Fri, Sep 04, 2020 at 01:37:07PM -0400, rhkra...@gmail.com wrote: > I'm still working on my backup system, and setting up mount points. > > I was hoping that if I used "user" (or "users") in the mount command (or in > /etc/fstab) that the mounted filesystem would be owned by the

Re: Having filesystems mounted with the user option be owned by the user that mounts them?

2020-09-04 Thread Greg Wooledge
On Fri, Sep 04, 2020 at 01:37:07PM -0400, rhkra...@gmail.com wrote: > I was hoping that if I used "user" (or "users") in the mount command (or in > /etc/fstab) that the mounted filesystem would be owned by the user that > mounted > it. That doesn't (seem to) work. It's not supposed to. The

Having filesystems mounted with the user option be owned by the user that mounts them?

2020-09-04 Thread rhkramer
I'm still working on my backup system, and setting up mount points. I was hoping that if I used "user" (or "users") in the mount command (or in /etc/fstab) that the mounted filesystem would be owned by the user that mounted it. That doesn't (seem to) work. I could do things like give write