Results 1 to 5 of 5

Thread: trouble with permissions of a /home directory mounted off a partition

  1. #1
    Join Date
    Jun 2008
    Location
    Maryland USA
    Beans
    82
    Distro
    Ubuntu 8.04 Hardy Heron

    trouble with permissions of a /home directory mounted off a partition

    I have installed ubuntu (8.04) on a friend's computer. I set it up as a dual boot with xp. Ubuntu is residing on a tiny partition. I then setup fstab to mount the ntfs partion. I then moved the /home directory onto the ntfs partition and put an entry in fstab to bind it to /home.
    The problem is that now i get errors at bootup because the user's home directory is owned by root and not by the user.
    I was thinking there might be a parameter I could change in the fstab entry to have the home directory load as hers not at the root's. The problem with this seems to be that if I forced the /home to belong to her,then other users (if there were others) would then have the same problem.
    Is there any way to just change the owner of the one directory (a subdirectory of a bound directory?)
    Many thanks in advance.

  2. #2
    Join Date
    Jun 2008
    Location
    Maryland USA
    Beans
    82
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: trouble with permissions of a /home directory mounted off a partition

    I should also note that when I run
    sudo chown -Rv username:users /home/username
    It lists the contents and says it is changing the ownership, but when I run ls -al it still shows the old ownership, rootlugdev

  3. #3
    Join Date
    Jun 2008
    Location
    Maryland USA
    Beans
    82
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: trouble with permissions of a /home directory mounted off a partition

    anyone? this should be so simple and I really can't find anything on it. it seems like sudo chown should do it, and it looks like it does, but once it's done nothing has changed.
    Please help, I don't want to leave a new linux convert with a half-working system.

  4. #4
    Join Date
    Mar 2008
    Location
    California, USA
    Beans
    8,111

    Re: trouble with permissions of a /home directory mounted off a partition

    Unfortunately you can't have the entire home directory on an NTFS partition, because NTFS file systems do not keep Linux ownership/permissions data. You could instead keep /home on his main Ubuntu partition, but instead move the "Documents", "Music", "Videos", etc folders to the NTFS partition, and then simply use a symbolic link to link those directories back to your friend's /home/username directory. You could do something like:
    Code:
    ln -s /path_to_documents_partition/Videos ~/.
    And that will link the "Videos" folder on the NTFS partition back to the /home/username directory. How about giving that a shot and let me know how it goes.

  5. #5
    Join Date
    Jun 2008
    Location
    Maryland USA
    Beans
    82
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: trouble with permissions of a /home directory mounted off a partition

    Thanks, the error is gone.
    I wish there were a way to just asign the ownership and permissions when you bind a folder off an NTFS system and then have the setting just get inherited down. (I also of course wish chown would throw an error instead of saying it had changed the owner of directories it can't change)
    But such is life.
    Thanks a lot for the help.

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
  •