Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Samba sharing doesn't work
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
nyk
Guru
Guru


Joined: 28 Aug 2004
Posts: 527
Location: Bern (Switzerland)

PostPosted: Thu Apr 21, 2005 3:37 pm    Post subject: Samba sharing doesn't work Reply with quote

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
View user's profile Send private message
Kanniball
Apprentice
Apprentice


Joined: 23 Jan 2004
Posts: 208
Location: Portugal

PostPosted: Fri Apr 22, 2005 4:33 pm    Post subject: Reply with quote

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
View user's profile Send private message
nyk
Guru
Guru


Joined: 28 Aug 2004
Posts: 527
Location: Bern (Switzerland)

PostPosted: Sat Apr 23, 2005 11:29 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum