cannot ping smaba server, can be seen when browsing....
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
cannot ping smaba server, can be seen when browsing....
I am setting up a Linux file server on my network (1 other XP machine) and can ping the xp machine and browse all network shares, however the xp machine can't ping the linux box, I can however see "Samba Server (Server)" in network neighbourhood...but can not get any further.. any ideas
Cheers jimbo, Okay numptie's error, i have now checked the "echo ping" box and allowed the samba server in firewall settings and its now pinging the ip address from windows machines. Under the output for smbtree i have placed the output for uname -a and the distro is mandriva 2008.0. I can ping the linux box and see shares under server but cannot connect to any shares, authentification fails, i'm guessing its all down to permissions now..? I'm using/trying webmin so will have a good look through, any further help would be much appreciated....Thanks in advance
I am thinking it might be a permissions issue. Try creating a share with no authentication. I always like to have a "public" share that everyone can access just for quick placement of documents and such. I am not familiar with webadmin, but if you can create a public share in there, go ahead. Other wise add the following to /etc/samba/smb.conf
comment = Public Folder for large network storage
public = yes
read only = no
path = /home/jschmoe/Desktop/Huge Shared Folder
browseable = yes
guest only = yes
guest account = jschmoe
force user = jschmoe
force group = jschmoe
Have you created the samba users yet? Samba doesn't use the boxes default users you need to create them with the smbpasswd tool - try man smbpasswd
example # smbpasswd -a jschmoe
it will then prompt you for a password - Also if you want password free authentication you need to specify it in the smb.conf otherwise it uses the security = user setting by default even if not specified.
Also are you running SELIUNX? and does your connecting user have rwx access to the folder that is being shared?
Beautiful jimbo, as I said i am a newbie (= errors errors and more errors) so i pasted your code into my samba config and the share came up without a problem which is all i really needed as folders in there i am going to use as home folders so will set their permissions independantly, Ta very much.
Sm1ler thanks for your input, appreciated ;op
Although (on a different note) now i have sorted samba shares out i have a strange one, as i said this will be used as a fileserver and not much more (well maybe a bit of a plaything but....) At present i have allowed SSH, telnet, samba file sharing and ping in the firewall settings, all shares are available, i can putty in from my Windows machine but when i restart the linux box, no shares are available and i cannot connect in any way. I have to go back to the firewall settings and reset them which then allows me to connect. I'm confused, I'm guessing these should obviously be permanent rules and not reset every restart???
I haven't used Mandriva for well ages way before it even became mandriva!
my advice and doing my best to keep it simple for you would be to makes the changes so everything works then open a terminal as root and type iptables --list-rules copy the output to a empty file. you will notice ports like the following which relate to samba and ssh
-A INPUT -m state --state NEW -m udp -p udp --dport 137 -j ACCEPT
-A INPUT -m state --state NEW -m udp -p udp --dport 138 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 139 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 445 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
I wouldn't worry about icmp and telnet unless you really need or want them. Next stop your firewall either by the services or the init script and then copy /etc/sysconfig/iptables to a backup ie. /etc/sysconfig/iptables.backup
Then open up /etc/sysconfig/iptables and add the missing lines as above or from your working copied rules set, save the changes - restart your firewall and all should be well, next a reboot should prove it!