How to mount a drive for other user than root?
- by Ondra Žižka
I've attached a SSD disk though USB.
Then:
sudo su -
mkdir /mnt/hx
chown ondra /mnt/hx
mount /dev/sdb1 /mnt/hx # It's FAT32 now, but was the same with EXT4
The last command changes dir owner to root.
Whenever I create a file in the root dir, I need to be root and root is the owner.
Can I set different user as owner of the mounted dir?
Or,…