Satt upp en samba server på Redhat 9.0 (eller försökt iallafall)
smb.conf
======================
[global]
workgroup = MIDEARTH
netbios name = HOBBIT
security = share
[data]
browsable = yes
comment = Data
path = /ftproot
read only = Yes
guest ok = Yes
======================
Hur ser jag att samba är igång?
Försöker mappa upp den med min windows burk med följande:
net use i: \\192.168.0.1\data
Men får detta felmeddelandet:
"System error 51 has occurred.
Windows cannot find the network path. Verify that the network path is correct an
d the destination computer is not busy or turned off. If Windows still cannot fi
nd the network path, contact your network administrator."
Antar att samba inte är igång på ett korrekt sätt. Men kör jag typ "ps -aux" så ser jag att samba finns där.
[root@RSERVER root]# smbpasswd johan
Failed to open /etc/samba/private/secrets.tdb
New SMB password:
Retype new SMB password:
unable to open passdb database.
Failed to find entry for user johan.
Failed to modify password entry for user johan
[root@RSERVER root]#
[root@RSERVER samba]# smbpasswd -a johan
Failed to open /etc/samba/private/secrets.tdb
New SMB password:
Retype new SMB password:
unable to open passdb database.
startsmbfilepwent_internal: too many race conditions creating file /etc/samba/private/smbpasswd
add_smbfilepwd_entry: unable to open file.
Failed to add entry for user johan.
Failed to modify password entry for user johan
[root@RSERVER samba]#
lite mer framsteg kanske, kan nog logga in lokalt på den nu.
[root@RSERVER johan]# smbclient //RSERVER/disk1 -U johan
added interface ip=62.119.159.228 bcast=62.119.159.255 nmask=255.255.254.0
added interface ip=192.168.0.1 bcast=192.168.0.255 nmask=255.255.255.0
Password:
Domain=[HOME-NETWORK] OS=[Unix] Server=[Samba 2.2.7a-security-rollup-fix]
smb: \> dir
. D 0 Fri Jan 21 20:03:03 2005
.. D 0 Wed Jan 19 21:33:14 2005
.bash_logout H 24 Tue Feb 11 14:34:44 2003
.bash_profile H 191 Tue Feb 11 14:34:44 2003
.bashrc H 124 Tue Feb 11 14:34:44 2003
.gtkrc H 120 Thu Feb 27 00:15:12 2003
firewall A 3854 Tue Jan 11 21:16:04 2005
.bash_history H 5 Fri Jan 21 20:03:03 2005
38042 blocks of size 1048576. 33705 blocks available
smb: \>
när jag skall connecta ifrån min windows burk:
C:\Windows\Settings\Johan>net use i: \\192.168.0.1\disk1 /USER:johan
System error 51 has occurred.
Windows cannot find the network path. Verify that the network path is correct an
d the destination computer is not busy or turned off. If Windows still cannot fi
nd the network path, contact your network administrator.
Grejer jag skulle testat:
* Pinga datorerna för att vara säker på att det inte är nått fel med nätverket.
* Kört en "net use i: \\192.168.0.99\disk1 /USER:johan" för att se vilket felmeddelande man får då.
* Loggat in som användaren johan på windowsmaskinen, med samma lösenord som på linuxburken
* Skrivit in "\\192.168.0.1" i utforskaren
Reply from 192.168.0.1: bytes=32 time<1ms TTL=64
Reply from 192.168.0.1: bytes=32 time<1ms TTL=64
Reply from 192.168.0.1: bytes=32 time<1ms TTL=64
Reply from 192.168.0.1: bytes=32 time<1ms TTL=64
Ping statistics for 192.168.0.1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
C:\Windows\Settings\Johan>
====================================
C:\Windows\Settings\Johan>net use i: \\192.168.0.1\disk1 /USER:johan
System error 53 has occurred.
The network path was not found.
C:\Windows\Settings\Johan>
====================================
Förstår inte varför jag inte kan söka upp datorn, går inte med, \\192.168.0.1 eller att söka efter den. Undrar om det kan ha ngt med mina iptables att göra?