LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 09-14-2003, 12:37 AM   #1
rufius
Member
 
Registered: Oct 2002
Location: Miami, FL
Distribution: Ubuntu
Posts: 184

Rep: Reputation: 30
Arrow Linux Fileserver w/ Windows Clients


Ok, I'm setting up a linux fileserver using MDK as my distro and samba of course. The clients are Win2K and WinXP computers. All computers are hooked together via router and all have internet access. I have the Linux box up and running and I'm trying to use WebMin to setup the Samba stuff so that I can start using it as the fileserver. Now my Win2K box will see the Fileserv in the WorkGroup but when I try to access the computer it says

"//Fileserv is not accessible.
The network path could not be found."

Someone mentioned to me that I may not have soemthing correct in my iptables which is highly possible but I need some input on what kind of things I should change in iptables so that the Windows computers can access the server. Any help would be greatly appreciated.
 
Old 09-14-2003, 01:26 AM   #2
mychl
Member
 
Registered: Jul 2001
Location: Earth
Posts: 164

Rep: Reputation: 30
I don't think iptables is the problem as your server shows up in your workgroup.....

Windows uses netbios to access named servers... that runs on ports 138 and 139.... Simply open those ports to your internal network and you'll be all set... provided iptables is your problem....

You should test that by trying to access the shares with iptables off momentarily. If it works, see above... but I think you might want to look into enabling encrypted passwords in smb.conf.... also make sure you have set up users for samba with the smbpasswd command.

HTH a bit
 
Old 09-14-2003, 08:51 AM   #3
paulvl
LQ Newbie
 
Registered: Aug 2003
Location: The Netherlands, Zoetermeer (15Km East from The Hague)
Distribution: Red Hat Linux release 9 (Shrike) (Kernel 2.4.20-8 on an i686)
Posts: 27

Rep: Reputation: 15
Little as much as mychl said:

From shell (I don't have a Desktop env. so...):
Code:
vi /etc/services
...[edit]
...   netbios-ns    137/tcp   nbns
...   netbios-ns    137/udp   nbns
...   netbios-dgm   138/tcp   nbdgm
...   netbios-dgm   138/udp   nbdgm
...   netbios-ssn   139/tcp   nbssn
...   netbios-ssn   139/udp   nbssn
...[/edit]


With encrypt passwords = yes you have to give samba a file with the windows way to encrypt password. Do the following:
Making the smbpasswd:
Code:
smbpasswd -a username
for all your users.

Next do
Code:
find / -name smbpasswd
You might find multiple files (I did). Open them and look for the one looking like:
Code:
username:user_id:long hexadecimal string:long hexadecimal string:[UX]:LCT-hexadecimal string
For me it was the file /etc/samba/smbpasswd (as you can see in my smb.conf), but I have seen tutorials for RH with another location so...


Next step the smb.conf. Below is (part of) mine. Might give you an idea what could be missing.
Code:
vi /etc/samba/smb.conf
...   #=============== General settings ===============
...   [global]
...         workgroup = vk26wg
...         server string = The VK26 Server
...         security = user
...         encrypt passwords = yes
...         smb passwd file = /etc/samba/smbpasswd
...         log file = /var/samba/samba-log.txt
...         log level = 2
This might work. Maybe not. Then please post your smb.conf and the samba-log.txt
This way someone (you ? ) might see what's could be wrong...

Best of Luck,

GrTzzz....

paulvl
 
Old 09-14-2003, 09:02 AM   #4
paulvl
LQ Newbie
 
Registered: Aug 2003
Location: The Netherlands, Zoetermeer (15Km East from The Hague)
Distribution: Red Hat Linux release 9 (Shrike) (Kernel 2.4.20-8 on an i686)
Posts: 27

Rep: Reputation: 15
BTW, This is a nice article about SMB. It is running on a cheap-ass-server, so it might be down from time to time.
http://www.linux-mag.com/2001-05/smb_01.html

Ciao
 
Old 09-14-2003, 02:34 PM   #5
rufius
Member
 
Registered: Oct 2002
Location: Miami, FL
Distribution: Ubuntu
Posts: 184

Original Poster
Rep: Reputation: 30
Ty ty guys, I'll probly post back later tonight when I have time to play around with the server, lol this is my first time on linux in about 3 months, I've been gaming all summer lol. But I always miss linux when i leave it :-p. Hope those will fix my problems.
 
Old 09-14-2003, 07:58 PM   #6
rufius
Member
 
Registered: Oct 2002
Location: Miami, FL
Distribution: Ubuntu
Posts: 184

Original Poster
Rep: Reputation: 30
[global]
log file = /var/log/samba/log.%m
smb passwd file = /etc/samba/smbpasswd
load printers = yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
null passwords = yes
map to guest = bad user
encrypt passwords = yes
printer admin = @adm
dns proxy = no
netbios name = FILESERV
server string = Samba Server %v
printing = cups
path = /home
workgroup = WORKGROUP
os level = 20
printcap name = cups
valid users = zac,lynn
security = share
max log size = 50

[homes]
comment = Home Directories
browseable = no
writable = yes

[pdf-generator]
path = /var/tmp
guest ok = No
printable = Yes
comment = PDF Generator (only valid users)
#print command = /usr/share/samba/scripts/print-pdf file path win_path recipient IP doc_name &
print command = /usr/share/samba/scripts/print-pdf %s ~%u //%L/%u %m %I "%J"
[lynn]
path = /home/lynn
browseable = yes
writable = yes
create mask = 0755
valid users = zac lynn root
public = no

[zac]
path = /home/zac
browseable = yes
writable = yes
valid users = zac root
create mask = 0777
public = no


^^ my smb.conf file. If you see something feel free to tell me for im a noob lol. If either of you guys could give me an idea on how to test the iptables problem, thgat would be great, or anyone else for that matter. I've forgotten half the things i knew bout linux in 3 months lol.

Last edited by rufius; 09-14-2003 at 08:01 PM.
 
Old 09-16-2003, 08:08 PM   #7
paulvl
LQ Newbie
 
Registered: Aug 2003
Location: The Netherlands, Zoetermeer (15Km East from The Hague)
Distribution: Red Hat Linux release 9 (Shrike) (Kernel 2.4.20-8 on an i686)
Posts: 27

Rep: Reputation: 15
Unhappy

First of all, I kind of don't know about iptables. Sorry

Second, I was happy to have my own samba running and read quite some articles. So I thought to know some things... Starting to doubt that. I don't have a *clue* what could be wrong with your conf.

Gues I can't be of any help for you here.

Hope someone else can.

Best of luck!

GrTzzz....
paulvl
 
Old 09-16-2003, 10:51 PM   #8
mychl
Member
 
Registered: Jul 2001
Location: Earth
Posts: 164

Rep: Reputation: 30
Did you create samba users with the smbpasswd command?

What kind of router do you have set up? Can you move files from windows to windows?

Creating users with smbpasswd is important... won't work without it....

Get back to us....
 
Old 09-17-2003, 10:15 AM   #9
rufius
Member
 
Registered: Oct 2002
Location: Miami, FL
Distribution: Ubuntu
Posts: 184

Original Poster
Rep: Reputation: 30
I have been able to move files from windows to windows in the past so I know its possible. I created the smbpasswd's as well. Right now I'm just in the process of working on it... will get back to it in a bit.
 
Old 09-17-2003, 01:03 PM   #10
ehpserver
Member
 
Registered: Sep 2003
Posts: 38

Rep: Reputation: 15
Lightbulb

HI Hrufius, Iam using webmin to serve my xp/2003 clients. following is the procedure what iam using.
My file server details:
Redhat 9.0 , two realtek cards , 512 mb ram , p-4

1- lan card ip : 202.x.x.x 1- lan card ip : 10.0.0.1/255.255.0.0

first create users in file server . U must use these user names/passwords to login to
your windows pcs.
for example create user :test password:123456
Now goto webmin / servers - >goto samba section . use default Home Directories share
click on "Convert Unix users to Samba users"

now goto windowsxp client pc login as test / 123456. (** you must already able to ping
your windowxp client pc.) goto mynetwork places and search for pc 10.0.0.1
it will appear and by double clicking on it will your home directory on file server.


*** sorry if any wrongs , i am trying to tell u what iam using.
*** iam suggesting u gui for iptables , very easy one is http://firestarter.sourceforge.net/


-Thanks

Last edited by ehpserver; 09-17-2003 at 01:06 PM.
 
Old 09-17-2003, 11:58 PM   #11
montybass
LQ Newbie
 
Registered: Sep 2003
Posts: 6

Rep: Reputation: 0
http://us1.samba.org/samba/docs/using_samba/toc.html
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Assistance- Windows Fileserver, SuSE Clients- How do we communicate? ZingSter Linux - Networking 1 02-17-2005 02:44 PM
Samba - one windows box cant see my Linux fileserver crm Linux - Networking 2 11-08-2004 03:37 PM
Linux Antivirus and Windows Clients dtournas Linux - Security 5 08-21-2003 06:48 PM
how to get linux xwindows on M$ windows clients mayankjohri Linux - Software 4 04-03-2003 12:53 PM
accessing Windows fileserver from linux nuzzy Linux - Networking 1 08-30-2001 05:04 PM

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

All times are GMT -5. The time now is 08:41 PM.

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