Results 1 to 3 of 3

Thread: Change owner of mounted drive

  1. #1
    Join Date
    Aug 2016
    Beans
    6

    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
    Location
    Squidbilly-Land
    Beans
    22,164
    Distro
    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
    Location
    Arizona U.S.A.
    Beans
    4,855

    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:
    Code:
    sudo chown tom /mnt/Data
    You can also change the group ownership of file system to xxxx at the same time if you use:
    Code:
    sudo chown tom:xxxx /mnt/Data

Bookmarks

Posting Permissions

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