• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Samba Question

DirtylilTechBoy

Senior member
I installed Mandrake 8.2 on my laptop (p3 500 128ram 6 gig hd) with a pcmcia network connection.

I have a server setup running W2Kadv w/ IIS running. The server is setup at 169.254.225.239. It is hosting HTTP and FTP as well as Coldfusion. The server is named "server"

I have to other workstations running W98se with file sharing turned on.

For the W98se machines, I can enter in http://server and it resolves to the 169.254.225.239 address and I can do the same for ftp://server. In network neighborhood, I can see the two Win98se machines as well as the "server" but I obviously can't see the Linux box. I had file sharing setup with a different password for read and write.

My first question is this, how can I mount a FAT32 drive using samba with the passwords active? The only way I have successfully mounted a drive in samba is when I opened up the file shares to be used without needing a password. If I remove the passwords it works, if the shares have passwords, Samba will fail to connect. Obviously, I have the network setup well enough that samba sees the other computers on the network, even though they are a combo of FAT32 and NTFS.

My second question, which may become a post all its own, is why I can, from the Mandrake box, view webpages from my server when I type in http://169.254.225.239 as well as I can use ftp at ftp://169.254.225.239, but when I try using http://server or ftp://server it can't resolve the name to the IP and it says the connection was refused. Could it have anything to do with the scope I set in DHCP? Is it a problem with WINS or DNS? Remember, when I use the W98se machines, the address http://server / ftp://server does get resolved to the correct IP.

I am going to try and gather some more precise information about my network config. If anyone has any ideas, they would be greatly appreciated.
 
you're mandrake box doesn't know how to use WINS, except for the samba side of things. unless you have an internal dns server running, mandrake (and all non-ms systems) won't be able to resolve the name to the IP of your server for http or ftp (or ssh, etc.).

you can edit your resolve.conf to add your server's name and IP address.

to mount a windows share using credentials, look at the man pages for smbmount.
 
Thanks for the reply

I have DNS running on the server, isn't that enough to resolve the name, because I thought names were resolved at the host not the client.....

I figured out the samba password thing. I just opened the expert options at it had a place for password. I entered the password appropriate for the share and everything mounted. I can now see and use my "Warehouse" share and listen to my music!
 
I think your dns server wont resolve the name "server" to that ip address. its a wins thing. just do what bignick suggested and manually add the computers on you local network
 
I believe this should be of help to you...

First, if you want to resolve a particular host name for an IP address in your lan, edit the /etc/hosts file on the linux box and add a line for the Win2k server.

So you would add the line: 169.254.255.239 server
Save the file and the changes will be seen immediately, try pinging 'server' from the command line and it will work.

To mount a windows share from your linux box, make sure you have samba-common and samba-client installed. The correct syntax to mount the share would be: mount -t smbfs -o username=whatever //server/share /mount/point

Where //server/share is the share on your win2k box, and /mount/point is a directory on your linux box you want to mount to. You will be prompted for the password for your user you specified, so type the password in. Afterwards your share will be viewable at /mount/point (or wherever you mounted the share).
 
Back
Top