Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I created an ntfs partition a few days ago to test this. Formatted it as ntfs. Put the entry below in the /etc/fstab file for partition sdb13. You will need to replace /dev/sdb13 with the UUID of your specific partition. You will also need to put the actual user name or id after uid=, where it shows user1 below. Obviously, you will also need to change "win-test" below to the actual name of the mount point in the /mnt directory that you created. I also changed ownership of the mount point "/mnt/win-test" to user1 and permissions to 700. I was then able to access read/write as user1 and root, got a permission denied when trying to enter the directory as another user from the file manager and terminal. So creating two fstab entries, one for each users data partition with the entry below should work the way you want.
Yesss,
You did it! Fantastic!
Oh thank you so much yancek, for making so much effort to help me. That's great of you.
You are a great guy. Love you.
I have no words to express my relief.
Thanks everybody for coming to my rescue & regards.
I am curious as to whether you were able to do this from windows. The settings you now have prohibit user1 from accessing user2 data (as well as the reverse) in that specific partition when logged in to Mint but has no effect when logging in from the windows system and accessing those partitions. Have you also set this up in windows? I read a little about this last week and it seemed like a more convoluted process but that may be due to my lack of familiarity with windows.
I am curious as to whether you were able to do this from windows. The settings you now have prohibit user1 from accessing user2 data (as well as the reverse) in that specific partition when logged in to Mint but has no effect when logging in from the windows system and accessing those partitions. Have you also set this up in windows? I read a little about this last week and it seemed like a more convoluted process but that may be due to my lack of familiarity with windows.
The permissions can be set in Windows 7 by changing the security settings for the required partition, as below.
With Administrative permissions;
Quote:
right click on the 'Partition' that you want to restrict permissions > Click on Properties > Click on the 'Security tab' > click the 'Edit' button with the tag 'To change permissions click edit' > A dialogue box opens with the list of groups or users already having permissions for the partition. There the existing users can be removed or new users added, by clicking the 'Add' or 'Remove' buttons.
The only requirement here is that the 'new' user 'name' we add here, should be in the list of users found here below;
Quote:
Computer > Local disk C: > Users
[If an user decides to change her/his user-name during the course of use of the system, it is not updated in the system. The system retains the old-user-name itself, but during the use of the system, it responds to the changed-new-user-name. I suppose it only establishes a link or reference between the old-user-name and changed-new-user-name.
Now while you are trying to change permissions as mentioned above, and if you add the changed-new-user-name in the security permissions dialogue box, the system will not accept it, but displays an error saying something like, 'the object is not found' (in windows, the object=user name). As soon as you add the old-user-name corresponding to the changed-new-user-name, found in the list of users, it accepts and displays the changed-new-user-name.]
That's it. The required permissions are set for the partition.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.