LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-01-2007, 05:22 PM   #1
rn5a
Member
 
Registered: Aug 2007
Posts: 48

Rep: Reputation: 15
Question ntfs-3g


I used the ntfs-3g package to assign read & write permissions to Windows drives that have the NTFS file system but now I want to revoke ONLY the write permission from the NTFS drives & keep the read permission as it is so that the contents of the NTFS drives cannot be tampered.

How do I do this?

Please note that after installing the ntfs-3g package, I changed one of the lines in the file named fstab (in the etc directory) from

/dev/hdc8 /mnt/windows/D: ntfs defaults 0 0

to

/dev/hdc8 /mnt/windows/D: ntfs-3g defaults 0 0

Thanks,

Ron
 
Old 09-01-2007, 05:48 PM   #2
kotnik
Member
 
Registered: Nov 2004
Location: Novi Sad, Serbia
Distribution: Debian, Slackware, Gentoo, openSuSE
Posts: 254

Rep: Reputation: 31
So use your common sense: change to original fstab line, the one before you installed ntfs-3g.
 
Old 09-01-2007, 06:22 PM   #3
Road_map
Member
 
Registered: Jan 2007
Distribution: Slackware
Posts: 341

Rep: Reputation: 31
Replace defaults with ro
 
Old 09-01-2007, 06:57 PM   #4
rn5a
Member
 
Registered: Aug 2007
Posts: 48

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by kotnik View Post
So use your common sense: change to original fstab line, the one before you installed ntfs-3g.
Itīs your turn to use your common sense, kotnik. Changing back to the original fstab line revokes the read permission as well along with the write permission but I want ONLY the write permission to be revoked so that I can just access the contents of the NTFS drives & not edit them.

Thanks, Road_map for the solution. That certainly does the needful. A related question, Road_map - the FAT32 drives in the fstab file uses defaults & not ro but Linux doesnīt allow me to edit the contents of the FAT32 drives though I can access them. Why? Is it because the FAT32 drives belong to Windows & not Linux?

Regards,

Ron
 
Old 09-01-2007, 07:30 PM   #5
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 115Reputation: 115
Using ntfs rather than ntfs-3g certainly should not "revoke" read privileges; ntfs is a read-only file system handler for the ntfs filesystem.

If you can't read after mounting with ntfs, then there was some other problem in your fstab and the file system wasn't being properly mounted.

And "defaults" for the FAT file system probably are read only. Replace defaults with rw and you should be able to read and write.

Final comment. Your second post on this thread was unduly testy, for someone who is asking for help - the more so when you consider that what you had been told was correct. And your specific request for a specific person to respond to you ("A related question, Road_map") will ultimately cause most people to stop responding to you at all.
 
Old 09-01-2007, 08:55 PM   #6
rn5a
Member
 
Registered: Aug 2007
Posts: 48

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by jiml8 View Post
Final comment. Your second post on this thread was unduly testy, for someone who is asking for help - the more so when you consider that what you had been told was correct. And your specific request for a specific person to respond to you ("A related question, Road_map") will ultimately cause most people to stop responding to you at all.
I am sorry for that but I didnīt intend to ask that question to Road_map & Road_map only. Who am I to ask a question to a specific person when anyone can answer any question? Moreover, when I have got the privilege to get answers from so many people, why would I direct a question to one particular person? I might get a better answer from someone else which will benefit me. Why would I want to lose such an opportunity?

Itīś just that I clubbed my follow-up question with a note of thanks to Road_map. Yes...I shouldnīt have added his name Road_map at the end of the sentence A related question. I seriously didnīt intend to offend anyone.

BTW, this is how the fstab file looked like before I implemented Road_mapīs suggestion:

/dev/hdc5 / ext2 defaults 1 1
/dev/hdc7 /mnt/windows ext3 defaults 1 2
/dev/hdc1 /mnt/windows/C: vfat defaults 0 0
/dev/hdc8 /mnt/windows/D: ntfs defaults 0 0
/dev/hdc9 /mnt/windows/E: vfat defaults 0 0
/dev/hdc10 /mnt/windows/F: vfat defaults 0 0
/dev/hdc11 /mnt/windows/H: ntfs defaults 0 0
/dev/hdc12 /mnt/windows/I: ntfs defaults 0 0
none /proc proc defaults 0 0
/dev/hdc6 swap swap defaults 0 0
 
  


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
LXer: How To Use NTFS Write Support (ntfs-3g) On Fedora 7 LXer Syndicated Linux News 0 08-24-2007 08:11 PM
NTFS Configuration Tool Can Not Detect SATA drive in NTFS format jlconferido Linux - Newbie 7 06-30-2007 08:07 PM
ntfs-3g with FUSE (NTFS WRITE) - what do I put in fstab 1kyle SUSE / openSUSE 3 02-07-2007 07:08 AM
Writing to an NTFS volume using captive-ntfs (repairing boot.ini) macskeeball Linux - General 3 02-06-2005 10:28 PM
Captive NTFS -- full r/w ntfs access for Linux spurious Linux - Software 6 01-09-2004 01:29 AM


All times are GMT -5. The time now is 04:07 AM.

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