See windows files

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: 2008-06-07

[global]
workgroup = WORKGROUP
printing = cups
printcap name = cups
printcap cache time = 750
cups options = raw
map to guest = Bad User
include = /etc/samba/dhcp.conf
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 = Yes
domain master = Yes
local master = Yes
os level = 65
preferred master = Yes
security = user
[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
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

[netlogon]
comment = Network Logon Service
path = /var/lib/samba/netlogon
write list = root

gordon@Gateway:~> rpm -qa | egrep ‘konqueror|samba|dolphin’
kdebase3-samba-3.5.9-65.1
kdeaddons3-konqueror-3.5.9-3.1
samba-client-3.2.0-22.1
samba-3.2.0-22.1
yast2-samba-client-2.16.9-3.1
yast2-samba-server-2.16.3-15.1
gordon@Gateway:~>

frenchsquared wrote:

>
> I was told earlier not use kde 4, that is why I switched to kde 3. The
> kde 4 was an accident the install cd didnt make it clear that it wasnt
> stable.
>
> Current Status.
>
> KDE3
> openSuse 11
>
> Can see the windows partition and all files in it
> Can connect to network (Workgroup)
> Can see and access Windows Computers
> cannot See any windows files
>
>
Have you added Samba users with smbpasswd -a <username>

P. V.
Cogito cogito ergo cogito sum.

Have you added Samba users with smbpasswd -a <username>

nope, how do I do that?

Was it your intention to make the Suse machine a Primary Domain Controller and Local Master Browser?

What did you mean when you said “I can access my server. One of the MS machines is a server.” Please supply more information.

Please post the output from this command: smbtree -b -N

gordon@Gateway:~> smbtree -b -N
WORKGROUP
\HUNI-PC
cli_start_connection: failed to connect to HUNI-PC<20> (0.0.0.0). Error NT_STATUS_BAD_NETWORK_NAME
\HP001438ABC5C4
cli_start_connection: failed to connect to HP001438ABC5C4<20> (0.0.0.0). Error NT_STATUS_BAD_NETWORK_NAME
\GATEWAY Samba 3.2.0rc1-22.1-1795-SUSE-SL11.0
\GATEWAY\IPC$ IPC Service (Samba 3.2.0rc1-22.1-1795-SUSE-SL11.0)
\GATEWAY
etlogon Network Logon Service
\GATEWAY\print$ Printer Drivers
\GATEWAY\groups All groups
\GATEWAY\users All users
\GATEWAY\profiles Network Profiles Service
\DELL
cli_start_connection: failed to connect to DELL<20> (0.0.0.0). Error NT_STATUS_BAD_NETWORK_NAME
gordon@Gateway:~>

Gateway is the linux computer
Huni-pc is my wifes laptop
Dell is Windows Vista and WAMP Server Untitled Document

When I go network / samba share
I can see the computers but cannot connect to them
I want the lunix(Gateway) machine to have the ability to read and write to the other computers. Or at least be able to access the network shares folder. On this network that is on the Dell.

All windows machines can access the network share or www. folder for WAMP located on the Dell

I am testing out the network settings at home and then I will be able to connect to the network at work. They are both configured the same since I set them both up.

frenchsquared wrote:

>
> Have you added Samba users with smbpasswd -a <username>
>
> nope, how do I do that?
>
>
Just as I stated, in a console do the following:
su
(enter root password when prompted)
smbpasswd -a <username>

where username is the name of the user you wish to allow access to samba, repeat
as needed. All of these users must also be valid Linux users.

Like swerdna has asked, just what are you trying to setup? It is very hard to
give advice when we are not sure just what you are trying to do.


P. V.
Cogito cogito ergo cogito sum.

I am trying to get access to a network share and other windows computers on my network.

At home I have a dell server with a network share.
At work I have a 1000gb network share that all employees use to transfer files. I need linux to access those files and be able to manipulate them.

Just setting up a basic network that each computer can see and access one main location. Very basic in Windows or OSX

sorry I didnt realize it was such a simple line of code to add smbpasswd -a gordon though you were just telling me the parameters. It is done.

I can see the other computer
when I try to access the Dell I get this error
Could not connect to host for smb://dell/

It seems to want a user or password but it isnt asking for one.
It also isnt password protected.

Thanks for the help

When I go network / samba share
Do you write this on a book, speak it in the telephone? Please explain how you you are doing this.

You have set your Samba configuration to make the Linux machine a Primary Domain Controller. But you are at home with a workgroup and two vista machines. While you are in a workgroup environment, you must set Samba up to be a member of a workgroup. That needs to be changed.

frenchsquared wrote:

>
> I am trying to get access to a network share and other windows computers
> on my network.
>
> At home I have a dell server with a network share.
> At work I have a 1000gb network share that all employees use to
> transfer files. I need linux to access those files and be able to
> manipulate them.

Just what kind of network is that? (AD, NT or simple Workgroup) To access an AD
network will require a lot of extra work.
>
> Just setting up a basic network that each computer can see and access
> one main location. Very basic in Windows or OSX
>
>
> sorry I didnt realize it was such a simple line of code to add
> smbpasswd -a gordon though you were just telling me the parameters. It
> is done.
>
> I can see the other computer
> when I try to access the Dell I get this error
> Could not connect to host for smb://dell/

Is dell the "netbios name"of the machine? Are all your machines in the same
workgroup? As Swerdna stated, you set your smb.conf for a PDC, you should just
get simple workgroups working first. Try setting up Samba ala Swerdna’s web
site. Lets get it working and then worry about details.
>
> It seems to want a user or password but it isnt asking for one.
> It also isnt password protected.
>
> Thanks for the help
>
>


P. V.
Cogito cogito ergo cogito sum.

Just what kind of network is that? - simple workgroup
Is dell the "netbios name"of the machine? - yes
Are all your machines in the same workgroup? - yes (WORKGROUP)
As Swerdna stated, you set your smb.conf for a PDC. - I have no idea what that means and I didnt do it unless the instruction given to me did it.
you should just get simple workgroups working first. - that is what I am trying to do.

Try setting up Samba ala Swerdna’s web site. Lets get it working and then worry about details. - I have done this twice

there is a button like windows start menu. When you click on it you get 4 options one is computer, click on that and you can see several more options one of them is network, you click on that you get a new window with several more option. One being SMB Shares. Click on that and you get a single option for workgroup (my network). clicking on the workgroup icon gets you the option to click on any one of the computers in my network. If you click on the computer in my network called Dell(computers name) you get this message:
Could not connect to host for smb://dell/

short version: computer/network/smb shares gets you to my computers.

Anything else I can provide. As I said earlier I am connected to the network, I can see the other computers on my network. I believe there is an issue with file sharing permissions. I just have no idea how linux file sharing works.

Now I understand. It might be a name resolution issue (Could not connect to host for smb://dell/)

I suggest that you change this part of the smb.conf file:

[global]
workgroup = WORKGROUP
printing = cups
printcap name = cups
printcap cache time = 750
cups options = raw
map to guest = Bad User
include = /etc/samba/dhcp.conf
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 = Yes
domain master = Yes
local master = Yes
os level = 65
preferred master = Yes
security = user

To this:

[global]
workgroup = WORKGROUP
netbios name = GATEWAY
name resolve order = bcast host lmhosts wins
server string = “”
printing = cups
printcap name = cups
printcap cache time = 750
cups options = raw
use client driver = yes
map to guest = Bad User
local master = yes
preferred master = yes
os level = 65
usershare allow guests = Yes
usershare max shares = 100
usershare owner only = False

There are buttons in Yast to do that but too many words to describe. Just open the file in a text editor with this command in a console:

kdesu kwrite /etc/samba/smb.conf

and copy my alternative [global] over your existing [global].

Make sure the firewall is off (configure it later if you want -=- or not).
Reboot your router – wait 10 sec
Reboot the Suse box – wait 30 sec
REeboot the vista server – wait 30 sec
Reboot your router – wait 10 sec
Reboot the Suse box – wait 30 sec
Reboot the vista server – wait 30 sec
That makes the Master Browser get known and appreciated quickly and makes collisons and confusion from past 7 days clear in the router.

Try again your “short version: computer/network/smb shares gets you to my computers.”

frenchsquared wrote:

>
> Just what kind of network is that? - simple workgroup
> Is dell the "netbios name"of the machine? - yes
> Are all your machines in the same workgroup? - yes (WORKGROUP)
> As Swerdna stated, you set your smb.conf for a PDC. - I have no idea
> what that means and I didnt do it unless the instruction given to me did
> it.
PDC is a primary domain controller as found in a Windows NT domain. In the mode
you have set, your Samba is trying to act as a domain controller for a domain
called Workgroup. The other computers are not domain members, so guess what?

> you should just get simple workgroups working first. - that is what I
> am trying to do.
>
> Try setting up Samba ala Swerdna’s web site. Lets get it working and
> then worry about details
. - I have done this twice
>
> there is a button like windows start menu. When you click on it you get
> 4 options one is computer, click on that and you can see several more
> options one of them is network, you click on that you get a new window
> with several more option. One being SMB Shares. Click on that and you
> get a single option for workgroup (my network). clicking on the
> workgroup icon gets you the option to click on any one of the computers
> in my network. If you click on the computer in my network called
> Dell(computers name) you get this message:
> Could not connect to host for smb://dell/
>
> short version: computer/network/smb shares gets you to my computers.
>
> Anything else I can provide. As I said earlier I am connected to the
> network, I can see the other computers on my network. I believe there is
> an issue with file sharing permissions. I just have no idea how linux
> file sharing works.
Try a smb.conf global section like this

workgroup = WORKGROUP
map to guest = Bad User
name resolve order = bcast host lmhosts
username map = /etc/samba/smbusers
printing = cups
printcap name = cups
printcap cache time = 750
cups options = raw
os level = 65
preferred master = Yes
host msdfs = No
usershare allow guests = Yes


P. V.
Cogito cogito ergo cogito sum.

PV wrote:
<snip>
> Try a smb.conf global section like this
>
> workgroup = WORKGROUP
> map to guest = Bad User
> name resolve order = bcast host lmhosts
> username map = /etc/samba/smbusers
> printing = cups
> printcap name = cups
> printcap cache time = 750
> cups options = raw
> os level = 65
> preferred master = Yes
> host msdfs = No
> usershare allow guests = Yes
>
I see swerdna has already replied. Go ahead and use his smb.conf. DO NOT try
to mix and match.

P. V.
Cogito cogito ergo cogito sum.

;)I tried:

workgroup = WORKGROUP
map to guest = Bad User
name resolve order = bcast host lmhosts
username map = /etc/samba/smbusers
printing = cups
printcap name = cups
printcap cache time = 750
cups options = raw
os level = 65
preferred master = Yes
host msdfs = No
usershare allow guests = Yes

and that is making progress I am official connected and the windows machines can access this machine(linux)

I still get:
Could not connect to host for smb://huni-pc/

hey check this out, it should be heaplful

Gateway:/home/gordon # smbclient -L // Dell

Dell: Not enough ‘’ characters in service
Usage: smbclient -?] -?EgBV] -?EgBV] -?EgBVNkPe] -?|–help] --usage]
-R|–name-resolve NAME-RESOLVE-ORDER] -M|–message HOST]
-I|–ip-address IP] -E|–stderr] -L|–list HOST] -t|–terminal CODE]
-m|–max-protocol LEVEL] -T|–tar <c|x>IXFqgbNan] -D|–directory DIR]
-c|–command STRING] -b|–send-buffer BYTES] -p|–port PORT]
-g|–grepable] -B|–browse] -d|–debuglevel DEBUGLEVEL]
-s|–configfile CONFIGFILE] -l|–log-basename LOGFILEBASE]
-V|–version] -O|–socket-options SOCKETOPTIONS]
-n|–netbiosname NETBIOSNAME] -W|–workgroup WORKGROUP]
-i|–scope SCOPE] -U|–user USERNAME] -N|–no-pass] -k|–kerberos]
-A|–authentication-file FILE] -S|–signing on|off|required]
-P|–machine-pass] -e|–encrypt] service <password>
**Gateway:/home/gordon # smbclient -L//192.168.1.4
Enter gordon’s password: **
Domain=[DELL] OS=[Windows Vista ™ Home Premium 6001 Service Pack 1] Server=[Windows Vista ™ Home Premium 6.0]

Sharename       Type      Comment
---------       ----      -------
ADMIN$          Disk      Remote Admin
Adobe PDF       Printer   Adobe PDF
C$              Disk      Default share
HP Photosmart 2570 series Printer   HP Photosmart 2570 series
HP Photosmart 2570 series (Copy 1) Printer   HP Photosmart 2570 series (Copy 1)
IPC$            IPC       Remote IPC
print$          Disk      Printer Drivers
Public          Disk      
Send To OneNote 2007 Printer   Send To OneNote 2007
www             Disk      

session request to 192.168.1.4 failed (Called name not present)
session request to 192 failed (Called name not present)
session request to *SMBSERVER failed (Called name not present)
NetBIOS over TCP disabled – no workgroup available
Gateway:/home/gordon #

That means the real problem is the name of the computer. I will change the name of the windows machines and then report back

nope :’(

I tried renaming the dell to dell-vista and I can still only access it by its ip address

frenchsquared wrote:

>
<snip>
>
> and that is making progress I am official connected and the windows
> machines can access this machine(linux)
>
> I still get:
> Could not connect to host for smb://huni-pc/
>
>

  1. What about the other Windows machine? (dell?)

  2. Does network browsing work between the two Windows machines? (If not the
    problem is on the windows side.)

  3. In a console (no need to be root) type in each of the following commands
    (no quotes ") and report back the results:
    A. “nmblookup -B <Linuxname> WORKGROUP”
    you should get back the IP of the Linux machine
    B. "nmblookup -B <PCname> ‘*’ "
    you should get back the IP of the PC; don’t worry about the message “can not
    find *”
    C. “smbclient -L <PCname> -Uguest”
    When prompted for a password press enter. You should get back the shares on
    the PC.

  4. In an earlier post, you implied the firewall was disabled. If it is not,
    then for testing purposes only, disable it.


P. V.
Cogito cogito ergo cogito sum.

1. What about the other Windows machine? Can not connect to any of them unless I use the ip address

2. Does network browsing work between the two Windows machines? Yes, windows to windows works, and at home windows to linux works, linux to windows does not.
**

  1. In a console (no need to be root) type in each of the following commands:**
    gordon@Gateway:~> nmblookup -B Gateway WORKGROUP
    querying WORKGROUP on 127.0.0.2
    192.168.5.106 WORKGROUP<00>
    gordon@Gateway:~> nmblookup -B Dell-1100 ‘*’
    querying * on 192.168.5.255
    192.168.5.106 *<00>
    gordon@Gateway:~> nmblookup -B Dell-1100 WORKGROUP
    querying WORKGROUP on 192.168.5.255
    192.168.5.106 WORKGROUP<00>
    gordon@Gateway:~> smbclient -L Dell-1100 -Uguest
    Connection to Dell-1100 failed (Error NT_STATUS_BAD_NETWORK_NAME)
    gordon@Gateway:~>

4. In an earlier post, you implied the firewall was disabled. If it is not,
then for testing purposes only, disable it.
Firewall is disabled on linux machine

when I type smb://backupserver/Backups, in a browser I can see the folders on the network share. but I get this error when trying to access them.

An error occurred while loading smb://backupserver/Backups/1 InfoMedi:
The file or folder smb://backupserver/Backups/1 InfoMedi does not exist.

Also the icon that is normally a folder, signifying these are folders isnt a folder. It is an piece of paper and a file type of unkown. I think the problem is still related to linux not being able to read the file format.