Re: security problem with fat32 on suse 9.0

From: /dev/rob0 (rob0_at_gmx.co.uk)
Date: 01/30/04


Date: Thu, 29 Jan 2004 18:51:16 -0800

In article <bvb9bh$qjjmj$1@ID-47665.news.uni-berlin.de>,
  Gregor Ries wrote:
>> IIRC from your OP, your answers should all be found in the man pages for
>> mount(8) and fstab(5).
> No, I am sorry - on the manpages is written to use dmask and fmask; but as I
> wrote, on SuSE they are not working. That's a bug in SuSE, but how to deal
> with it if you must use SuSE?

Well, we're off topic here ... there's no security issue. Most likely
the only "bug" is incorrect syntax. For one thing, fmask and dmask,
according to my man page, are not supported in 2.4.x kernels. Did you
try umask? Did you understand that these are the ABSENT permission bits?

For another thing, if the uid and/or gid option is not set the umask
might not matter. The init process runs as root:root, so without uid or
gid that's who owns all the files. I no longer have need for primitive
filesystems, but when I did I used a GID value with the users who might
need access, and I used a umask=002 or 007. You mentioned having set the
GID, but not what GID you used.

If you're still having trouble look for examples on Google. TRY "umask"
TOO. If still no luck, post your EXACT fstab line here, the EXACT mount
command you use (be sure to add in the "-v" option) and the complete
command output. I'm sure it's a simple thing to solve.

-- 
  /dev/rob0 - preferred_email=i$((28*28+28))@softhome.net
  or put "not-spam" or "/dev/rob0" in Subject header to reply


Relevant Pages

  • Re: security problem with fat32 on suse 9.0
    ... on SuSE they are not working. ... if the uid and/or gid option is not set the umask ... > gid that's who owns all the files. ... If still no luck, post your EXACT fstab line here, the EXACT mount ...
    (comp.os.linux.security)
  • Re: Default permissions of /home/user..
    ... You also should think about the umask being used. ... and users can chgrp files they want to share from their ... personal GID to the project GID. ...
    (FreeBSD-Security)
  • [SLE] Problem mount samba share in SuSE 9.1
    ... using suse 8.2. ... seems like using the same UID and GID from the system) not the same with UID ... home directory in file-server, cause it's not belong to me... ...
    (SuSE)
  • [SLE] Problem mount samba share in SuSE 9.1
    ... using suse 8.2. ... seems like using the same UID and GID from the system) not the same with UID ... home directory in file-server, cause it's not belong to me... ...
    (SuSE)
  • Re: Fstab and JFS
    ... ~$ mount /tmp/m1 ... Obviously umask, uid, gid don't work as JFS is a unixish filesystem that knows about users and permissions. ...
    (Ubuntu)