LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-31-2005, 02:23 AM   #1
matrixpk
Newbie
 
Registered: May 2005
Posts: 7

Rep: Reputation: 0
Samba Configuration ..?


[global]

Dos charset =cp850
Unix charset =UTF-8
Workgroup = century21NET
Netbios name = gateway (local machine)
name resolve order = lmhosts wins hosts bcast
Security =USERS
encrypt = yes
Wins server = 192.168.0.236 (basically it is a domain name where WINS is installed)
Wins support = no
Host allowed = 192.168.0.0/24

Rest all the default parameter.

/etc/samba/lmhosts :
127.0.0.1 localhost
192.168.0.236 WINSmachine


Problem:
I can see ip of all windows machines over network but cant go inside , prompt by id/password.I have tested the server credentials and also others but nothing worked . I can access share folder of 98.

Also i am unable to revolve ip-machine names. i defined manually each machine name in /etc/hosts.

I will appreciate quick response

Regards
Kamran
 
Old 05-31-2005, 02:36 AM   #2
saneax
Member
 
Registered: Aug 2004
Distribution: Gentoo, Suse, Fedora, Debian
Posts: 86

Rep: Reputation: 15
Presuming you just want a File Share Access
Recommendations you can try...

1) the workgroup name should be less than 15 chars and sence its Win98 Machines on your network... then its recommended to keep it to 8 chars.
2) Since 'security = users' do you have smbpasswd file somewhere... in rh, it generally is located at /etc/samba/smbpasswd...so add this to config..
smbpasswd = /etc/samba/smbpasswd
3) add the unix users to smbpasswd with command
#>smbpasswd -a 'unix_user'
 
Old 05-31-2005, 02:42 AM   #3
matrixpk
Newbie
 
Registered: May 2005
Posts: 7

Original Poster
Rep: Reputation: 0
Basically we dont have workgroup, so in a workgroup field i have added domain name which is more than 8 chars. please advice me if its is required to change. second thing is that i have granted all the permissions to the folders so there is no point of share security violation.

smbpasswd file is already located in /etc/samba/smbpasswd and also have users for samba.
i can access linux machine from all windows machine...
 
Old 05-31-2005, 02:55 AM   #4
saneax
Member
 
Registered: Aug 2004
Distribution: Gentoo, Suse, Fedora, Debian
Posts: 86

Rep: Reputation: 15
when you are trying to access the shares... see what is the output from the /var/log/samba/smbd.log...
The workgroup here shouldnt be the same as that of the central domain name ...
I mean this linux server ought/meant to be a standalone file server... If you are having a Domain Controller configured and want this linux machine to be a member server of the DC, then the config file is not appropriate...
 
Old 05-31-2005, 03:02 AM   #5
matrixpk
Newbie
 
Registered: May 2005
Posts: 7

Original Poster
Rep: Reputation: 0
so u mean i need to change it to Domain Controller.
what about workgroup? should i leave this field empty? cause we havenot defined any workgroup
 
Old 05-31-2005, 03:10 AM   #6
saneax
Member
 
Registered: Aug 2004
Distribution: Gentoo, Suse, Fedora, Debian
Posts: 86

Rep: Reputation: 15
Samba can be configured on the Linux in many ways... first know your requirements...
I am presuming...You just want to access the files on the linux ?


if the above is correct... then you can give any workgroup name... its just OK... just for peace choose something within 8 chars...
then check the file permissions I think you should be done...

if still there is problem... post the outputs from smbd.log when you try to access the shares
 
Old 05-31-2005, 04:06 AM   #7
matrixpk
Newbie
 
Registered: May 2005
Posts: 7

Original Poster
Rep: Reputation: 0
First of all i want to access windows 2000 machine from my linux PC.
Already i can browse linux from windows.

Here is the nmbd log file message:
Error 0 when resturened when querying WINS sever for name workgroup
find_domain_master_name_query_fails
unable to find domain master browser name workgroup
unable to sync browse lists in this workgroup.


(remember we have not any workgroup define)

Last edited by matrixpk; 05-31-2005 at 04:08 AM.
 
Old 05-31-2005, 04:10 AM   #8
saneax
Member
 
Registered: Aug 2004
Distribution: Gentoo, Suse, Fedora, Debian
Posts: 86

Rep: Reputation: 15
It might sound bad, but I am certain you are not certain what you want...

please refer to some initial understanding of samba from ...

http://www.samba.org/samba/docs/man/...tion/type.html

best luck
 
Old 05-31-2005, 04:14 AM   #9
matrixpk
Newbie
 
Registered: May 2005
Posts: 7

Original Poster
Rep: Reputation: 0
hey i want to access windows machine from my linux system... thats all i want.
 
Old 05-31-2005, 04:26 AM   #10
saneax
Member
 
Registered: Aug 2004
Distribution: Gentoo, Suse, Fedora, Debian
Posts: 86

Rep: Reputation: 15
matrixpk,
sorry didnt quite read your statement earlier..

cant you just do
man smbmount...

you have to mount the Dirs, shared in the windows machines, because I presume you do not have a central authenticating server like DC... you will have to access individual machines.. with there respective Administrator/passwd


tarooza:/home/saneax # smbclient -L //192.168.0.51 -U Administrator%secret... to look at the shares...

now mount it on a drive... say /mnt/smb

smbmount //192.168.0.51/d /mnt/smb username=Administrator


browse the folder /mnt/smb...

generally the Linux UI file browsers specially nautilus will not function... properly... unless you have a DC and your linux is a member server of the DC
 
Old 05-31-2005, 04:35 AM   #11
matrixpk
Newbie
 
Registered: May 2005
Posts: 7

Original Poster
Rep: Reputation: 0
saneax thanx alot of your co-operation.
i am not sure that i am able to deliver my problem.
when i try to browse LAN, like when i access any machine,it prompts me for user name and password, but when i supply my credential , it rejects.
However i can logon using anonymus user thru command prompt.
smbclient -L machineIP -n

Once again thank you
 
Old 05-31-2005, 04:39 AM   #12
saneax
Member
 
Registered: Aug 2004
Distribution: Gentoo, Suse, Fedora, Debian
Posts: 86

Rep: Reputation: 15
the credentials you supply has to be for the server's username and passwd rather than linux users username and passwrd..

lets say you are connecting to windows machine with ip x.x.x.x then you should supply the credentials of a user and passwd in server x.x.x.x

I am sure it will work...
 
Old 05-31-2005, 04:41 AM   #13
matrixpk
Newbie
 
Registered: May 2005
Posts: 7

Original Poster
Rep: Reputation: 0
it is not working...
i have tested all.....
 
Old 05-31-2005, 09:55 AM   #14
Darin
Senior Member
 
Registered: Jan 2003
Location: Portland, OR USA
Distribution: Slackware, SLAX, Gentoo, RH/Fedora
Posts: 1,024

Rep: Reputation: 45
Computers on a Win2k domain usually do not take domain username/password credentials from another computer unless that computer is part of the domain. To change this, you can add local users to each windows computer you want to access from the Linux box or you can set Samba up as member of the domain. http://www.samba.org has documentation on how to add a Linux/Samba computer to a windows domain:

http://www.samba.org/samba/docs/usin...2-CHP-4-SECT-7

If you join the domain then you workgroup = line must be equal to the domain name, if you have not joined the domain then it must be different than the domain name.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba Configuration halod Linux - Networking 1 09-02-2005 07:46 AM
Samba Configuration EzehM Linux - Networking 6 06-24-2004 02:46 PM
I need some Samba configuration help... GetCool Linux - Networking 2 11-17-2003 05:36 PM
Samba configuration littlegreenman Linux - Networking 14 09-10-2003 11:55 AM
SAMBA Configuration lee foster Linux - Newbie 4 10-23-2002 10:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration