Re: [expert] Mounting vfat partitions without exec permission

2001-10-19 Thread Jeremy NG

  After mounting my FAT32 partitions, all the files are marked executable.
  How can I mount them so that normal (non-directory) files are
  non-executable?
  In addition, I only want root to have write permission.  All other users
  should only have read permission.
 
  Currently, I mounted with noexec option.  But the files still appear to
  with permission -rwxrwxrwx.
 
  TIA.
 
  Cheers,
  Jeremy

 i have no win$ partition on my box, so i'm not sure of the answer. but as
i
 can remember, you can set permissions on your FAT32 partitions by
specifying
 umask in /etc/fstab for each of them.
 if you want all files with 644 (or -rw-r--r--) then umask=133
 some can correct me if it's wrong...


The moment I set umask with the execute bit turned on, all users cannot even
cd into those vfat directories.  However, root still can and the permissions
are what I wanted -rw-r--r-- for regular files.

What options will set the mounted partitions to have the following
permissions:
-rw-r--r--  root  root for regular files
drwxr-xr-x  root  root for directories

I remembered I could do this in Mandrake 8.0 with the options
noexec,mode=644 in /etc/fstab.
However, in 8.1, this option doesn't seem to work for vfat patitions.
However, it works for iso9660 for /dev/cdrom though.

Cheers,
J





Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] Mounting vfat partitions without exec permission

2001-10-18 Thread jipe

Le Jeudi 18 Octobre 2001 07:04, vous avez écrit :
 Hi everybody,

 After mounting my FAT32 partitions, all the files are marked executable.
 How can I mount them so that normal (non-directory) files are
 non-executable?
 In addition, I only want root to have write permission.  All other users
 should only have read permission.

 Currently, I mounted with noexec option.  But the files still appear to
 with permission -rwxrwxrwx.

 TIA.

 Cheers,
 Jeremy

i have no win$ partition on my box, so i'm not sure of the answer. but as i 
can remember, you can set permissions on your FAT32 partitions by specifying 
umask in /etc/fstab for each of them.
if you want all files with 644 (or -rw-r--r--) then umask=133
some can correct me if it's wrong...

bye
jipe

-- 
Ta mere elle regarde Bioman 



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



[expert] Mounting vfat partitions without exec permission

2001-10-17 Thread Jeremy NG

Hi everybody,

After mounting my FAT32 partitions, all the files are marked executable.
How can I mount them so that normal (non-directory) files are
non-executable?
In addition, I only want root to have write permission.  All other users
should only have read permission.

Currently, I mounted with noexec option.  But the files still appear to with
permission -rwxrwxrwx.

TIA.

Cheers,
Jeremy





Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com