[FC4] Selinux, samba and sharing a fat32 partition

Paul Howarth paul at city-fan.org
Fri Aug 19 14:58:37 UTC 2005


Christoph Wickert wrote:
> Hi!
> 
> I'm having difficulties with selinux while trying to share folders on a
> fat32 partition via samba. Sharing ext3 works fine. After 
> 
> # chcon -R user_u:object_r:samba_share_t /home/shared/
> 
> I'm able to browse the contents on /home/shared, but of course this
> doesn't work on fat 32:
> 
> #  chcon -R user_u:object_r:samba_share_t /mnt/daten/
> chcon: /mnt/daten/: Operation not supported
> 
> I tried adding the selinux options to /etc/fstab, which doesn't work
> ether: 
> 
> /dev/hda7 /mnt/daten   vfat
> defaults,rw,utf8,showexec,uid=500,gid=500,fmask=113,dmask=002,context=user_u:object_r:samba_share_t   0 0
> 
> So I wonder if sharing fat32 via samba is possible at all.

I've got one working using:

/dev/hda5 /data vfat 
uid=1012,gid=1001,fscontext=system_u:object_r:samba_share_t 0 0

Paul.




More information about the fedora-list mailing list