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

Read the man pages for chown and chmod. I imagine these are what Ubuntu uses but with a gui.

See swerdna’s guide
HowTo Mount NTFS Filesystem Partition Read Write Access in openSUSE

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 @.@)

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.

I asked my GF to get this for me:
http://img513.imageshack.us/img513/3735/screenshotdo.png

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

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.

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

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.

It won’t stick

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.

kirbyiwakitsukino wrote:
> As you see, it’s very easy @ubuntu/gnome

then, use what works for you…


DenverD
CAVEAT: http://is.gd/bpoMD [posted via NNTP w/openSUSE 10.3]

Problem is, Suse/KDE works wonders for me, except for that.

Anyway, I think I’ll leave this as is, we’ll have to learn to trust each other xD

Thanks for your interest, everyone!