1828656 Members
8334 Online
109983 Solutions
New Discussion

Re: Regarding samba...

 
SOLVED
Go to solution
srinu_1
Frequent Advisor

Regarding samba...

Hi all,
I am configure samba on hp server.I edited the smb.conf file after that I restarted the samba server.But from window machine it's giving following error.
Network path not found.

I tried to ping the server for my PC.it's pinging.

where is wrong?.

Regards
srinu.
9 REPLIES 9
Jonathan Fife
Honored Contributor
Solution

Re: Regarding samba...

Are smbd and nmbd running? With recent start times?

Is there anything in the samba log that shows an attempted connection?

Does Windows return the network path not found error immediately or does it pause for a period of time before erroring out?

Have you verified that the path name you're entering in windows (\\linuxserver\path_name) matches the share name between brackets in the smb.conf?

Is there a 'hosts allow' or 'hosts deny' section in the smb.conf?
Decay is inherent in all compounded things. Strive on with diligence
srinu_1
Frequent Advisor

Re: Regarding samba...

Hi,
Please find the contents in smb.conf file.....



# workgroup = NT-Domain-Name or Workgroup-Name, eg: REDHAT4
workgroup = blrindia
netbios name = btc3h003

# server string is the equivalent of the NT Description field
server string = Samba Server

# security_level.txt for details.
security = domain
# Use password server option only with security = server or domain
password server = 161.85.100.12

# This option is important for security. It allows you to restrict
# connections to machines which are on your local network. The
# following example restricts access to two C class networks and
# the "loopback" interface. For more examples of the syntax see
# the smb.conf man page
hosts allow = ingbtcpic1dt490

[tv520]
comment = tv520 project
path = /ftpuse
username = +tusr173 dvproot srinu


This are the things i edited.I need to edit any other?.

Regards
srinu.
srinu_1
Frequent Advisor

Re: Regarding samba...

Hi,

this smbd and nmbd services also running.


ou have mail in /var/mail/root
btc3h003#ps -ef |grep smbd
root 23234 21704 0 18:59:32 pts/tb 0:00 grep smbd
root 23075 1 0 18:54:12 ? 0:00 /opt/samba/bin/smbd
You have mail in /var/mail/root
btc3h003#ps -ef |grep nmbd
root 23072 1 0 18:54:02 ? 0:00 /opt/samba/bin/nmbd
root 23236 21704 0 18:59:38 pts/tb 0:00 grep nmbd
btc3h003#


Thanks

srinu.
Jonathan Fife
Honored Contributor

Re: Regarding samba...

Can you nslookup ingbtcpic1dt490 on the server?
Decay is inherent in all compounded things. Strive on with diligence
Vipulinux
Respected Contributor

Re: Regarding samba...

Hi

Are u trying to use the windows server authentication for samba..if yes than you will need to do a little more work...i.e. configure krb5 and pam

Cheers
Vipul
g33k
Valued Contributor

Re: Regarding samba...

# This option is important for security. It allows you to restrict
# connections to machines which are on your local network. The
# following example restricts access to two C class networks and
# the "loopback" interface. For more examples of the syntax see
# the smb.conf man page
hosts allow = ingbtcpic1dt490

there should ip adres or resolvable hostname of windows you are accessing from...

try to ping ingbtcpic1dt490 from server.
if it doesn't work there is problem with name translatin.

In that case solution would be add ingbtcpic1dt490 to DNS, or in /etc/hosts, or use ip adress instead of name... anyway I would rader use whole net(or subnet), I don't see much efectivity to have samba accessible only from one host.
g33k
Valued Contributor

Re: Regarding samba...

and if you are using translation from hostnames to ip it should be allow in smb.config

see this man page and look for "hosts allow" and "hostname lookups"

in defaul lookups is not allowed...

http://samba.org/samba/docs/man/manpages-3/smb.conf.5.html

srinu_1
Frequent Advisor

Re: Regarding samba...

Thanks for your quick reply.That prob sloved.But....

In PC side whenever give the path it's asking for the username and passwd.I have given right username and passwd But it's not authenticating.It's NIS users.

Please find the smb.conf file

[tv520]
comment = tv520 project
path = /ftpuse
username = +tusr173 dvproot srinu

I try to login with the username 'srinu'.
I given the right passwd.
Thanks
srinu.
srinu_1
Frequent Advisor

Re: Regarding samba...

Thanks to every one.

Here problem is I didn't mentioned the "server passwd " entry.

We have to mentioned server passwd = .

Thanks
srinu.