LinuxQuestions.org
Visit Jeremy's Blog.
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-10-2001, 02:17 PM   #1
thetruevoice
Member
 
Registered: Feb 2001
Posts: 51

Rep: Reputation: 15
1st attempt at samba


Here's the deal. This is my 1st real attempt at samba, so if anything i've setup is retartedly wrong please laugh, but not too hard.

Right now i have just 2 computers on my network a redhat 7 samba box and a win xp box. As of my current configuration from the xp box in my network places i can see my domain 'picklesworth' and i can see my samba server 'god'. when i try to explore 'god' it asks for a username and password. I then enter in my logon and password that is on my linux box, but it doesnt connect. it doesnt give me an error but it justs sits there asking for a username and password.


to hopefully help here is all the info i could think of that you'll might want to see...

domain = picklesworth

hostname = god (red hat 7, samba server)
ip = 192.168.0.1
net mask = 255.255.255.0

hostname = callandor (win xp box)
ip = 192.168.0.2
net mask = 255.255.255.0

--------====hosts.conf====--------

127.0.0.1 god localhost.localdomain localhost
192.168.0.1 god god.picklesworth.com
192.168.0.2 callandor callandor.picklesworth.com
192.168.0.2 shaitan shaitan.picklesworth.com

# there are 2 names for 192.168.0.2 because i have xp and #mandrake on that computer.

--------====hosts.allow====--------

#
# hosts.allow This file describes the names of the hosts which are

swat: 127.0.0.1 192.168.0

--------====hosts.deny====--------

#
# hosts.deny This file describes the names of the hosts which are

ALL:ALL

--------====resolv.conf====--------

nameserver 192.168.0.1
search localdomain

--------====xinetd.conf====--------

#
# Simple configuration file for xinetd

defaults
{
instances = 60
log_type = SYSLOG authpriv
log_on_success = HOST PID
log_on_failure = HOST RECORD
}

includedir /etc/xinetd.d

swat stream tcp nowait.400 root /usr/sbin/tcpd /usr/sbin/swat


--------====smb.conf====--------

# This is the main Samba configuration file.

#
#======================= Global Settings =====================================
[global]

workgroup = PICKLESWORTH

server string = Samba Server

####################################################################
nterfaces = 192.168.0.1/24 127.0.0.1/24
####################################################################

hosts allow = 192.168.0. 192.168.2. 127.

printcap name = /etc/printcap
load printers = yes

log file = /var/log/samba/log.%m

max log size = 50

security = user

password level = 8
username level = 8

encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd

unix password sync = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*

socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192



domain master = yes

preferred master = yes

domain logons = yes



wins server = 192.168.0.1

dns proxy = no


#============================ Share Definitions ==============================
[homes]
comment = Home Directories
browseable = no
writable = yes

###########################################################
[public]
comment = Public
path =/home/public
read only = No
create mask = 0664
directory mask = 0775
guest ok = Yes

[data]
comment = Data
path = /home/samba/data
read only = No
create mask = 0660
directory mask = 0770
guest ok = Yes

############################################################


[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
# Set public = yes to allow user 'guest account' to print
guest ok = no
writable = no
printable = yes



I hope this info helps. If there's anything i should have included
tell me and ill add it.

Thank you all in advance.
 
Old 09-10-2001, 02:56 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966
I don't know about password encryption on samba, but i *think* you need to use smbpasswd and smbuser etc... If there is an XP equivalent of win9x's EnablePlainTextPassword, i'd recommend using that and set encrypt password = no, or whateevr it was...
 
Old 09-10-2001, 04:00 PM   #3
sancho5
Member
 
Registered: Jul 2001
Location: Utah
Distribution: RedHat v7.3, OpenBSD 3.3, FreeBSD 5.0
Posts: 327

Rep: Reputation: 30
optimally, rather than setting your network to NOT authenticate using encryted passwords, you should configure Samba to recognize the encrypted passwords that windows sends.

You already have 'encrpyted passwords = yes' set. If you haven't done it yet, run the following command to set your user up with an encrypted password to use:
Code:
smbpasswd -a <username>
where <username> is the account name that is sent from the win box, and set the password to the same.

Your smb.conf looked correct from a quick glance; this may be all you need to do...
HTH
 
Old 09-10-2001, 04:40 PM   #4
thetruevoice
Member
 
Registered: Feb 2001
Posts: 51

Original Poster
Rep: Reputation: 15
thanks, ill try the smbpasswd -a <username> tonight.

I hope it works : )
 
Old 09-10-2001, 04:58 PM   #5
sancho5
Member
 
Registered: Jul 2001
Location: Utah
Distribution: RedHat v7.3, OpenBSD 3.3, FreeBSD 5.0
Posts: 327

Rep: Reputation: 30
Make sure after you set everything, you restart the daemons afterwards. I caught myself not doing that, and wondering why things don't work... doh!!
 
Old 09-11-2001, 02:09 PM   #6
thetruevoice
Member
 
Registered: Feb 2001
Posts: 51

Original Poster
Rep: Reputation: 15
Thanks ppl for the help. smbpasswd -a <username> is all i had missed.

I swear when i got it workin last night i got up and danced. One small question though...

I can get into my linux box from Win XP. But how do i get to WIn from my linux box?
 
Old 09-11-2001, 02:17 PM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966
Assuming you have file sharing on xp (and assuming it's the same as 9x) use

smbclient -L xpbox

and

smbmount //xpbox/share /mountpoint
 
Old 09-11-2001, 02:53 PM   #8
thetruevoice
Member
 
Registered: Feb 2001
Posts: 51

Original Poster
Rep: Reputation: 15
thanx acid

one other question, ive been seeing a decent amount of info on NFS lately. If im not mistaken i'm understanding NFS is the Network File System for linux. but what exactly does it do? Is there a point to run samba and nfs. or is it either one or the other?

The reason im asking is i finally got this box up and samba workin so i can communicate from linux to windows, but now im not sure what all exactly i want this linux box to do. I've been wanting it to do most of the server type functions. to put more easy on the other computers on the network. And ill probably attempt to setup this box as a DNS server and run the cable modem through the box. But does anybody have any suggestions on what all i should put on here. I know there's utilities and so forth on linux that i've probably never even heard of, so any advice would be great.
 
Old 09-11-2001, 03:13 PM   #9
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966
NFS came before SaMBa, NFS is for linux/unix to itself, while samba is primarily for windows, but works for linux too. I've been trying to understand nfs a bit recently, but not really got anywhere, besides crashing a bit. I just don't think i need it, although i think that it is easier and quicker than samba on lin to lin connections. so, you don't NEED nfs, BUT it is mroe integrated and so forth, so if your doing it by the book it's somethign to get round to i guess.

i'ev a rh71 gateway which currently controls these...

fetchmail to get my emails from the wide world once every 60 seconds for ever and ever.

Samba serving 6000 mp3's over my network (mmmmmmmmm)

IMAP server to allow win9x machines to check mail from a local course, rather than externally. This makes keeping track of mail sooo much easier! before i was downloading all of it to Outlook express while fetchmail only got mail that was still marked as new on teh external servers. Also it makes it sooo much faster. If you're using linux machines as well, you can also just export the mail folders to the network via smb or nfs and it's all entriely transparent.. which is an amazingly simple thing i think.. and works perfectly!

I also have a http (apache) and ftp servers runnning on them pretty much for the sake of it, but they come in very handy when samba is pissing around with me. they're both very very easy to install, and generally are defaulted to be pretty secure from outside attack.

Finally (i think) i run a modem server on it, to allow all connected machines to dial the gateways modem.. but that's not too relevant for you though i guess.

Oh and of course ssh server.. but that's for granted i guess

One of the things i want to do is to get it as a dns server, but i've not bothered yet.
 
  


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
Noob attempt at running SUSE Linux 10 as DHCP/DDNS/NFS/Samba Server Robhemmings Linux - Networking 1 04-12-2006 08:13 AM
Attempt#2: Help...?? lostinpurdy Linux - Newbie 17 10-17-2005 08:23 PM
What password I should enter at attempt of access to the catalogue of a samba-server? ukrainet Linux - Newbie 1 12-21-2004 07:36 AM
Having trouble with first attempt cothrige Linux - Networking 9 04-28-2004 06:20 PM
No networking in first attempt. araldit Linux - Networking 1 03-24-2004 11:50 AM


All times are GMT -5. The time now is 06:19 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration