LinuxQuestions.org
Review your favorite Linux distribution.
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-17-2008, 05:33 PM   #1
mattyjim
LQ Newbie
 
Registered: Oct 2006
Posts: 5

Rep: Reputation: 0
Question restricting user access to ntfs partition


Hello!


Despite having signed up for linuxquestions.org a good long while ago, I've only just managed to prise myself away from windows, and so I'm guessing that the newbie area is the correct place for this question.


Apologies if I get any terminology wrong.


Here goes:

1. I have 2 hard disks: one that contains only an NTFS partition, and another that contains both an NTFS partition and a Fedora 9 (x64) partition

2. At present, I can access all partitions from both my root and regular user accounts

Is there a way to restrict regular user access to the NTFS partitions whilst maintaining accessibility from the root account?

Ideally, I would like to restrict access to all NTFS folders except one (itunes), so that I could effectively share the contents between the two operating systems without providing unnecessary access to any other files or folders.


So, basically:

root = access to everything
normal user = access only to linux partition and a single folder on an NTFS partition


Any help would be greatly appreciated, as this issue is driving me mental at present


Thanks in advance.
 
Old 09-17-2008, 05:54 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,090

Rep: Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474
edit your fstab file and add a line/lines for your windows drive
example:
Code:
/dev/sda1  /mnt/windows      ntfs-3g  defaults    0 0 umask 022
this should change the permission to 755 /mnt/windows
 
Old 09-17-2008, 06:55 PM   #3
portamenteff
Member
 
Registered: Feb 2006
Location: Colorado
Distribution: sabayon
Posts: 180
Blog Entries: 1

Rep: Reputation: 36
755 permission is user= read, write, execute; group=read, execute; other=read execute. I think this person wants 700 permissions, denying access to the directory. I would try (as root)
Code:
chmod 700 /dev/sda
Doing this as root makes the user 7, everyone else 0 so no one can access the file. You may wish to substitute /dev/sda with /dev/(drive name.)You can find this with-
Code:
cd /dev
ls
The drive name should be there.

Last edited by portamenteff; 09-17-2008 at 06:56 PM. Reason: added a line.
 
Old 09-18-2008, 05:15 PM   #4
mattyjim
LQ Newbie
 
Registered: Oct 2006
Posts: 5

Original Poster
Rep: Reputation: 0
Many thanks for your replies.


I used the chmod command to restrict access to the entire drive, and this seems to work just fine.

Is it now possible to give normal users access to only a single folder on this same drive (my 'iTunes' folder, for example), or am I looking at this in entirely the wrong way?

I'd like the normal user account to be have access to a particular folder, but not to the rest of the drive.
 
  


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
why doesnt i have any access to my ntfs partition as user? mannnetobbelob Linux - Software 25 11-11-2010 04:10 AM
Can mount NTFS partition as user but access denied vharishankar Linux - General 2 12-16-2006 09:57 PM
User accounts can't access NTFS partition Agent Cobalt Linux - General 6 04-30-2006 09:56 PM
can't access ntfs partition as normal user rezzie Linux - Newbie 6 11-26-2005 08:09 AM
Can't access NTFS partition as regular user Spasmolytic Linux - Newbie 3 05-13-2004 05:46 PM


All times are GMT -5. The time now is 06:19 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