LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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, 03: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, 06: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-29-2003, 11:08 PM   #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-29-2003 at 11:10 PM.
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 12:29 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
Open Source Consulting | Domain Registration