[Samba] Can't connect to smb share that's a mounted file system
Mike Hanby
flakrat at yahoo.com
Mon Nov 14 00:09:41 GMT 2005
Ok, I found a solution. If I disable selinux, then everything works fine,
when it's enabled samba doesn't work.
Does anyone know how to configure selinux to allow samba to function?
Here's a recap of the problems I see when selinux is set to
SELINUX=enforcing
Setting smb.conf security = share
1) If I shared a directory on the main /dev/hda1 file system (ext3), I could
browse that share from Windows XP, but only could see the directories, no
files
2) If I shared a directory on another hard drive, /dev/hdc1 (ext3), I could
see the share from Windows XP, but double clicking on the share would result
in either a password prompt or a permissions error.
Again, does anyone know how to configure selinux to work with samba
(security = share)?
This is a Redhat Fedora Core 4 box running Samba version 3.0.14a-2
Thanks, Mike
-----Original Message-----
From: samba-bounces+flakrat=yahoo.com at lists.samba.org
[mailto:samba-bounces+flakrat=yahoo.com at lists.samba.org] On Behalf Of Mike
Hanby
Sent: Saturday, November 12, 2005 23:17
To: samba at lists.samba.org
Subject: RE: [Samba] Can't connect to smb share that's a mounted file system
It's ext3 (In the original post I included the make file system command):
# mkfs.ext3 -L /backup /dev/hdc1
If I do an ls -ld /backup before mounting and after mounting, the
permissions look the same to me, obviously I'm missing something but I can't
find it!
-----Original Message-----
From: Craig White [mailto:craigwhite at azapple.com]
Sent: Saturday, November 12, 2005 20:56
To: Mike Hanby
Cc: samba at lists.samba.org
Subject: RE: [Samba] Can't connect to smb share that's a mounted file system
On Sat, 2005-11-12 at 20:44 -0600, Mike Hanby wrote:
> Howdy, the path statement in the smb.conf file is using Unix pathing.
>
> path = /backup
>
> I tried adding the "guest only = yes" to the [netfiles] section and it
> didn't change anything.
>
> Here's my [netfiles] section again:
> [netfiles]
> comment = Network file storage space
> path = /backup
> read only = no
> guest only = yes
> public = yes
>
> Basically, what it's boiling down to is, I can create smb shares on my
main
> drive, /dev/hda1, and access them fine from my XP system. It's only when
I
> try to access a share that points to a mount on my alternate hard drive
> /dev/hdc1 is when I get the password prompts / error messages.
>
> I'm thinking it's a file system permissions problem, but looking at the
> permissions I don't see a difference between ones that work and those that
> don't :-(
>
----
Ok well you're not sharing some of that information so I can only
speculate but is /dev/hdc1 ... is that ext2/ext3 ?
running the command 'mount' would give that info. I'm wondering if it's
some NTFS or vfat mounted as a user that wouldn't have permissions.
Craig
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba
More information about the samba
mailing list