Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
09-10-2001, 03:17 PM
|
#1
|
Member
Registered: Feb 2001
Posts: 51
Rep:
|
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.
|
|
|
09-10-2001, 03:56 PM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
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...
|
|
|
09-10-2001, 05:00 PM
|
#3
|
Member
Registered: Jul 2001
Location: Utah
Distribution: RedHat v7.3, OpenBSD 3.3, FreeBSD 5.0
Posts: 327
Rep:
|
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
|
|
|
09-10-2001, 05:40 PM
|
#4
|
Member
Registered: Feb 2001
Posts: 51
Original Poster
Rep:
|
thanks, ill try the smbpasswd -a <username> tonight.
I hope it works : )
|
|
|
09-10-2001, 05:58 PM
|
#5
|
Member
Registered: Jul 2001
Location: Utah
Distribution: RedHat v7.3, OpenBSD 3.3, FreeBSD 5.0
Posts: 327
Rep:
|
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!!
|
|
|
09-11-2001, 03:09 PM
|
#6
|
Member
Registered: Feb 2001
Posts: 51
Original Poster
Rep:
|
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?
|
|
|
09-11-2001, 03:17 PM
|
#7
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
Assuming you have file sharing on xp (and assuming it's the same as 9x) use
smbclient -L xpbox
and
smbmount //xpbox/share /mountpoint
|
|
|
09-11-2001, 03:53 PM
|
#8
|
Member
Registered: Feb 2001
Posts: 51
Original Poster
Rep:
|
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.
|
|
|
09-11-2001, 04:13 PM
|
#9
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
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.
|
|
|
All times are GMT -5. The time now is 10:51 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|