[H-GEN] FAT32 HDD access

Joel Michael joel at diggy.com.au
Tue May 30 22:18:50 EDT 2000


[ Humbug *General* list - semi-serious discussions about Humbug and ]
[ Unix-related topics.  Please observe the list's charter.          ]


----- Original Message -----
From: David Duffy <avd at audiovisualdevices.com.au>
To: <general at lists.humbug.org.au>
Sent: Wednesday, May 31, 2000 11:31 AM
Subject: Re: [H-GEN] FAT32 HDD access


> Joel Michael wrote;
> >In that case, I'd look into
> >IPfwadm/IPChains/IPNat/IPMangling/IPwhateverthehellitscallednow, and
> >really lock down the machine.  Decide what traffic you want to go in
and
> >out of which interface, and disallow everything else.  At the very
> >least, firewall off TCP/UDP port 139 on the "Internet" side of this
> >machine ("man ipchains" for more info).
>
> Do you mean the "blocking firewalling" rules? (via linuxconfig)
> There are "blocking", "forwarding","output" & "packet" sections.
> This is where I'm really lost - lots of reading but it's not making
sense!
> I have turned off all ports except http & mail. (I think)
>
I can't say I've ever used linuxconf.  AFAIK, (correct me if i'm wrong!)
linuxconf just calls ipchains with the appropriate options to add
ipchains rules.  Reading up on IPChains is highly recommended, and there
is an EXCELLENT howto on linuxdoc.org on how to use it (I know it's
excellent because i've read it a lot :).  I'm guessing the "blocking"
rules here, but without knowing what linuxconf does and how it does it,
I can't really help ya.

> >You may also need to look at the mount options for the hard drive, to
> >allow everyone to write to it (file mode 0777 - from memory it
defaults
> >to 0755 - "man mount" for more).  I'm guessing that samba uses the
> >logged-in uid to write files, and if the dos disk was mounted 0755,
then
> >you would not have permission to write to it.
>
> How do I change the permissions on that drive? I tried to chmod the
> mounted directory but that doesn't want to work. It seems to refuse
> to let me add group write to that directory or any under it. When I
list
> the mounted drives, it says that hdb is RW. Is that what you meant?
>
You won't be able to change permissions with chmod, as vfat drives don't
know what the hell file permissions are (permissions? EVERYONE has
permission! :)  You'll need to read up on the "mount" manual page, under
the filesystem-specific options.  You'll probably need to use the mount
command "mount -t vfat -o umask=0777 /dev/hdb1 /bigdisk" where /dev/hdb1
is the partition you are mounting and /bigdisk is the mount point.
--
Joel Michael
who really should be working... ;)


--
* This is list (humbug) general handled by majordomo at lists.humbug.org.au .
* Postings to this list are only accepted from subscribed addresses of
* lists 'general' or 'general-post'.



More information about the General mailing list