LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to solve smb.conf and swat problems (http://www.linuxquestions.org/questions/linux-newbie-8/how-to-solve-smb-conf-and-swat-problems-886706/)

linux in malawi 06-16-2011 09:10 AM

how to solve smb.conf and swat problems
 
how to set smb.conf to its original format.i think i have mess it up since am learning Linux from scratch.another problem is how to solve UNABLE TO CONNECT TO HOST LOCALHOST (901) ERROR.i have set 'disable=no' in /etc/swat file and swat,samba and xinetd are all running.thanks 4 ur answer.if there is any confusion let me no.

camorri 06-16-2011 10:50 AM

Quote:

how to set smb.conf to its original format
Restore your back up, the one you made before you edited the smb.conf file. If you do not have a backup, there is no way to 'restore' it.

Quote:

UNABLE TO CONNECT TO HOST LOCALHOST
Open a konsole and run the command 'ifconfig' with out the quotes. See if you have anything that resembles this:

Quote:

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:6076 errors:0 dropped:0 overruns:0 frame:0
TX packets:6076 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:399512 (390.1 KiB) TX bytes:399512 (390.1 KiB)
Localhost is the loopback interface, usually IP address 127.0.0.1. If this interface is there, then put http:127.0.0.1 in the location bar, and anything else you need.

If it is not there, try 'ifconfig lo up' ( no quotes). Then try again.

It may also be your /etc/hosts file has not been updated. Add a line for localhost if it is not there. You need to be root to do that. The line should look like this -

Quote:

127.0.0.1 localhost

linux in malawi 06-16-2011 11:53 PM

Hie camorrie
i did not save smb.conf,can uninstall & reinstall samba package or even upgrade samba resets smb.conf file to its default?

On swat, i typed ifconfig on prompt as root user.it showed that the lo interface was up and running,and 127.0.0.1 was present in /etc/hosts.when i typed 127.0.0.1:901 or localhost:901 the out come was still 'could not connect to host 127.0.0.1 or localhost (901)

tailinlinux 06-17-2011 12:17 AM

Maybe this one help.
http://www.linuxquestions.org/questi...server-886172/

camorri 06-17-2011 09:34 AM

Quote:

i did not save smb.conf,can uninstall & reinstall samba package or even upgrade samba resets smb.conf file to its default?
It may be a lot less painful to post the smb.ocnf file you have, and tell us in words what you are trying to accomplish. Basic smb.conf files are not that hard to create.

Port 901, I think is for swat. What I always do is install Webmin, and access swat trough Webmin. Webmin gives you remote access to a lot of useful things.

If port 901 is not responding, either it is not open, ( possibly the daemon is not running ) or you have a firewall blocking access.

linux in malawi 06-18-2011 11:19 PM

Hie
i installed redhat 8.0 in vmware for learning purpose.i ve reinstalled redhat 8.0 OS on vmware so that i should start anew with you guys.i ve already trust in you linux guys,i know that i will know much from this community.dont fed up with my linux questions,AM LEARNING through this community.

plckiran 06-18-2011 11:36 PM

Use snapshot feature in vmware to record HDD before you make any changes to OS.In case you mess up you can always come back to the snapshot time configuration.

TB0ne 06-19-2011 10:36 AM

Quote:

Originally Posted by linux in malawi (Post 4389725)
Hie
i installed redhat 8.0 in vmware for learning purpose.i ve reinstalled redhat 8.0 OS on vmware so that i should start anew with you guys.i ve already trust in you linux guys,i know that i will know much from this community.dont fed up with my linux questions,AM LEARNING through this community.

If you want to learn, then I'd strongly suggest not loading Redhat 8...it's VERY old, and things have moved on quite a bit since then. Load a current, up-to-date distro.


All times are GMT -5. The time now is 06:44 PM.