Sambaprobleem, geen shares??

Pagina: 1
Acties:
  • 117 views sinds 30-01-2008
  • Reageer

  • Red Sonja
  • Registratie: Juli 2001
  • Laatst online: 01-07 13:16

Red Sonja

Linux: power to de wortel

Topicstarter
Voordat iemand boos wordt: Ja, ik heb al gezocht voor een antwoord.

Ik heb t volgende probleem:
Client: SuSE 7.3, Samba 2.2.1a
Server: Win2K workstation.
Het vage is dat client wel kan connecten maar, er dan weer uitgegooid wordt.
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
linux:/home/elders # smbd -V
Version 2.2.1a
linux:/home/elders # smbclient -L Webdesignserver
added interface ip=192.168.10.73 bcast=192.168.10.255 nmask=255.255.255.0
Got a positive name query response from 192.168.10.102 ( 192.168.10.102 )
Password: 
Anonymous login successful
Domain=[EVERYONE] OS=[Windows 5.0] Server=[Windows 2000 LAN Manager]

      Sharename Type    Comment
      --------- ----    -------
Error returning browse list: ERRDOS - ERRnoaccess (Access denied.)

      Server           Comment
      ---------     -------

      Workgroup     Master
      ---------     -------
linux:/home/elders # smbclient //Webdesignserver/Webdesign
added interface ip=192.168.10.73 bcast=192.168.10.255 nmask=255.255.255.0
Got a positive name query response from 192.168.10.102 ( 192.168.10.102 )
Password: 
Anonymous login successful
Domain=[EVERYONE] OS=[Windows 5.0] Server=[Windows 2000 LAN Manager]
tree connect failed: ERRDOS - ERRnoaccess (Access denied.)
linux:/home/elders # smbclient //Webdesignserver/Webdesign -U 'Elders 14' -N -W EVERYONE
added interface ip=192.168.10.73 bcast=192.168.10.255 nmask=255.255.255.0
Got a positive name query response from 192.168.10.102 ( 192.168.10.102 )
Anonymous login successful
Domain=[EVERYONE] OS=[Windows 5.0] Server=[Windows 2000 LAN Manager]
tree connect failed: ERRDOS - ERRnoaccess (Access denied.)
linux:/home/elders # mount -t smbfs -o username=admin,password=admin,ip=192.168.10.102 //Webdesignserver/Webdesign /windows/G
29240: session setup failed: ERRDOS - ERRnoaccess (Access denied.)
SMB connection failed
linux:/home/elders # nmblookup Webdesignserver
querying Webdesignserver on 192.168.10.255
192.168.10.102 Webdesignserver<00>
linux:/home/elders # smbmount //Webdesignserver/Webdesign /windows/G -o guest, username=Elders 14
30237: session setup failed: ERRDOS - ERRnoaccess (Access denied.)
SMB connection failed

Zoals te zien is probeer ik van alles. Ik heb al gezocht bij samba.org maar, kan maar geen oplossing vinden :'( . K heb geprobeert in te loggen als `Elders 14' (geen pass) en met de admin (pass=admin) maar, k krijg steeds overal dezelfde foutmelding..
Help someone ;(

And the beast shall be made legion. Its numbers shall be increased a thousand thousand fold. The din of a million keyboards like unto a great storm shall cover the earth, and the followers of Mammon shall tremble. from The Book of Mozilla, 3:31


  • cashewnut
  • Registratie: Januari 2002
  • Laatst online: 06-07 19:49
zou ook wel handig zijn als je je conf-bestand ff post...

  • Red Sonja
  • Registratie: Juli 2001
  • Laatst online: 01-07 13:16

Red Sonja

Linux: power to de wortel

Topicstarter
Dit gaat om een client dus kweetnie wat je met de .conf moet maar, asje:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
[global]
      workgroup = TUX-NET
      os level = 2
      kernel oplocks = No

      security = user
      encrypt passwords = Yes
      guest account = Nobody
      map to guest = Bad User
# This tells samba to use the file smbusers for user mapping.
;    username map = /etc/samba/smbusers

# This tells samba to write log files per machine.
;    log file = /var/log/samba/%m
# This sets an alternate log level. Default is 2.
;    log level = 3

# Uncomment the following, if you want to use an existing NT-Server to
# authenticate users, but don't forget that you also have to create them
# locally!
;    security = server
;    password server = 192.168.1.10

      printing = LPRNG
      printcap name = /etc/printcap
      load printers = Yes

# These settings are a suggestion for a local network. Cf. section
# 'socket options' in the man page of smb.conf and socket(7).
      socket options = SO_KEEPALIVE IPTOS_LOWDELAY TCP_NODELAY 

# Uncomment this, if you want to integrate your server
# into an existing net e.g. with NT-WS to prevent nettraffic
;    local master = No   

# Please uncomment the following entry and replace the ip number and
# netmask with the correct numbers for your ethernet interface.
;    interfaces = 192.168.1.1/255.255.255.0
   
# If you want Samba to act as a wins server, please set
# 'wins support' to yes.
      wins support = No

# If you want Samba to use an existing wins server, please uncomment the
# following line and replace the dummy with the wins server's ip number.
;    wins server = 192.168.1.1

# Do you wan't samba to act as a logon-server for your windows 95/98
# clients, so uncomment the following:
;    domain logons = Yes
;    domain master = Yes
# For a specific logon script per user
;    logon script = %U.bat
# For a specific logon script per machine
;    logon script = %m.bat

# Where to store the logon scripts.
;[netlogon]
;    comment = Network Logon Service
;    path = /var/lib/samba/netlogon

# Where profiles of Windows 9x systems are stored.
# First example for a centralized place.
;    logon home = \\%L\profiles\%U
# Second example for a subdirectory of the users home.
;    logon home = \\%L\%U\profile
# Where profiles of Windows NT systems are stored.
;    logon path = \\%L\profiles\%U

# Extra share for profiles. Default is the home of the user.
;[profiles]
;    comment = Network Profiles Service
;    path = /var/lib/samba/profiles
;    browseable = No

# Set these two parameters to your DOS code page and appropriate UNIX
# character set. These values are for west European languages (Latin-9)
# UNIX character and MS-DOS Latin 1 code page.
      character set = ISO8859-15
      client code page = 850
                
[homes]
      comment = Home Directories
      read only = No
      create mask = 0640
      directory mask = 0750
      browseable = No

# The following share gives all users access to the Server's CD drive,
# assuming it is mounted under /media/cdrom. To enable this share,
# please remove the semicolons before the lines
;[cdrom]
;    comment = Linux CD-ROM
;    path = /media/cdrom
;    locking = No

[printers]
      comment = All Printers
      path = /var/tmp
      create mask = 0600
      printable = Yes
      browseable = No

[toevoeging]
Er bestaat wel een share, vanaf XP hebben anderen wel toegang.

And the beast shall be made legion. Its numbers shall be increased a thousand thousand fold. The din of a million keyboards like unto a great storm shall cover the earth, and the followers of Mammon shall tremble. from The Book of Mozilla, 3:31


  • cashewnut
  • Registratie: Januari 2002
  • Laatst online: 06-07 19:49
hmm... ik zie zo niet wat het probleem is. heb net ff in het changelog gekeken, er zijn wel bugfixes toegepast na versie 2.2.1a mbt. windows 2000, maar dat heeft vooral te maken met PDC's en zo te zien maak jij gebruik van een workgroup. je kunt het iig proberen met een nieuwere versie.

op stage (1 jaar geleden) heb ik ook een samba-client geconfigged, deze kon windows 98 en 2000 machines bereiken. misschien heb je aan de smb.conf van die computer:

[global]

netbios name = dhcprouter
workgroup = tse
server string = Linux DHCP-server/router, kamer 1.47 Storingsdienst
wins support = yes
remote announce = 192.168.1.255 192.168.2.255
os level = 65
local master = yes
guest account = nobody
security = user
map to guest = bad user

[public]

comment = publieke share
path = /public
public = yes
writeable = yes

[root]

comment = root directory
path = /
public = yes
writeable = no

dit was trouwens wel een oudere versie van samba, 2.0.7 ofzo.

[edit: typo]

  • cool_zero
  • Registratie: Juni 2001
  • Laatst online: 08-07 21:36
Het probleem zit bij je win2k bak, niet in je linux bak, die logt namelijk goed in als anonymous, alleen staan de rechten in win2k niet goed en krijg je geen lijst van shares te zien. Waarschijnlijk moet je het guest account aanzetten in win2k of aan samba de juiste username en password meegeven.

  • Red Sonja
  • Registratie: Juli 2001
  • Laatst online: 01-07 13:16

Red Sonja

Linux: power to de wortel

Topicstarter
K heb inmiddels 2.2.5 gecompileerd en dit krijg ik nu:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
linux:/usr/local/samba/bin # ./findsmb

                      *=DMB
                      +=LMB
IP ADDR    NETBIOS NAME     WORKGROUP/OS/VERSION 
---------------------------------------------------------------------
192.168.10.2        WS19        [    EVERYONE   ]
192.168.10.3        WS8      [   EVERYONE   ]
192.168.10.5        SHARONNETJE     [    EVERYONE   ]
192.168.10.6        OEMCOMPUTER    +[    OEMWORKGROUP  ]
192.168.10.7        WS33        [    EVERYONE   ]
192.168.10.8        WS2      [   EVERYONE   ]
192.168.10.14        CONNY       [   EVERYONE   ]
192.168.10.15        WS22       [    EVERYONE   ]
192.168.10.16        ELDERS13    +[EVERYONE] [Windows 5.1] [Windows 2000 LAN Manager]
192.168.10.17        WS12       [    EVERYONE   ]
192.168.10.18        WS5         [   EVERYONE   ]
192.168.10.19        WS1         [   EVERYONE   ]
192.168.10.21        SIMONE     [    EVERYONE   ]
192.168.10.22        WS24       [EVERYONE] [Windows 5.0] [Windows 2000 LAN Manager]
192.168.10.23        PC71       [EVERYONE] [Windows 5.0] [Windows 2000 LAN Manager]
192.168.10.24        AOPEN       [   WORKGROUP     ]
192.168.10.25        MENNO       [   EVERYONE   ]
192.168.10.26        BRUINGOED   [   EVERYONE   ]
192.168.10.27        TELEFONISTE     [   EVERYONE   ]
192.168.10.28        CISKA       [   EVERYONE   ]
192.168.10.31        LAPTOP     [    EVERYONE   ]
192.168.10.34   BAKKER-AGV4784B +[WERKGROEP] [Windows 5.0] [Windows 2000 LAN Manager]
192.168.10.102  WEBDESIGNSERVER  [EVERYONE] [Windows 5.0] [Windows 2000 LAN Manager]
192.168.10.115      MEHMET      [    EVERYONE   ]
192.168.10.155      ELDERS WS14     [    EVERYONE   ]
linux:/usr/local/samba/bin # ./smbclient -L Webdesignserver
added interface ip=192.168.10.73 bcast=192.168.10.255 nmask=255.255.255.0
Got a positive name query response from 192.168.10.102 ( 192.168.10.102 )
Password: 
Anonymous login successful
Domain=[EVERYONE] OS=[Windows 5.0] Server=[Windows 2000 LAN Manager]

      Sharename Type    Comment
      --------- ----    -------
Error returning browse list: NT_STATUS_ACCESS_DENIED

      Server           Comment
      ---------     -------

      Workgroup     Master
      ---------     -------

linux:/usr/local/samba/bin # ./smbclient -L Webdesignserver -U ELDERS13%admin
added interface ip=192.168.10.73 bcast=192.168.10.255 nmask=255.255.255.0
Got a positive name query response from 192.168.10.102 ( 192.168.10.102 )
session setup failed: NT_STATUS_LOGON_FAILURE

Ik zal zo proberen bij een andere share in te loggen.. mocht t lukken dan heb je gelijk (let's hope so)

And the beast shall be made legion. Its numbers shall be increased a thousand thousand fold. The din of a million keyboards like unto a great storm shall cover the earth, and the followers of Mammon shall tremble. from The Book of Mozilla, 3:31


  • Red Sonja
  • Registratie: Juli 2001
  • Laatst online: 01-07 13:16

Red Sonja

Linux: power to de wortel

Topicstarter
Bingo:
code:
1
2
3
4
5
6
7
8
9
10
11
linux:/usr/local/samba/bin # ./smbclient  //Sharonnetje/c-sharonnetj -U ELDERS13 -N
added interface ip=192.168.10.73 bcast=192.168.10.255 nmask=255.255.255.0
Got a positive name query response from 192.168.10.5 ( 192.168.10.5 )
smb: \> ls
  SUHDLOG.DAT               HR     8448  Fri Dec  3 11:49:30 1999
  BOOTLOG.TXT               AH    93425  Mon May 13 16:34:52 2002
  FRUNLOG.TXT                A     3288  Fri May 10 16:08:06 2002
  CONFIG.SYS                  A 371  Fri May 10 16:08:08 2002
  CONFIG.DOS                  A 193  Fri May 10 16:08:08 2002
  BOOTLOG.PRV               AH    90512  Mon May 13 09:53:44 2002
enz...

Dat was een normale win98.. en wat leuk is:
code:
1
2
3
4
5
6
7
8
9
10
11
12
linux:/usr/local/samba/bin # ./smbclient  //WEBDESIGNSERVER/Webdesign -U ELDERS13 -N
added interface ip=192.168.10.73 bcast=192.168.10.255 nmask=255.255.255.0
Got a positive name query response from 192.168.10.102 ( 192.168.10.102 )
Domain=[EVERYONE] OS=[Windows 5.0] Server=[Windows 2000 LAN Manager]
smb: \> quit
linux:/usr/local/samba/bin # smbmount //WEBDESIGNSERVER/Webdesign /windows/G -o guest,username=ELDERS14
linux:/usr/local/samba/bin # cd /windows/G
linux:/windows/G # ls
.                    JS32.dll             Photoshp.reg            TELECOM       kpn.txt
..                  MPS.dll            Plug-Ins             TypeLibrary.tlb  link virusscanner.txt
PSUT9516.DLL            QUEUES                Webpages     php_manual_nl
Client32   enz...

Windows maakt normaal geen probleem van upper-lowercase, behalve nu weer...
* Red Sonja shaamt zich diep zoiets over het hoofd gezien te hebben ;(

And the beast shall be made legion. Its numbers shall be increased a thousand thousand fold. The din of a million keyboards like unto a great storm shall cover the earth, and the followers of Mammon shall tremble. from The Book of Mozilla, 3:31

Pagina: 1