Results 1 to 3 of 3

Thread: Change owner of mounted drive

  1. #1
    Join Date
    Aug 2016

    Change owner of mounted drive

    I just installed 20.04.1. I want to change the owner of two mounted drives from root to [username]. The drives just contain stuff like music, games, video. The goal: I want Steam to be able to use folders on those drives as library folders.

    I just tried a GUI route of running Nautilus in sudo then changing permissions within Nautilus (right click on mnt/drive-name and changing permissions there), but I get the error message "The owner could not be changed. Sorry, could not change the owner of "Drive": Error setting owner: Operation not permitted"

    How should I be doing this?

  2. #2
    Join Date
    Mar 2010
    Ubuntu Mate 16.04 Xenial Xerus

    Re: Change owner of mounted drive

    ntfs or other non-linux file systems only support ownership control through mount options.

    For ext2/3/4 and other native linux file systems just use sudo chown with the correct options.

    Beextremely careful running a g program with sudo. There can be unintended consequences. In general, it is best to avoid running gui programs under sudo. I can think of 1 or 2 exceptions - none are file managers.

    df -Th will show the file system for all mounted storage.

  3. #3
    Join Date
    Jun 2007
    Arizona U.S.A.

    Re: Change owner of mounted drive

    If the file systems are ext4:

    Use the terminal. If the mount point of the file system is /mnt/Data and your user name is tom, the command to change the owner to tom is:
    sudo chown tom /mnt/Data
    You can also change the group ownership of file system to xxxx at the same time if you use:
    sudo chown tom:xxxx /mnt/Data


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts