[Samba] Smbmount question

James W. Beauchamp jbeauchamp at gesinc.com
Tue Jun 25 20:00:04 GMT 2002


Joel:
My problem was solved after I did a search on the archive.  I found a post
from Urban widmark that addresses this issue as being related to a bad rpm
package.  When I placed a symbolic link to smbmnt in /usr/bin the following
works as follows:

 mount -t smbfs //bb2/customers /mnt/customers -o
username=linux,gid=users,fmask=770,dmask=770
Password:
[root at george mnt]# ls -al
total 24
drwxr-xr-x    6 root     root         4096 Jun 25 16:20 .
drwxr-xr-x   21 root     root         4096 Jun 25 17:24 ..
drwxr-xr-x    2 root     root         4096 Jun  9 21:47 cdrom
drwxrwx---    1 root     users        4096 Jun 25 18:32 customers
drwxr-xr-x    2 root     root         4096 Jun  9 21:47 floppy
drwxr-xr-x    2 root     root         4096 Jun 25 16:20 shipping

Thus the directory is successfully mounted with the desired owner and group
and file permissions.

Thanks for your help and I hope this will help someone else.

James

----- Original Message -----
From: "James W. Beauchamp" <jbeauchamp at gesinc.com>
To: "Joel Hammer" <Joel at HammersHome.com>; <samba at lists.samba.org>
Sent: Tuesday, June 25, 2002 10:41 PM
Subject: Re: [Samba] Smbmount question


> > Does this reply say that you are now mounting the share with the correct
> > owner and user? Are you having password/user problems?
>
> Yes, it mounted with the correct owner and user.
>
> >
> > BTW, the guest user is set based on the samba configuration. Here is
> > how I do it:
> >
> > [global]
> > security = SHARE
> > log level = 3
> > guest account = ftp
> >
>
> Ahhhhhh, this may be my problem.  I was confused and was thinking that the
> use of the 'guest' directive on the smbmount command line was specifying
the
> guest account on the win2k box, not on my Linux/samba server!!! My guest
> account directive in smb.conf is still commented out which I think means
it
> is using the user 'nobody'.  I'll check that.  It appears to sort of work.
> Here is what the smbmount command gives me:
>
>
>
>
>
> > [AllFiles]
> > comment = All Files
> > path = /
> > read only = Yes
> > guest ok = Yes
> >
> > Joel
> >
> > On Tue, Jun 25, 2002 at 10:17:35PM -0400, James W. Beauchamp wrote:
> > > Joel:
> > > Don't know.  I haven't tried it with anything else (windows that is).
I
> > > think I was just able to make it work by using the 'guest' attribute.
> It
> > > gave an error when executing the smbmount command, but still appears
to
> have
> > > mounted it and with the correct ownership, root.users.  I don't know
why
> it
> > > worked though, because the 'guest' user on the win2k box is disabled.
> > >
> > > Any more ideas?
> > >
> > > James
> > >
> > > ----- Original Message -----
> > > From: "Joel Hammer" <Joel at HammersHome.com>
> > > To: "James W. Beauchamp" <jbeauchamp at gesinc.com>;
> <samba at lists.samba.org>
> > > Sent: Tuesday, June 25, 2002 10:00 PM
> > > Subject: Re: [Samba] Smbmount question
> > >
> > >
> > > > Is this a problem only with w2k ?
> > > >
> > > > Joel
> > > >
> > > >
> > >
> > >
> > >
> > > --
> > > To unsubscribe from this list go to the following URL and read the
> > > instructions:  http://lists.samba.org/mailman/listinfo/samba
> >
>






More information about the samba mailing list