M BUZZ CRAZE NEWS
// news

How can I change owner of mounted directory?

By Emma Martinez

I'm using ubuntu server 20.04 on raspberry pi 4 and I want to change the owner of the external drive for changing permission for my server. But I can't change the owner even using sudo su and chown. I changed the ownership while the drive is unmounted, but it overwrites and changes to root.

Before mounting USB flash drive on "usb128":

Permission and owner of before mounting to the media directory

After mounting on "usb128":

permission and owner of after mounting to the media directory

*Note: I want to change the owner during the drive is mounted.

5 Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy