[Samba] Can't connect to smb share that's a mounted file system

Mike Hanby flakrat at yahoo.com
Sun Nov 13 02:44:20 GMT 2005


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 :-(

-----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 Craig
White
Sent: Saturday, November 12, 2005 17:57
To: 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 16:42 -0700, Craig White wrote:
> On Sat, 2005-11-12 at 17:33 -0600, Mike Hanby wrote:
> > Howdy y'all, I have a new partition, /dev/hdc1 that's ext3 formatted.
> > # mkfs.ext3 -L /backup /dev/hdc1
> > 
> > Then added it to /etc/fstab
> > LABEL=/backup           /backup                 ext3    defaults
1 2
> > 
> > As you can see I'm mounting the file system into directory /backup
> > 
> > My smb.conf file has the following settings:
> > 
> > security = share
> > 
> > [netfiles]
> >    comment = Network file storage space
> >    path = /backup
> >    read only = no
> >    public = yes
> > 
> > Now, before mounting /dev/hdc1, I can connect to the share from my XP
system
> > using:  \\smbmachine\netfiles
> > 
> > Then, I mount the file system to /backup:  mount /dev/hdc1   and try to
> > connect:  \\smbmachine\netfiles
> > 
> > This time XP either prompts me for a GUEST password, or I get an error
> > "\\smbmachine\netfiles is not accessible."
> > 
> > Here's the permissions:
> > 
> > /backup directory before mounting /dev/hdc1 into it:
> > drwxr-xr-x  2 root root 4096 Nov 12 17:27 /backup
> > 
> > Now, I mount /dev/hdc1 to /backup and here's the permissions
> > drwxr-xr-x  3 root root 4096 Nov 12 17:31 /backup
> > 
> > Any idea why I can browse into the netfiles share from my XP machine
when
> > /backup is just a directory, but not after mounting /dev/hdc1 to it?
> > 
> > Thanks for any help, Mike
> ----
> check the [netfiles] 'path' property
> 
> \path is Windows pathing
> /path is UNIX/Linux pathing
> 
> samba is reading a UNIX/Linux path and so it is wrong...
> 
> try 'testparm -s -v |less' to check for errors.
> 
----
also, I should have mentioned, you probably also would want something
like in [general]

guest account = SOME_ACCOUNT

and possibly

'guest only' in [netfiles]

see security = SHARE in 'man smb.conf'

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