1828045 Members
1630 Online
109973 Solutions
New Discussion

Re: samba

 
SOLVED
Go to solution
Goran Bulut_1
Advisor

samba

Hi all,
I'm running Linux 7.2 and I want config. Samba
I can see samba server but not access share
Attach is my smb.conf
Any help will be appreciated
Goran
9 REPLIES 9
Stuart Browne
Honored Contributor

Re: samba

Dumb question time:

Have you started 'smbd' ? (usually /etc/rc.d/init.d/smbd start), and does it give any errors (listed in /var/log/messages) when you do so?

Can you see the List of shares (//machine/IPC$) when accessing just '\\machine' ?

What user are you using on your PC? Is this user a valid user on the Linux box? or have you created a mapping using 'smbusers' ?

Is your PC running Windows? If so, which one?

What share are you trying to access? I noticed that you've got 'tmp', 'home', and 'share' listed there, as well as the 'homes' (user) shares.

Get back to us with that, and we'll continue on a little bit further :)
One long-haired git at your service...
I_M
Honored Contributor

Re: samba

Hi

I see your smb.conf.
Are you using non-encripted password?
If you want to enable encripted password,
you have to modify smb.conf.

And check your firewall settings using
# ipchains -L

Regards,

Goran Bulut_1
Advisor

Re: samba

hi,Stuart
your
Have you started 'smbd' ? (usually /etc/rc.d/init.d/smbd start), and does it give any errors (listed in /var/log/messages) when you do so?
atash my last./var/log/messages
Can you see the List of shares (//machine/IPC$) when accessing just '\\machine'
I can't see the list of shares \\machine(tasa)
"bad command or file name "
I'm using valid user on the Linux box
My PC is running Windows 98 and I have
hosts with users
and lmhost with users
What share are you trying to access? I noticed that you've got 'tmp', 'home', and 'share' listed there, as well as the 'homes' (user) shares
In net.ner. I can see just smb server?


Hi Nari,

I not using non-encripted password but I want to connect with NT
To eenable encripted password what to modify in smb.conf
Regards
Goran

Christoph Rothe_3
Frequent Advisor

Re: samba

Hi there,

if you want to encrypt passwords, you must only add a line

encrypt passwords = yes

to your smb.conf

You must then use smbpasswd to add user <-> password mappings.

Regarding your problems:

Try \\(IP-Adress)\share to access your server. I know some environments where there are problems with the name resolvation...
If you can access your samba this way, you can try to enable samba as wins server and add this in the configuration of the win98-pc...

If you still cannnot access your samba, I think you should check, if ports 137-139 are unblocked in a firewall between the samba-server and the win98 client.

HTH,

Christoph

P.S.: Do not forget to assign points :-)
Bill Thorsteinson
Honored Contributor

Re: samba

Use the command
netstat -an | grep 13[7-9]
to see if the deamons are listening. They should be listing on UDP ports 137 and 138 as well as TCP port 139.

Check the nmbd and smbd log files in /var/log. Names may vary.

See samba.org for more debug info.
Kodjo Agbenu
Honored Contributor
Solution

Re: samba

Hello Goran,

I had a look to your smb.conf file :

Here is (probably) a mistake :

smb passwd file = /usr/bin/smbpasswd

Normally, you should use this parameter to specify the location of the passwd file itself, not the program used to make it.
The passwd file can be found either in /etc or /etc/samba.

Remark 1 : make sure that the /usr/bin/smbpasswd binary was not corrupted. If it is the case, restore it from another machine running the same version of Samba, or re-install Samba.

Remark 2 : each remote user must have an account in both your smbpasswd database and the Unix /etc/passwd. For example, if you are connecting from windows using the user "goran", it must exist in /etc/passwd and in /etc/samba/smbpasswd.
To add a user in samba password database :
/usr/bin/smbpasswd -a goran
To change goran's password in samba database :
/usr/bin/smbpasswd goran

Good luck.


Kodjo

Learn and explain...
Goran Bulut_1
Advisor

Re: samba

Hi all,
Thanks for respond its work now
New
If I use command ipfwadm
I got Warning: you must enable ip forwarding for packets to be forwarded at all
use "echo 1 "> /proc/sys/net/ipv4/ip_forward
For what is stand this and what should I do?
Regards
Goran
Kodjo Agbenu
Honored Contributor

Re: samba

Hello Goran,

"pfwadm" : this command just help you set the kernel rules for network packet filtering. These rules apply to both incoming packets, outgoing packets and packets forwarded from a network interface to another.

According to the IP forwarding : normally, packet forwarding is disabled by default. To enable it, you must tell the kernel to do so by typing :

echo "1" >/proc/sys/net/ipv4/ip_forward

Warning 1 : you must know what you are doing because this is a security hole. For example if your LAN card eth0 is on your local subnet and ppp0 is you modem connection to the Internet, doing this allows packets to be forwarded from/to your local subnet to/from the Internet.

Warning 2 : if IP addresses from a subnet are not valid on the other one (this is mostly the case), you must set your ipfwadm rules to enable network address translation (NAT, also known as masquerading). This converts "on the fly" of packets routed from a subnet to another.

Good luck.

Kodjo

*****
Just for your information : it would have been a good idea to ask a new question in the forum. The reason for that is simple to understand : when people see "magic answer" icon (8-10 points given to a response), they skip to another question, so if you ask another question in the same thread, it will simply be ignored by most people.
*****

Learn and explain...
Goran Bulut_1
Advisor

Re: samba

Hello Kodjo,

Thank you for the reply and for your info about ask a new question in the forum. I didn't know that. You can see that I'm new.
Thank you
Goran