LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Samba on Suse 7.2 (https://www.linuxquestions.org/questions/linux-networking-3/samba-on-suse-7-2-a-31319/)

Dallas Truax 09-27-2002 10:09 AM

Samba on Suse 7.2
 
Ok, Question first, then info:
I'm trying to mount my windows 98 box from my suse box.
Can that be done? Can anyone tell me some things to check?
Its not working for me.
Here's what mount tells me:
...................
linux> mount -t smbfs -o username=admin,password= //windows/c /annie
2632: session request to WINDOWS failed (Called name not present)
2632: session request to *SMBSERVER failed (Called name not present)
SMB connection failed
............
/etc/hosts has 192.168.1.100 windows
............
the windows box has c drive shared.
............
the windows box has a login admin with no password
............
Oddly, ping 192.168.1.100 returns pings, I thought windows didn't ping... shows what I know.
............
I have a NeXT Station too, but it's on 192.168.1.101, for sure. It's also the DMZ machine to my router, running the web server.

shariq 09-28-2002 06:27 PM

Hi,

Yep - it can be done.

Can you see the SuSE machine from windows (ie if you go to Network Neighbourhood)? If you can't, then perhaps Samba is not configured correctly.

Is Samba running? Type

Code:

smbclient -U% -L localhost
on the SuSE machine and you should get a list of servers on your domain/workgroup. I get this:

Code:

added interface ip=192.168.0.3 bcast=192.168.0.255 nmask=255.255.255.0
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 2.2.3a]

        Sharename      Type      Comment
        ---------      ----      -------
        Downloads      Disk      Downloads
        Multimedia    Disk      Multimedia
        Store          Disk      Store
        IPC$          IPC      IPC Service (Samba Server)
        ADMIN$        Disk      IPC Service (Samba Server)

        Server              Comment
        ---------            -------
        Linux_Machine          Samba Server
        Windows_Machine

        Workgroup            Master
        ---------            -------
        WORKGROUP            Linux_Machine

If you don't get anything similar, check the daemons are running:

Code:

shell> ps -A | grep 'mbd'
  776 ?        00:00:00 nmbd
  789 ?        00:00:00 smbd

if they're not, then start them

Code:

/usr/sbin/smbd
/usr/sbin/nmbd

Assuming Samba is running and you can see the SuSE machine from the Windows machine, then type in your mount string:

Code:

mount -t smbfs -o username="admin",password="" //windows/C /annie
I'm paranoid - hence the "". I'm also assuming you've got a folder called 'annie' in the root.

That should do the trick.

I'm probably stating the obvious here, but it's not the best idea in the world to have a blank admin password and to share the root of your C drive! Oh, if the above doesn't work, create a password for your 'admin' account and try that too.


All times are GMT -5. The time now is 05:50 AM.