Results 1 to 6 of 6

Thread: chown not working

  1. #1
    Join Date
    Aug 2011
    Beans
    248
    Distro
    Ubuntu Studio 12.04 Precise Pangolin

    chown not working

    despite repeatedly running
    Code:
    sudo chown -Rv josh:josh /mnt/data
    it still lists files in the directory as owned by root. Why is chown not working?
    The terminal outputs a massive string of working messages like this:
    Code:
    changed ownership of `/mnt/data/Applications/redeclipse-1.3.1/src/game/client.cpp' from root:root to josh:josh
    changed ownership of `/mnt/data/Applications/redeclipse-1.3.1/src/game/compass.h' from root:root to josh:josh
    changed ownership of `/mnt/data/Applications/redeclipse-1.3.1/src/game/defend.cpp' from root:root to josh:josh
    changed ownership of `/mnt/data/Applications/redeclipse-1.3.1/src/game/defend.h' from root:root to josh:josh
    changed ownership of `/mnt/data/Applications/redeclipse-1.3.1/src/game/defendmode.h' from root:root to josh:josh
    changed ownership of `/mnt/data/Applications/redeclipse-1.3.1/src/game/duelmut.h' from root:root to josh:josh
    changed ownership of `/mnt/data/Applications/redeclipse-1.3.1/src/game/entities.cpp' from root:root to josh:josh
    changed ownership of `/mnt/data/Applications/redeclipse-1.3.1/src/game/extinfo.h' from root:root to josh:josh
    changed ownership of `/mnt/data/Applications/redeclipse-1.3.1/src/game/game.cpp'
    TELL me how to fix my problem, I'll be back in a week, same problem.
    TEACH me how to fix it, I'll be good from then on.

  2. #2
    Join Date
    Jan 2008
    Location
    Manchester UK
    Beans
    13,636
    Distro
    Ubuntu

    Re: chown not working

    What file system is the mounted partition ?

  3. #3
    Join Date
    Aug 2011
    Beans
    248
    Distro
    Ubuntu Studio 12.04 Precise Pangolin

    Re: chown not working

    The filesystem is an ntfs one.
    TELL me how to fix my problem, I'll be back in a week, same problem.
    TEACH me how to fix it, I'll be good from then on.

  4. #4
    Join Date
    Feb 2009
    Location
    Dallas, TX
    Beans
    6,663
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: chown not working

    Hi bobman321123.

    NTFS does not support neither ownership and Linux's permissions.

    The way you work around that is using the proper setting on the mount options. There you can assign both fixed ownership and permissions.

    Let us know how it goes.
    Regards.

  5. #5
    Join Date
    Jan 2008
    Location
    Manchester UK
    Beans
    13,636
    Distro
    Ubuntu

    Re: chown not working

    Well ntfs doesn't support linux file permissions unless you specify them when mounting.

    Have a look at this gigantic post to see how you would use the permissions, dmask and fmask fstab options to set permissions on mounting your ntfs partition.

    http://ubuntuforums.org/showpost.php...68&postcount=1

  6. #6
    Join Date
    Aug 2011
    Beans
    248
    Distro
    Ubuntu Studio 12.04 Precise Pangolin

    Re: chown not working

    That did it, thanks
    TELL me how to fix my problem, I'll be back in a week, same problem.
    TEACH me how to fix it, I'll be good from then on.

Tags for this Thread

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
  •