On Tue November 17 2009 03:16 pm, WillyFoobar wrote:
>
> Hello,
> I have problems getting access to a printer using the samba interface.
>
> I seem to have problems getting the name of my samba server.
>
> I get this error:
> NT_STATUS_BAD_NETWORK_NAME
>
> What is wrong?
>
> Thanks for your help!
>
> This is the log output.
>
>
> Domain=[WALLEE] OS=[Unix] Server=[Samba 3.2.7-11.2.1-2080-SUSE-CODE11]
>
> PING wallee.haferkorn (192.168.0.11) 56(84) bytes of data.
> 64 bytes from wallee.haferkorn (192.168.0.11): icmp_seq=1 ttl=64
> time=0.167 ms
>
> — wallee.haferkorn ping statistics —
> 1 packets transmitted, 1 received, 0% packet loss, time 0ms
> rtt min/avg/max/mdev = 0.167/0.167/0.167/0.000 ms
>
> Testing laserjet4p on haferkorn/wallee:
> tree connect failed: NT_STATUS_BAD_NETWORK_NAME
>
> Share laserjet4p on haferkorn/wallee does not accept print jobs.
>
>
> Yours,
> Willy
>
Willy;
I’m a bit confused here with your syntax. I assume the domain(workgroup) name
is “wallee” and “haferkorn” is the name of a machine. Is that correct?
The proper syntax is:
Hello,
I am sorry,
I forgot the most important details.
My OpenSuse-11.1 is on the computer duffy (192.168.0.2)
the Windows Vista (the target server, I want to access the printer is called wallee and has the IP 192.168.0.20)
both should be in the domain “h_a_f_e_r_k_o_r_n”)
(remove the underlines)
The printer is called “laserjet4p” and is set as shared!
Here is the output from the testparm::::::::::::::::::
hafi@duffy:~> testparm -v /etc/samba/smb.conf wallee 192.168.0.20
Load smb config files from /etc/samba/smb.conf
Processing section “[homes]”
Processing section “[profiles]”
Processing section “[users]”
Processing section “[groups]”
Processing section “[printers]”
Processing section “[print$]”
Loaded services file OK.
Server role: ROLE_STANDALONE
Allow connection from wallee (192.168.0.20) to homes
Allow connection from wallee (192.168.0.20) to profiles
Allow connection from wallee (192.168.0.20) to users
Allow connection from wallee (192.168.0.20) to groups
Allow connection from wallee (192.168.0.20) to printers
Allow connection from wallee (192.168.0.20) to print$
========================================================
Here is the content from /etc/samba/smb.conf
smb.conf is the main Samba configuration file. You find a full commented
version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE if the
samba-doc package is installed.
Date: 2009-03-20
[global]
workgroup = haferkorn
printing = cups
printcap name = cups
printcap cache time = 750
cups options = raw
map to guest = Bad User
logon path = \%L\profiles.msprofile
logon home = \%L%U.9xprofile
logon drive = P:
usershare allow guests = Yes
add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody -s /bin/false %m$
domain logons = No
domain master = No
security = user
usershare max shares = 100
idmap gid = 500-20000
idmap uid = 500-20000
netbios name = wallee
[homes]
comment = Home Directories
valid users = %S, %D%w%S
browseable = No
read only = No
inherit acls = Yes
[profiles]
comment = Network Profiles Service
path = %H
read only = No
store dos attributes = Yes
create mask = 0600
directory mask = 0700
[users]
comment = All users
path = /home/duffy
read only = No
inherit acls = Yes
veto files = /aquota.user/groups/shares/
[groups]
comment = All groups
path = /home/groups
read only = No
inherit acls = Yes
[printers]
comment = All Printers
path = /var/tmp
printable = Yes
create mask = 0600
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @ntadmin root
force group = ntadmin
create mask = 0664
directory mask = 0775
On Wed November 18 2009 02:56 pm, WillyFoobar wrote:
>
> Hello,
> I am sorry,
> I forgot the most important details.
> My OpenSuse-11.1 is on the computer duffy (192.168.0.2)
> the Windows Vista (the target server, I want to access the printer is
> called wallee and has the IP 192.168.0.20)
> both should be in the domain “h_a_f_e_r_k_o_r_n”)
> (remove the underlines)
> The printer is called “laserjet4p” and is set as shared!
>
>
> Here is the output from the testparm::::::::::::::::::
>
> hafi@duffy:~> testparm -v /etc/samba/smb.conf wallee 192.168.0.20
> Load smb config files from /etc/samba/smb.conf
> Processing section “[homes]”
> Processing section “[profiles]”
> Processing section “[users]”
> Processing section “[groups]”
> Processing section “[printers]”
> Processing section “[print$]”
> Loaded services file OK.
> Server role: ROLE_STANDALONE
> Allow connection from wallee (192.168.0.20) to homes
> Allow connection from wallee (192.168.0.20) to profiles
> Allow connection from wallee (192.168.0.20) to users
> Allow connection from wallee (192.168.0.20) to groups
> Allow connection from wallee (192.168.0.20) to printers
> Allow connection from wallee (192.168.0.20) to print$
>
>
> ========================================================
> Here is the content from /etc/samba/smb.conf
> ========================================================
> # smb.conf is the main Samba configuration file. You find a full
> commented
> # version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE if
> the
> # samba-doc package is installed.
> # Date: 2009-03-20
> [global]
> workgroup = haferkorn
> printing = cups
> printcap name = cups
> printcap cache time = 750
> cups options = raw
> map to guest = Bad User
> logon path = \%L\profiles.msprofile
> logon home = \%L%U.9xprofile
> logon drive = P:
> usershare allow guests = Yes
> add machine script = /usr/sbin/useradd -c Machine -d
> /var/lib/nobody -s /bin/false %m$
> domain logons = No
> domain master = No
> security = user
> usershare max shares = 100
> idmap gid = 500-20000
> idmap uid = 500-20000
> netbios name = wallee
With the above your Linux machine has the netbios name “wallee” and will
conflict with your VISTA name. This should be:
I would suggest you set the printer up directly in CUPS. From any browser go
to: http://localhost:631/. Set the URI to:
smb:///
or
smb:///
In your case these become:
smb://wallee/laserjet4p
or
smb://192.168.0.20/laserjet4p
When CUPS asks you to authenticate the user name should be “root” and the
password should be your root’s password.
You may have problems resolving names with you smb.conf so at a minimum add
this parameter to the [Global] section:
name resolve order = bcast host lmhosts
Make sure that the firewall allows samba and broad casts.
Make sure both nmbd and smbd are started. An easy way to check this is to
open a console window and enter:
You can also assure proper name resolution by entering wallee in
/etc/hosts
The form of your entry would be:
<IP of Machine> <machine name>.<domain name>
P. V.
“We’re all in this together, I’m pulling for you.” Red Green
On Thu November 19 2009 04:46 pm, WillyFoobar wrote:
>
> Hello,
>
> I seem to have two smb deamons running. Is this OK?
> ----------------------------------
> duffy:/home/duffy/hafi # ps -A | grep [s,n]mb
> 2557 ? 00:00:49 nmbd
> 3791 ? 00:00:00 smbd
> 3847 ? 00:00:00 smbd
> ----------------------------------
>
> When I am doing the CUPS config
> at localhost:631 I get this error message…
>
> ----------------------------------
> Beim Laden von http://tinyurl.com/yjb86eh ist folgender Fehler
> aufgetreten:
> Ungültige Adresse (URL): http://::1:631/printers/laserjet4p_wallee.
> ----------------------------------
> Should I disable IP6 Protokoll??
>
> Yours,
> Willy
>
Willy;
Two smbds running is not uncommon. There will be one for each connection.
It looks like it, that is disable IPv6. Did you enter the actual IP?
Just to be certain, is the printer share name, viewed from Windows,
laserjet4p or laserjet4p_wallee?
Did you correct the netbios name parameter in /etc/samba/smb.conf?
–
P. V.
“We’re all in this together, I’m pulling for you.” Red Green
> 2. It looks like it, that is disable IPv6. Did you enter the actual IP?
> 3. Just to be certain, is the printer share name, viewed from Windows, laserjet4p or laserjet4p_wallee?
seen from windows, the printer name is laserjet4p
> 4. Did you correct the netbios name parameter in /etc/samba/smb.conf?
Yes, I correcetd the smb.conf,
see here-----------------------
smb.conf is the main Samba configuration file. You find a full commented
version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE if the
samba-doc package is installed.
Date: 2009-03-20
[global]
workgroup = haferkorn
printing = cups
printcap name = cups
printcap cache time = 750
cups options = raw
map to guest = Bad User
logon path = \%L\profiles.msprofile
logon home = \%L%U.9xprofile
logon drive = P:
usershare allow guests = Yes
add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody -s /bin/false %m$
domain logons = No
domain master = No
security = user
usershare max shares = 100
idmap gid = 500-20000
idmap uid = 500-20000
** netbios name = duffy
name resolve order = bcast host lmhosts**
[homes]
comment = Home Directories
valid users = %S, %D%w%S
browseable = No
read only = No
inherit acls = Yes
[profiles]
comment = Network Profiles Service
path = %H
read only = No
store dos attributes = Yes
create mask = 0600
directory mask = 0700
[users]
comment = All users
path = /home/duffy
read only = No
inherit acls = Yes
veto files = /aquota.user/groups/shares/
[groups]
comment = All groups
path = /home/groups
read only = No
inherit acls = Yes
[printers]
comment = All Printers
path = /var/tmp
printable = Yes
create mask = 0600
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @ntadmin root
force group = ntadmin
create mask = 0664
directory mask = 0775
Yours,
Willy
P.S.: should I settle up OpenSuSE 11.2 and look, if it works better?
On Tue November 24 2009 01:16 pm, WillyFoobar wrote:
>
> Hello,
>
>
>> 2. It looks like it, that is disable IPv6. Did you enter the actual
> IP?
>> 3. Just to be certain, is the printer share name, viewed from
> Windows, laserjet4p or laserjet4p_wallee?
> seen from windows, the printer name is laserjet4p
>
>
>> 4. Did you correct the netbios name parameter in
> /etc/samba/smb.conf?
<snip>
>
>
> Yours,
> Willy
>
> P.S.: should I settle up OpenSuSE 11.2 and look, if it works better?
>
>
Willy;
You are setting CUPS to print to “laserjet4p_wallee” but it looks to me like
the actual share name is: laserjet4p. The name you use in the URL should
agree with the share name you set on the Windows machine.
I’m afraid I don’t quite understand what you mean by “should I settle up
OpenSuSE 11.2 and look, if it works better”. If you mean reinstall 11.2, I
think this is a bit drastic unless you are having other problems. I have not
had a chance to go over your smb.conf carefully, but at first glance it seems
OK. If I spot a serious error I’ll post back.
P. V.
“We’re all in this together, I’m pulling for you.” Red Green