LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 09-23-2014, 12:49 AM   #106
Anil Kagi
Member
 
Registered: Aug 2014
Distribution: antiX-Frugal
Posts: 155

Original Poster
Rep: Reputation: 0
Thumbs up


Quote:
Originally Posted by yancek View Post
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.

Thank you again yancek.

Regards

Anil
 
Old 09-23-2014, 07:51 AM   #107
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,487

Rep: Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488
It's always interesting to try something new and have it work. Glad you got it set up the way you wanted.
 
Old 09-24-2014, 04:22 AM   #108
Anil Kagi
Member
 
Registered: Aug 2014
Distribution: antiX-Frugal
Posts: 155

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by yancek View Post
It's always interesting to try something new and have it work. Glad you got it set up the way you wanted.
Great work yancek,

Keep it up

And I need to thank this forum too. Thank you 'linuxquestions.org', for the endeavour of running this great and highly responsive forum.

Thanks everybody & Regards

Anil
 
Old 09-24-2014, 08:14 AM   #109
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,487

Rep: Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488
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.
 
Old 09-28-2014, 12:44 AM   #110
Anil Kagi
Member
 
Registered: Aug 2014
Distribution: antiX-Frugal
Posts: 155

Original Poster
Rep: Reputation: 0
Sorry yaneck for the delay in replying,

I was offline.

Quote:
Originally Posted by yancek View Post
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.

Thank you

Regards

Anil
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Grub & partitioning Necromuru Linux - Software 1 12-22-2007 01:10 PM
Help on Installation / Partitioning grandmarkai Linux - Newbie 2 02-19-2006 08:33 PM
Partitioning for installation trotsky Linux - Newbie 6 12-24-2004 04:54 AM
Partitioning after installation stingerbee Linux - Software 10 08-04-2004 06:55 PM
Partitioning & Type of FS waynevnc Debian 3 06-20-2004 05:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration