LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Samba has quit working (https://www.linuxquestions.org/questions/linux-software-2/samba-has-quit-working-142611/)

AmdMhz 02-05-2004 09:14 AM

Samba has quit working
 
Hi all

I had a network printer configured for my Red hat box that was working fine yesterday. Now for some reason it can no longer find the printer or the other networked windows puters. Any help to fix this problem would be appreciated.

Thanks and take care:D

homey 02-05-2004 09:18 AM

When you run /sbin/ifconfig what's the output? Can you ping anything? Is the light on at the hub/switch? Have you had some coffee yet? Did the cable get unpluged? Have you made any changes lately?

AmdMhz 02-05-2004 09:23 AM

LoL.. Hmm.. Yep, had my coffee. Everything is plugged in. I can ping everything. The only changes I have made is working on setting up my FTP. Here is the output file:

[root@localhost /]# /sbin/ifconfig
eth0 Link encap:Ethernet HWaddr 00:10:B5:10:17:0D
inet addr:192.168.1.101 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1162 errors:0 dropped:0 overruns:0 frame:0
TX packets:1001 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:324275 (316.6 Kb) TX bytes:146391 (142.9 Kb)
Interrupt:10 Base address:0x8000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:44495 errors:0 dropped:0 overruns:0 frame:0
TX packets:44495 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3807500 (3.6 Mb) TX bytes:3807500 (3.6 Mb)

homey 02-05-2004 09:33 AM

Hmm...
Well, I don't think this has anything to do with ftp.
Is samba running? Run the command: service smb status

Run the commands: testparm and smbclient -L //linux_computer to see if the samba stuff is still ok.

DaFrEQ 02-05-2004 09:55 AM

What version of samba are you using?

AmdMhz 02-05-2004 09:55 AM

Samba was stop. I restarted it and still cant get the printer to go

[root@localhost /]# service smb status
smbd (pid 3480) is running...
nmbd (pid 3652) is running...

[root@localhost /]# smbclient -L //linux_computer
added interface ip=192.168.1.101 bcast=192.168.1.255 nmask=255.255.255.0
Connection to linux_computer failed

homey 02-05-2004 10:05 AM

Quote:

[root@localhost /]# smbclient -L //linux_computer
Sorry, substitute "linux_computer" with the name of your linux computer.

AmdMhz 02-05-2004 10:12 AM

:newbie: here. I cant remember what I named it :cry:

homey 02-05-2004 10:35 AM

Quote:

[root@localhost /]#
If you can't remember what you named it, you probably didn't, in which case the default name of localhost is used. This is usually displayed as part of your command prompt. Also, you could run the command:hostname to find out.

AmdMhz 02-05-2004 10:47 AM

Thanks for helping me. This is what I get

[root@localhost /]# hostname
localhost.localdomain
[root@localhost /]# smbclient -L //linux_localhost
added interface ip=192.168.1.101 bcast=192.168.1.255 nmask=255.255.255.0
Connection to linux_localhost failed

homey 02-05-2004 11:13 AM

This is the command....
smbclient -L //localhost

AmdMhz 02-05-2004 11:18 AM

Thanks for clearing that up.

[root@localhost /]# smbclient -L //localhost
added interface ip=192.168.1.101 bcast=192.168.1.255 nmask=255.255.255.0
Password:
session setup failed: NT_STATUS_LOGON_FAILURE

I am using the same password I always do.

homey 02-05-2004 11:28 AM

Try this command.....
ping -c 3 localhost

AmdMhz 02-05-2004 11:35 AM

[root@localhost /]# ping -c 3 localhost
PING localhost.localdomain (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=1 ttl=64 time=0.150 ms64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=2 ttl=64 time=0.077 ms64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=3 ttl=64 time=0.079 ms
--- localhost.localdomain ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1999ms
rtt min/avg/max/mdev = 0.077/0.102/0.150/0.033 ms

homey 02-05-2004 11:42 AM

Nothing wrong there.

I just thought of something....
When you got this message session setup failed: NT_STATUS_LOGON_FAILURE
Were you using the root user password?


All times are GMT -5. The time now is 05:30 PM.