1827894 Members
1617 Online
109969 Solutions
New Discussion

Re: samba

 
Abrar Hazarika
Frequent Advisor

samba

I configured samba in a linux machine. From samba i get the smb prompt and can browse any other machine on the network. But from the windows machine i can see the samba server in the network neighbourhood but can't go any further. I created a public directory under home as writeable=yes in the linux box but when trying to access, it says, there is a network error. Even i get the http service from the linux (apache) by typing the http:// in explorer address bar of any windows machine.
What could be wrong?
win98+ Win NT=0
9 REPLIES 9
Eugen Cocalea
Respected Contributor

Re: samba

Hi,

First you have to share something on the samba server.

Edit your /etc/smb.conf (modify to suit the location of your smb.conf file, can be in /etc/samba/smb.conf as well or other places).
Put in the following lines:

security = share
guest account = ftp

[shared folder]
comment = <BR />path = /path_to_the_shared_dir<BR />browseable = yes<BR />writable = no<BR />guest ok = yes<BR /><BR />then restart samba (/etc/rc.d/init.d/smb restart) and there you go.<BR /><BR />E.<BR /><BR />(by the way, http://name is another thing, samba is for using file systems over network, http is the protocol for the www)
To Live Is To Learn
Abrar Hazarika
Frequent Advisor

Re: samba

i tried entering all the values again as you showed but the dump of testparm doesn't show "browseable = yes".
The result of testparm gives (for public directory) comment=.., public=yes, writable=no and nothing more.
In the smb.conf file i entered browseable=yes, guest only=OK apart from the above.

I still cant get to see the share in N/w Nbhood.

As for the http://netbios name, i just wanted to convey that there is no name resolution error from other machines, which some people may think.
win98+ Win NT=0
Jairo Campana
Trusted Contributor

Re: samba

it shows the global configuration of your smb.conf
legionx
Christoph Rothe_3
Frequent Advisor

Re: samba

Hi,

have you tried to enable plain text passwords on the windows boxes or to use smbpasswd to create passwords for the samba users ?

In my oppinion one of those has to be done.

Christoph
Kodjo Agbenu
Honored Contributor

Re: samba

Hello,

I would suggest you post your smb.conf.

Good luck.

Kodjo
Learn and explain...
Toni Niemi
Occasional Advisor

Re: samba

What is the linux you are using. Have you tried samba web admin (swat). It is web interface and so meaby more informative if one is new with samba. It is accessed with web browser at address http://sambaserver_hostname:901 and one must remember to put prefix http:// . Atleast in redhat 7.1 /etc/xinetd.d/swat file must be edited first by removing line disable=yes and localhost line also if you want to access admin tool from outside of sambaserver. after configuring swat file restart xinetd service by: service xinetd restart and access weblink mentioned earlier.
There is unlimited amount of information but very limited amount of time
Jarle Bjorgeengen
Trusted Contributor

Re: samba

Hi,

is the workgroup name correct in smb.conf ?

Do you have a windows version that use encrypted passwords by default ? In this case you need to enable encryption in samba as well, or plaintext pw in windows, which is sort of registry hack I believ.

Rgds Jarle
K.C. Chan
Trusted Contributor

Re: samba

what kind of window are u using to access smb server, is it win2k? Have you enable encrypted password in you smb.conf, if so then if you use win98 or lower you will have to hack the registry to support encrypted password.
Reputation of a thousand years can be determined by the conduct of an hour
Soumen Ghosh_1
Occasional Advisor

Re: samba

Hello,

That you can see the Linux m/c's name on the Windows Network Neighbourhood means that the Windows has been able to recognise it correctly.
After that, when you click on the plus(+) sign on the Windows Network Neighbourhood, client implementation of SMB on Windows (Workstation process), send your username and password with which you have logged into the Windows domain. Samba then sends those to PDC for authentication (depending upon smb.conf configuration).
After successful authentication, Samba maps the Windows userid to a valid user account on Linux. For this purpose, it consults a user map file name of which has to be given in he smb.conf file.

Sample smb.conf file :
workgroup =
netbios name = LINUXSRVR
security = SERVER
password server =
username map =
/usermap


Contents of usermap ;

=

The shared directory that is mentioned in the smb.conf file, has to have at least read permission for the Linux user account.

Hope it helps.

Soumen Ghos