LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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, 01:49 AM   #106
Anil Kagi
Member
 
Registered: Aug 2014
Distribution: LinuxMint 17 Qiana Cinnamon
Posts: 149

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, 08:51 AM   #107
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 7,331

Rep: Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406
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, 05:22 AM   #108
Anil Kagi
Member
 
Registered: Aug 2014
Distribution: LinuxMint 17 Qiana Cinnamon
Posts: 149

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, 09:14 AM   #109
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 7,331

Rep: Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406
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, 01:44 AM   #110
Anil Kagi
Member
 
Registered: Aug 2014
Distribution: LinuxMint 17 Qiana Cinnamon
Posts: 149

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 02:10 PM
Help on Installation / Partitioning grandmarkai Linux - Newbie 2 02-19-2006 09:33 PM
Partitioning for installation trotsky Linux - Newbie 6 12-24-2004 05:54 AM
Partitioning after installation stingerbee Linux - Software 10 08-04-2004 07:55 PM
Partitioning & Type of FS waynevnc Debian 3 06-20-2004 06:34 PM

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

All times are GMT -5. The time now is 09:57 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration