samba problems

Paul pkaplan1 at comcast.net
Tue Aug 5 10:17:06 UTC 2008


On Monday 04 August 2008 6:41:02 David Meireles wrote:
> Try this on the Windows box in a command prompt:
>
> net use z: \\server\share /user:username

System error 67 has occurred.
The network name cannot be found.

Yet the share appears in explorer
>
> Later, please post the [HD3] and [general] part's of your smb.conf.
(I assume you mean [global], not [general]

[global]
workgroup = kappa_net
server string = %h server (Samba, Ubuntu)
dns proxy = no

####### Authentication #######
security = user
encrypt passwords = yes
passdb backend = tdbsam
obey pam restrictions = yes
invalid users = root
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n 
pam password change = yes
map to guest = Never

########## Domains ###########
= /usr/sbin/adduser --quiet --disabled-password --gecos "" %u

#======================= Share Definitions =======================

[printers]
comment = All Printers
browseable = no
path = /var/spool/samba
printable = yes
create mask = 0700

[print$]
comment = Printer Drivers
path = /var/lib/samba/printers

[HD3]
path = /media/hd3/


>
> PS: I had a similar problem last week with an ubuntu server, but the
> machine was acting as a domain controller...
>
> Paul escreveu:
> > Yes to all...did smbpasswd -a and smbpasswd -e (several times) and share
> > is browsable.  No luck.  Still get the windoze error.
> > Paul
> >
> > On Monday 04 August 2008 6:02:56 David Meireles wrote:
> >> Sorry, my bad... Ok then, if the username and password in the Windows
> >> box are the same in the Ubutnu box (and you have to do a "smbpasswd -e
> >> user" and "smbpasswd -a user" to enable the linux user in the samba
> >> environment) and the share is browseable, you should be able to access
> >> it. You could try something to see if you could bypass that access
> >> denied warning... try to map the share in the windows pc and set that up
> >> to use the correct credentials
> >>
> >> Paul escreveu:
> >>> My original post described the situation I'm trying to achieve.
> >>> Specifically, I want to give share access to a single windows user and
> >>> not to others. However at the moment, from the windows side, I get a
> >>> dialog telling me access is denied with no opportunity to provide a
> >>> username or password. Paul
> >>>
> >>> On Monday 04 August 2008 5:06:45 David Meireles wrote:
> >>>> Hi.
> >>>> I think you have to add the following options to you share defenition
> >>>>
> >>>> public = yes
> >>>> browseable = yes
> >>>> guest ok = yes
> >>>> Force user = some user @ the server # Don't know if this one will be
> >>>> needed, but try
> >>>>
> >>>> And of course, you'll have to have the "security = share" definition
> >>>> in the [general] part of smb.conf
> >>>>
> >>>> Paul escreveu:
> >>>>> On Sunday 03 August 2008 11:48:13 Karl Auer wrote:
> >>>>>> On Sun, 2008-08-03 at 11:36 -0400, Paul wrote:
> >>>>>>> OK, I am now able to access the share from the linux box, but not
> >>>>>>> from the windows box.
> >>>>>>
> >>>>>> How *exactly* are you attempting to connect, and what *exactly* is
> >>>>>> happening that is not what you expect?
> >>>>>
> >>>>> I've been going thru network neighborhood/windows exploder.  The
> >>>>> share is shown, but when I attempt select the share (HD3), I'm met
> >>>>> with the following error dialog:
> >>>>>
> >>>>> \\tpt41\HD3 is not accessible.  You might not have permission to use
> >>>>> this network resource.  Contact the administrator...
> >>>>>
> >>>>> Access is denied.
> >>>>>
> >>>>> I would expect to at least get a user/password dialog before the
> >>>>> error message.
> >>>>>
> >>>>>>> [HD3]
> >>>>>>> path = /media/hd3/
> >>>>>>
> >>>>>> Is this the share the Windows user is trying to access?
> >>>>>
> >>>>> Yes
> >>>>>
> >>>>> Paul






More information about the ubuntu-users mailing list