Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Change Folder permissions

  1. #1
    Join Date
    Oct 2008
    Location
    Mojave desert
    Posts
    298

    Default Change Folder permissions

    On my dual-boot system, 11.4 and win7, I wiped out the Doc and DL folders in my home directory and replaced 'em with links to the ones on the windows side. It works great except for one thing: When I open Dolphin in superuser mode and change the permissions to make myself the owner of those folders, the change doesn't take. Is there a special trick to it?

    GEF

    PS: I plan to use openSUSE as my main OS, but it's easier to keep my data on the NTFS partition, because Linux speaks Windows better than than Windows speaks Linux. Besides, that's where my data already lives.

    PPS: Do I need to change permissions from within Windows, since these folders live on an ntfs partition?

  2. #2
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    12,498
    Blog Entries
    3

    Default Re: Change Folder permissions

    Windows file systems don't have the same concept of ownership. The ownership shown for Windows files is virtual.

    If you are the only user of the computer, then you can modify the mount parameter is "/etc/fstab", so that the files are treated as owned by you.

    Here's the entry for my Vista partition:
    Code:
    /dev/disk/by-id/ata-WDC_WD3200AAKS-75SBA0_WD-WCAPZ2050503-part3 /windows/C           ntfs-3g    ro,user,noauto,users,uid=601,gid=users,umask=0002,nls=utf8 0 0
    That won't work for you as given. For example, I have it default to a read-only mount. However, note the "uid=601" part of that line. It makes me the owner of everything on that partition. I think you can have a user login name there rather than a numeric ID.
    openSUSE Leap 15.1; KDE Plasma 5;
    testing Leap 15.2Alpha

  3. #3
    Join Date
    Oct 2008
    Location
    Mojave desert
    Posts
    298

    Default Re: Change Folder permissions

    Quote Originally Posted by nrickert View Post
    However, note the "uid=601" part of that line. It makes me the owner of everything on that partition. I think you can have a user login name there rather than a numeric ID.
    Thanks, nrickert, I am the only user of my laptop, so this looks like the right direction. In Yast, I looked up users and determined that my numeric id is 1000, then I went into the partitioner to edit fstab options, added "uid=1000" between "users" and "gid=users" just as in your example, applied changes and got an error, tried proceeding anyway. Nothing broke, bur I'm still not the owner of the partition. -GEF

  4. #4
    Join Date
    Oct 2008
    Location
    Mojave desert
    Posts
    298

    Default Re: Change Folder permissions

    Here's the relevant line of my fstab:

    /dev/disk/by-id/ata-Hitachi_HTS725050A9A364_100520PCK404VLHW0N8J-part2 /C ntfs-3g users,uid=gef,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8 0 0

    I also tried it with uid=1000 as indicated in previous post, but I still can't open my documents except as read only or otherwise create or modify content on the C partition except in superuser mode. Are there any other codes from your example that I should add, or codes here that I should remove?

    Thanks again,

    GEF

  5. #5
    Join Date
    Jun 2008
    Location
    Earth - Denmark
    Posts
    10,730

    Default Re: Change Folder permissions

    On 07/25/2011 08:16 AM, gfagan wrote:
    >
    > I'm still not the owner of the partition.


    no matter what you do you can not change the permissions on a NTFS
    partition to show you as the "owner" of any directory/folder on that
    partition....because (as @nrickert already stated) "Windows file systems
    don't have the same concept of ownership." and no winFileSystem (that
    i'm aware of) has the ability to store the Linux ownership bit..

    while it is possible to read/write from Linux to NTFS i try to
    discourage it...because of things like you are experiencing..

    in my mind it is ok to _read_ from NTFS but don't write to it _any_
    download or document intended for use on or in the Linux system..

    keep your Linux stuff on the Linux side, but if you wanna listen to
    music downloaded in Windows, go ahead..

    ask around..

    --
    DD Caveat
    openSUSE®, the "German Engineered Automobiles" of operating systems!

  6. #6
    Join Date
    Oct 2008
    Location
    Mojave desert
    Posts
    298

    Default Re: Change Folder permissions

    DenverD, you raise a good point: I didn't state my goal clearly. What I want is to be able to edit my documents regardless of which OS I'm in, say with MS Office while in Windows or Libre Office in Linux, without diverging copies. If you discourage a common download folder, I'll follow your advice. Thanks, GEF

  7. #7
    Join Date
    Jun 2008
    Location
    Earth - Denmark
    Posts
    10,730

    Default Re: Change Folder permissions

    On 07/25/2011 09:36 AM, gfagan wrote:

    > What I
    > want is to be able to edit my documents regardless of which OS I'm in,
    > say with MS Office while in Windows or Libre Office in Linux, without
    > diverging copies. If you discourage a common download folder, I'll
    > follow your advice. Thanks,


    welcome..

    while it would be very convenient for the world to have a fully shared
    document available as you describe, i think you would sooner or later
    run into the little details which make MS Office and LibreOffice not the
    best of friends..

    that is, i think you will probably find that divergence is a given
    because (as far as i know) MS Office can not save to LibreOffice format
    and . . .

    not to mention that MS can neither read nor write to Linux
    partitions...and, the opposite is only possible after years of Linux
    developers working hard to make it happen....and, any day the good folks
    in Redmond could silently change the specifications such that it would
    no longer be possible to read/write either direction..

    --
    DD Caveat
    openSUSE®, the "German Engineered Automobiles" of operating systems!

  8. #8
    Join Date
    Oct 2008
    Location
    Mojave desert
    Posts
    298

    Default Re: Change Folder permissions

    Found a thread which recommended setting arbitrary option values to default. It worked; now I can edit my documents:

    How to get full control of Win 7 Files (dual boot) in Suse 11.3 KDE

  9. #9
    Join Date
    Mar 2009
    Location
    sri mayapur, west bengal, india
    Posts
    958

    Default Re: Change Folder permissions

    On Mon, 25 Jul 2011 15:11:42 +0530, DenverD
    <DenverD@no-mx.forums.opensuse.org> wrote:

    > On 07/25/2011 09:36 AM, gfagan wrote:
    >
    >> What I
    >> want is to be able to edit my documents regardless of which OS I'm in,
    >> say with MS Office while in Windows or Libre Office in Linux, without
    >> diverging copies. If you discourage a common download folder, I'll
    >> follow your advice. Thanks,

    >
    > welcome..
    >
    > while it would be very convenient for the world to have a fully shared
    > document available as you describe, i think you would sooner or later
    > run into the little details which make MS Office and LibreOffice not the
    > best of friends..
    >
    > that is, i think you will probably find that divergence is a given
    > because (as far as i know) MS Office can not save to LibreOffice format
    > and . . .
    >
    > not to mention that MS can neither read nor write to Linux
    > partitions...and, the opposite is only possible after years of Linux
    > developers working hard to make it happen....and, any day the good folks
    > in Redmond could silently change the specifications such that it would
    > no longer be possible to read/write either direction..
    >



    if you mostly don't need the fancier options of M$office or LibreOffice
    you could save your docs as .rtf files, which should remain readable for
    both office suits.


    --
    phani.

  10. #10
    Join Date
    Jul 2008
    Location
    Seattle, WA
    Posts
    17,050

    Default Re: Change Folder permissions

    On Mon, 25 Jul 2011 06:46:02 +0000, gfagan wrote:

    > I also tried it with uid=1000 as indicated in previous post


    Is that uid the uid of your logged-in user?

    What is the output of the 'mount' command on your system?

    Jim
    --
    Jim Henderson
    openSUSE Forums Administrator
    Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

Page 1 of 2 12 LastLast

Posting Permissions

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