Click to See Complete Forum and Search --> : Samba help


mis
06-10-2003, 09:54 PM
I can see my Debian box from my 2000 machine and the XP machine. But how do I see them from Linux? I created a /Mis2000 directory to mount it to. Added this to /etc/fstab

//192.168.0.10/D: /Mis2000 ntfs credentials=/etc/shadow,uid=missy 0

This is an attempt to mount my D: drive which is the second HD. I labeled it Save if it will matter. When I try to mount /Mis2000 I get this error

mount: special device //192.168.0.10/D: does not exist

I have created a user with smbpasswd -a missy. The drive is set to shareable in 2000.

Thanks in advance for any help.

Mis

Hayl
06-10-2003, 09:58 PM
Originally posted by mis
//192.168.0.10/D /Mis2000 smbfs credentials=/home/missy/.smbpassword,uid=missy 0 0

you had the wrong filesytem

NTFS is for mounting local NTFS file systems.

SMBFS is for mounting (remote) SMB filesystems.

also, i've never seen the credentials done like that.

create a file ~/.smbpassword with two lines:

username=<insert your username here>
password=<insert your password here>

make the file readable only by you.

also - what is the "D" drive shared out as? "D:" is not a valid share name - you aren't allowed colons. i took out the colon in the fstab line i posted.

mis
06-10-2003, 10:11 PM
Ok changed the fstab to match suggested but now I get error

timeout connecting to 192.168.0.10:139
Error connecting to 192.168.0.10 (Operation already in progress)
434: Connection to 192.168.0.10 failed
SMD connection failed

I did a ps -eaf and I found 3 instances of smbd

/usr/sbin/smbd -D

Did a /usr/sbin/smbd stop and all 3 remained. How do I stop and restart? Debian 3.0.

mis
06-10-2003, 10:26 PM
I went ahead and rebooted to rule out the extra procsses. Found out I had the Ip wrong and corrected that. it was 192.168.1.10. But now when I try to mount I get

263: session request to 192.168.1.10 failed (Called name not present)
263:session request to 192 failed (Called name not present)
263: session setup failed: ERRDOS -ERRnoaccess (Access denied)
SMB connection failed

michaelk
06-10-2003, 10:42 PM
Try using the hostname of the XP computer instead of its IP address.

To see its shares:

smbclient -L <hostname>

Just press the return key when it asks you for a password.

Is the W2K share setup correctly?

Hayl
06-10-2003, 10:57 PM
Originally posted by mis
Ok changed the fstab to match suggested but now I get error

timeout connecting to 192.168.0.10:139
Error connecting to 192.168.0.10 (Operation already in progress)
434: Connection to 192.168.0.10 failed
SMD connection failed

I did a ps -eaf and I found 3 instances of smbd

/usr/sbin/smbd -D

Did a /usr/sbin/smbd stop and all 3 remained. How do I stop and restart? Debian 3.0.

sorry. was playing a game :)

you don't need any SAMBA daemons running to connect to a SMB share. i don't undrstand why people think they do. you only need the daemons running if you are planning on sharing stuff from your linux box to other computers. i don't run the SAMBA daemons on my gentoo workstaiton and i am connected to 4 shares on my debian server.

i agree with the other post about the host name.

Hayl
06-10-2003, 10:59 PM
Originally posted by mis
How do I stop and restart? Debian 3.0.

/etc/init.d/samba stop
/etc/init.d/samba start
/etc/init.d/samba restart

filp
06-10-2003, 11:19 PM
Can I just give my quick suggestion for getting a samba share up.


1. Don't name a share D: just name it D it will save stuffing around.

2. Make sure the user exists on both machines with the same password, smb likes this.

2. ping the machine you want to connect to. May as well make sure heh?

3. type smbclient -L <machine ip> and make sure the share you want to connect to is in there.

4. mount -t smbfs //<machine ip>/<share name> <local mount point> -o username=<username>

5. Smoke and mirrors and woooo, it probably worked.

If it didn't then you screwed something up, read some docco.


Filp.

mis
06-11-2003, 07:39 AM
How do I assign a hostname to the Win boxes?
Thanks for the how-to restart samba.
I did the smbclient -L 192.168.1.10 and I got this error

added interface ip=192.168.1.10 bcast=192.168.1.255 nmask 255.255.255.0
session request to 192.168.1.10 failed (Called name not present)
session request to 192 failed (Called name not present)
Password: I hit return
write_socket_data write failure. Error = Connection reset by peer
write_socket: Error writing 156 bytes to socket 3:ERRON = Connection reset by peer
Error writing 156 to client -1
session setup failed: SUCCESS -0

I can ping both the 2000 and Xp fine I hit return

mis
06-11-2003, 06:45 PM
I got it YEAH!!!!!!!!!!!!!!!!!!!!!!!!

I had a typo in the password on 2000 user setup. Why check the obvious first huh?