windows partitions and permission
Hi, I always see default perms on all files on my /windows/C* as executable ALSO. By default. And I can not change these - using chmod. So I feel that it is not a chmod but a mount issue/property. What setting do I give in my fstab to make sure that the perms appear non-executable for windows files? Also, what settings to I give while creating an ISO image. Benefit and hint : If you are taking files from an ISOfs [CD], or from Windows FS, or browsing .mp3/.divx files in such media, then if you are using mc, pressing enter does not launch an app to handle that file, but it tries to execute it. A thing that we do not want to do. -- Rohit +9122 5692 2101 D2,floor-3,Chandivali : SDE : TLSI : 9821394599@bplmobile.com The information below is compulsorily added for non-mahindrabt recepients. ********************************************************* Disclaimer This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message and are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. ********************************************************* Visit us at http://www.mahindrabt.com
On Monday 03 February 2003 1:30 am, Rohit wrote:
Hi,
I always see default perms on all files on my /windows/C* as executable ALSO. By default. And I can not change these - using chmod. So I feel that it is not a chmod but a mount issue/property.
What setting do I give in my fstab to make sure that the perms appear non-executable for windows files? Also, what settings to I give while creating an ISO image.
-- Rohit You probably have something like /dev/hd?? /windows/? default auto,rw,exec,user 0 0 if so remove the exec part of the fstab. If not post the windows part of the fstab ... -- Franklin Maurer nebbish@sprynet.com Using SuSE 8.1
On Mon, 3 Feb 2003, Franklin Maurer wrote:
I always see default perms on all files on my /windows/C* as executable ALSO. By default. And I can not change these - using chmod. So I feel that it is not a chmod but a mount issue/property.
What setting do I give in my fstab to make sure that the perms appear non-executable for windows files? Also, what settings to I give while creating an ISO image.
You probably have something like /dev/hd?? /windows/? default auto,rw,exec,user 0 0
I have it this way [memory only][manual line written] /dev/hda1 /windows/C vfat noauto,user 0 0 I guess there must be something like setting a umask for the partition that I am trying to mount. [which would tell me about attributes of a file in a filesystem which can not handle modes for user/group/others]. Setting a partition noexec shall probably not let me execute that file, even if the file is shown as chmod'ed to a+x. I shall try and let you know. Meanwhile, if there is anyone who knows what I am asking for help about, do let me know. Thanks Franklin. Rohit ********************************************************* Disclaimer This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message and are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. ********************************************************* Visit us at http://www.mahindrabt.com
The 03.02.03 at 01:58, Franklin Maurer wrote:
You probably have something like /dev/hd?? /windows/? default auto,rw,exec,user 0 0 if so remove the exec part of the fstab.
No, that's not enough: the executable flag is not affected. That way what happens is that linux will not execute files even if marked as executable. It most be something with the mask; I tried once, but the problem is that directories must be marked as executable, and files as not executable. -- Cheers, Carlos Robinson
Rohit wrote:
Hi,
I always see default perms on all files on my /windows/C* as executable ALSO. By default. And I can not change these - using chmod. So I feel that it is not a chmod but a mount issue/property.
What setting do I give in my fstab to make sure that the perms appear non-executable for windows files? Also, what settings to I give while creating an ISO image.
Benefit and hint : If you are taking files from an ISOfs [CD], or from Windows FS, or browsing .mp3/.divx files in such media, then if you are using mc, pressing enter does not launch an app to handle that file, but it tries to execute it. A thing that we do not want to do.
If I understood you correctly, umask=111 in fstab should do it. umask bits are 'denial bits' - umask=111 sets the permissions to 666. -- opinions personal, facts suspect. http://home.arcor.de/36bit/samba.html
participants (4)
-
Andrew Williams
-
Carlos E. R.
-
Franklin Maurer
-
Rohit