View previous topic :: View next topic |
Author |
Message |
nyk Guru
Joined: 28 Aug 2004 Posts: 527 Location: Bern (Switzerland)
|
Posted: Thu Apr 21, 2005 3:37 pm Post subject: Samba sharing doesn't work |
|
|
I have one gentoo machine as a samba fileserver. I just copied the same smb.conf, that works at my workplace LAN. It just shares user-dirs.
But now I can't connect from my laptop (running debian, too slow to compile gentoo).
When I do
Code: |
smbclient //192.168.0.100/nyk
|
this works from the server itself, but not from the laptop. There I get a cryptic NT_STATUS_LOGON_FAILURE
The two PC are both connected to a D-LINK router that assigns them IPs starting from 192.168.0.100 by DHCP. The laptop is connected by WEP encrypted wireless LAN and has the IP 192.168.0.103. Connecting from the laptop to the server by SSH works without problems.
What can be wrong? What could the error message mean?
I didn't find anything usefull in dmesg or /var/log/samba/log.127.0.
Here's my smb.conf:
Code: |
[global]
workgroup = NYK
netbios name = shuttle
server string = Samba Server %v
security = user
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
log file = /var/log/samba-log.%m
lock directory = /var/lock/samba
share modes = yes
[homes]
comment = Home Directories
writable = yes
|
|
|
Back to top |
|
|
Kanniball Apprentice
Joined: 23 Jan 2004 Posts: 208 Location: Portugal
|
Posted: Fri Apr 22, 2005 4:33 pm Post subject: |
|
|
since you copy the smb.conf from one machine to other, you will have the same name on the machines and this could be blocking...
Another way to check what is wrong is checking the log messages in /var/log/messages or other defined in the config file.
Can you acess the shares on "localhost" ie the same computer? |
|
Back to top |
|
|
nyk Guru
Joined: 28 Aug 2004 Posts: 527 Location: Bern (Switzerland)
|
Posted: Sat Apr 23, 2005 11:29 am Post subject: |
|
|
Now it works....
smb.conf like this:
Code: |
[global]
workgroup = NYK
[homes]
writable = yes
|
and then mounting with
mount -t cifs -o username=nyk,password=pw //192.168.0.100/nyk /mnt/shuttle
(or at least the same in fstab..)
Don't really know why it works, maybe because I added "smbpasswd -a root" or because of using cifs instead of smbfs (what's the difference?)... |
|
Back to top |
|
|
|