LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-14-2005, 11:02 AM   #1
nasty_daemon
LQ Newbie
 
Registered: Sep 2005
Posts: 29

Rep: Reputation: 15
Mount NTFS so that files are not executable buts directories are


hey, i have a problem when mounting NTFS partitions

i use the options: users,umask=0222
and all the files are with execute permisions.
I tried noexec parameter but that did not work.
I haven't managed up to now in a NTFS partition to have
the directories with execute permission so that i can cd them and the
files with no execute..
 
Old 09-14-2005, 12:27 PM   #2
rtg
Member
 
Registered: Aug 2005
Location: Ukraine
Distribution: Ubuntu 9.04
Posts: 99
Blog Entries: 3

Rep: Reputation: 19
Had the exact wish as you now. Fixed it and now fstab line is
Code:
/dev/hda3 /mnt/win ntfs ro,nls=koi8-r,umask=0000,fmask=0111 0   0
so the options are umask=0000,fmask=0111
 
Old 09-14-2005, 03:44 PM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
There are separate fmask and dmask options for mounting the NTFS filesystem. Dmask is for directories and fmask is for files

Last edited by jschiwal; 09-20-2005 at 12:46 AM.
 
Old 09-15-2005, 09:50 AM   #4
nasty_daemon
LQ Newbie
 
Registered: Sep 2005
Posts: 29

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by jschiwal
There are seperate fmask and dmask options for mounting the NTFS filesystem. Dmask is for directories and fmask is for files
where is this written ??
man mount When i go to the specific options for NTFS there isn't such an option ..

thnx for the help both of you
 
Old 09-15-2005, 12:35 PM   #5
rtg
Member
 
Registered: Aug 2005
Location: Ukraine
Distribution: Ubuntu 9.04
Posts: 99
Blog Entries: 3

Rep: Reputation: 19
This info should be in Documentation/filesystems/ntfs.txt under you linux kernel source directory.
 
Old 09-16-2005, 04:33 AM   #6
small_boy22
Member
 
Registered: May 2005
Posts: 45

Rep: Reputation: 15
Quote:
Originally posted by rtg
This info should be in Documentation/filesystems/ntfs.txt under you linux kernel source directory.
thnx.
 
Old 09-20-2005, 01:51 AM   #7
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
The fmask and umask options are also explained in the vfat section of 'man 8 mount'.

There may be a "man 8 fstab" also to reference.
 
  


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
Can't mount hda /ntfs/ with RUSSIAN files properly jesternorth Linux - Newbie 1 10-26-2004 04:18 AM
Changing NTFS files from executable Odd_Bloke Linux - Newbie 1 08-29-2003 08:24 PM
SuSe 8 makes NTFS mount point, but doesn't create directories, error when mounting... BlackDogg Linux - Distributions 5 08-01-2002 05:08 AM
Converting perl files to executable mac files mrozkan Programming 0 04-16-2002 09:56 AM
how do I mount files on NTFS OR FAT32 Partition skhurram77 Linux - Newbie 3 02-20-2002 05:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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