LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices



Reply
 
Search this Thread
Old 11-26-2003, 04:05 PM   #1
demmylls
Member
 
Registered: Aug 2003
Location: AT
Distribution: Fedora Core 3
Posts: 404

Rep: Reputation: 30
permission of mounted NTFS partition


i "su" to root account from a normal account in RH9 and do this command

# umount /d
# chmod -Rv a+rx /d
# chmod -v a+rx /dev/hda5 (is a NTFS partition)

and the output said this r-xr-xr-x for the following folder /d. that folder which is created by root and owned by root.
i used that folder to mount my d:\ to it which is NTFS partition.

the output told me that all users can read and execute from that folder right? but i cant even access that folder

# exit
# cd /d
permmission denied

what is happenning?
what else can i try to make all my folder used to mount NTFS partition can be accessed by normal use?
 
Old 11-27-2003, 07:34 AM   #2
iceman47
Senior Member
 
Registered: Oct 2002
Location: Belgium
Distribution: Debian, Free/OpenBSD
Posts: 1,123

Rep: Reputation: 47
You need to give the permission for your user or group in the mount command, or in /etc/fstab.
But know that you can't write to NTFS (last time I checked, could be wrong).
 
Old 11-30-2003, 12:08 AM   #3
rehab junkie
Member
 
Registered: Nov 2003
Location: /var/local/pub/bar
Distribution: OSX 10.4.9
Posts: 259

Rep: Reputation: 30
Quote:
Originally posted by iceman47
You need to give the permission for your user or group in the mount command, or in /etc/fstab.
But know that you can't write to NTFS (last time I checked, could be wrong).
There is some EXPERIMENTAL support for writing to NTFS partitions from within Linux, but it is extremely dangerous to do so. There won't be full, stable support for r/w support from within Linux for some time yet.


To give the correct permissions while mounting an NTFS partition from the console, you would execute a command such as this:

mount /dev/hda5 /mnt/windows -t ntfs -r -o umask=0222


The umask= switch determines the permissions with which the partition is mounted. To arrive at the number, calculate the octal permissions you require, and take that from 777. In this instance, 0222 will give permissions of r-x-r-x-r-x, which is what you want.

The appropriate /etc/fstab entry will be this:

/dev/hda1 /mnt/windows ntfs ro,umask=0222 0 0


Hope this helps

Last edited by rehab junkie; 11-30-2003 at 12:10 AM.
 
  


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
Samba - sharing mounted NTFS partition SirAeryn Linux - Networking 2 09-11-2005 09:54 PM
Problem reading mounted NTFS partition... Virak Linux - Newbie 8 08-18-2005 05:38 PM
NTFS partition cannot be mounted after converting from FAT32 aweir14150 Mandriva 5 01-27-2005 04:11 PM
Allowing read/write on mounted captive-ntfs partition divsky Linux - General 6 04-15-2004 11:52 AM
ntfs partition permission problem pdb1013 Linux - Newbie 4 07-22-2003 12:47 AM


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