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

Thread: Change permissions for NTFS folders based on users

  1. #1
    Join Date
    Nov 2010
    Location
    どこでも
    Posts
    53

    Question Change permissions for NTFS folders based on users

    Hello! I'm a new openSUSE user (since today), and I'm very very happy with it.

    I've been able to solve everything until I've got to the next problem:

    I want to make an account for my cousin, but we want our NTFS folders (from the dual WIndows XP install) inaccessible to each other. Problem is that, if I've read well in other searches, permissions can't be applied to NTFS (only the power to write, not only read, the whole partition).

    I know this can be done in Ubuntu, so I don't find a reason not to be able to do it, and I think my fault is that I'm using KDE (which I like more now, by the way) instead of GNOME.

    Any ideas? Thanks in advance n.n

  2. #2
    Join Date
    Jun 2008
    Location
    The English Lake District. UK - GMT/BST
    Posts
    36,733
    Blog Entries
    20

    Default Re: Change permissions for NTFS folders based on users

    Leap 15.1_KDE
    My Articles Was I any help? If yes: Click the star below

  3. #3
    Join Date
    Nov 2010
    Location
    どこでも
    Posts
    53

    Default Re: Change permissions for NTFS folders based on users

    I didn't understand it completely xD... I made possible to access Windows partition and I can write there. Problem is every suse user can do it, and I wnat to restrcit certain folders (not the whole partition).

    Do I have to modify the same file (fstab)? and how? (please tell me the code @.@)

  4. #4
    Join Date
    Aug 2008
    Location
    Seattle, WA
    Posts
    1,376

    Default Re: Change permissions for NTFS folders based on users

    If you read the first paragraph,

    The NTFS filesystem does not support Linux permissions or ownership per se. You can't successfully change ownership with the Linux command chown and you can't successfully change permissions with the Linux command chmod. Ownership and permissions are set only in the mount command.
    it is not possible to set Linux permissions on individual files and directories on a Windows file system. Permissions will be set on the mount command, and will be file system-wide. I don't find any reference to Ubuntu support for this doing a Google search. Are you sure about this? Maybe you can tell us what tools you used to carry this out.

  5. #5
    Join Date
    Nov 2010
    Location
    どこでも
    Posts
    53

    Default Re: Change permissions for NTFS folders based on users

    I asked my GF to get this for me:


    As you see, it's very easy @ubuntu/gnome

  6. #6
    Join Date
    Aug 2008
    Location
    Seattle, WA
    Posts
    1,376

    Default Re: Change permissions for NTFS folders based on users

    I doubt that the permissions on an NTFS partition could be changed through Nautilus. Have you actually tested this? Is your cousin denied access to your files, and vice-versa? Nautilus just uses the chown and chmod commands AFAIK, and these can't be extended to NTFS.

  7. #7
    Join Date
    Nov 2010
    Location
    どこでも
    Posts
    53

    Default Re: Change permissions for NTFS folders based on users

    I'm really not 100% positive, but I remember testing it. I will try it asap and tell you how it goes, meanwhile, if you have any ideas, they will be appreciated

  8. #8
    Join Date
    Jun 2008
    Location
    The English Lake District. UK - GMT/BST
    Posts
    36,733
    Blog Entries
    20

    Default Re: Change permissions for NTFS folders based on users

    Check this section again:

    Here's an alternate option for fstab: If you want the permissions to be linux-like, you can specify a particular owner for the mount folder and its contents with this sort of line in fstab:
    /dev/sdb1 /path_to/mount_point ntfs-3g uid=1000,gid=100,umask=0022 0 0
    Tip #2: The numerical form above appears all over the net, but I've found that names work just as well so I recommend using names for openSUSE versions 11.x because it's much simpler:
    /dev/sdb1 /path_to/mount_point ntfs-3g uid=suzette,gid=users,umask=0022 0 0
    In this example the "umask" with octal value 0022 produces permissions drwxr-xr-x on folder mount_point, for the owner=suzette (1000) group=users (100), just like normal openSUSE user permissions. If you change the umask option to umask=0027, the permissions become drwxr-x--- and only suzette can read the mount's contents.
    Leap 15.1_KDE
    My Articles Was I any help? If yes: Click the star below

  9. #9
    Join Date
    Mar 2008
    Location
    Oz
    Posts
    11,727
    Blog Entries
    2

    Default Re: Change permissions for NTFS folders based on users

    Quote Originally Posted by kirbyiwakitsukino View Post
    I'm really not 100% positive, but I remember testing it. I will try it asap and tell you how it goes, meanwhile, if you have any ideas, they will be appreciated
    It won't stick
    Leap 42.3 & 15.1(Beta) &KDE
    FYIs from the days of yore

  10. #10
    Join Date
    Mar 2008
    Location
    Oz
    Posts
    11,727
    Blog Entries
    2

    Default Re: Change permissions for NTFS folders based on users

    You can create a file which contains Linux ownership mappings for windows directories for an ntfs volume. It's really intricate. Here's the reference:
    User Mapping at Tuxera
    I personally wouldn't try it unless the mapping was really, really necessary.
    If you try it, first practise on a non-critical partition, e.g.perhaps practise on an imaged copy of a real partition.
    Leap 42.3 & 15.1(Beta) &KDE
    FYIs from the days of yore

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
  •