I have a windows partition which I accesse from opensuse 11, 64-bit. No problems writing and deleting files on the disk. The problem is that I cannot change rights on the folders or files, not even as root. I would like to give users separate rights to folders. How should I do it?
Those are the rights on all folders and files:
root: create och delete
users: create och delete
others: access files
Windows and ntfs partition rights are different to rights on linux partitions. I don’t think there is any way you can limit rights on either fat or ntfs filesystems in linux style - the filesystem doesn’t allow linux-type rights. Once it is shared/mounted on ntfs, that’s it.
To limit access, you must use a linux file system.
On Tue, 2009-08-18 at 21:56 +0000, magmos 019 wrote:
> Hello!
>
> I have a windows partition which I accesse from opensuse 11, 64-bit. No
> problems writing and deleting files on the disk. The problem is that I
> cannot change rights on the folders or files, not even as root. I would
> like to give users separate rights to folders. How should I do it?
About the best way is to turn this whole thing around and use openSUSE
as your file share. Then you get a somewhat functional mapping using
extended ACLs to what Windows uses. However, it isn’t perfect.
Also, you do NOT want to use normal chmod/chown etc. on them… you have
to use extended ACLs… of course, that’s IF you turn your problem
backwards and use openSUSE as the file share.
The Samba team at one time was going to supply a Windows piece (yes,
Windows software) that would give Windows knowledge of POSIX like
permissions… but the idea was scrapped several years ago.
The users are logging in to opensuse PC through Putty or NX client. For everybody the partition is mounted. I do not understand what you mean by using “openSUSE as your file share”.
No, I think cjcox was implying to NOT use NTFS, which is the only way I
see it as well. NTFS permissions cannot be enforced outside windows
because, and this should hopefully be clear, there are no windows users in
Linux. How do you enforce access (or lack of access) for a user with SID
500 (or username Administrator) when there is no user in Linux named
Administrator, or magmos019, or ab? You cannot, so unless Linux were to
actually use windows users from the hard drive (which would be weird at
best) it cannot be done. Copy off the data, make the drive use a Linux
filesystem, copy back, and assign back rights as you see fit (setfacl for
setting extended attributes if needed).