Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Install Samba
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Black666
n00b
n00b


Joined: 15 Jul 2002
Posts: 61
Location: Vienna (Austria)

PostPosted: Fri Jul 19, 2002 8:52 am    Post subject: Install Samba Reply with quote

Hi!
I installed samba with emerge samba and I'm currently configuring it with the help of some how-to's

What I've read I can either start it with a script that executes smbd and nmbd or through the file /etc/inetd.conf
From my suse installation I know the file inetd.con but at gentoo I haven't found it ... instead I've found something like xinetd.

How do I open/close ports through xinetd (I will start samba through a script now, but I would like to know anyway)?

Plus: I started the two samba daemons but I can't connect to swat through port 901

Maybe it's something about xinetd and ports?
Back to top
View user's profile Send private message
mksoft
l33t
l33t


Joined: 28 May 2002
Posts: 844

PostPosted: Fri Jul 19, 2002 9:44 am    Post subject: Re: Install Samba Reply with quote

Black666 wrote:
Hi!
I installed samba with emerge samba and I'm currently configuring it with the help of some how-to's

What I've read I can either start it with a script that executes smbd and nmbd or through the file /etc/inetd.conf
From my suse installation I know the file inetd.con but at gentoo I haven't found it ... instead I've found something like xinetd.

How do I open/close ports through xinetd (I will start samba through a script now, but I would like to know anyway)?


Emerge xinted and add it to the default runlevel:
Code:
rc-update add xinted default


xinetd services are controlled via conf files in /etc/xinetd.d. AFAIK, services installed after emerge are disabled by default.

Black666 wrote:

Plus: I started the two samba daemons but I can't connect to swat through port 901

Maybe it's something about xinetd and ports?


swat is a seperate service, and is not started by smbd/nmbd. When you install samba, you'll get a files named swat in /etc/xinted.conf. The file looks like this (after install):
Code:
# default: off
# description: SWAT is the Samba Web Admin Tool. Use swat \
#              to configure your Samba server. To use SWAT, \
#              connect to port 901 with your favorite web browser.
# $Header: /home/cvsroot/gentoo-x86/net-fs/samba/files/swat.xinetd,v 1.3 2002/05
/06 19:57:08 woodchip Exp $

service swat
{
        port            = 901
        socket_type     = stream
        wait            = no
        only_from       = localhost
        user            = root
        server          = /usr/sbin/swat
        log_on_failure += USERID
        disable         = yes
}


If you want it activated, change disable to no. When xinted will be started, it'll activate swat upon connection attempt to port 901.

For the rest, read the man pages for xinetd.
_________________
There's someone in my head but it's not me - Pink Floyd
Back to top
View user's profile Send private message
Black666
n00b
n00b


Joined: 15 Jul 2002
Posts: 61
Location: Vienna (Austria)

PostPosted: Fri Jul 19, 2002 10:13 am    Post subject: Reply with quote

Thnx ... now I can connect to port 901 but somehow he doesn't accept my root username+password!!??

Plus I'm not able to share a folder for my W2K domain ... the same problem as with swat - he wants username + pw but accepts nothing (not even root account). Any hints how I can share a folder without authentication, just a tmp folder for everyone to read/write
Back to top
View user's profile Send private message
Black666
n00b
n00b


Joined: 15 Jul 2002
Posts: 61
Location: Vienna (Austria)

PostPosted: Fri Jul 19, 2002 10:31 am    Post subject: Reply with quote

Ok, I now generated a smbpasswd file with
Code:
cat /etc/passwd | mksmbpasswd.sh > /usr/local/samba/private/smbpasswd


and set a password for root with
Code:
smbpasswd


Now I can connect to the shares using root username+pw .... but how do I make shares available that everyone can read/write without authentication.

@swat: How can I access swat from remote computers? I removed the "only_from = localhost" from the swat file in xinet.d but I still can only connect from localhost!?

Btw: Does someone know a good samba how-to or guide? The how-to's I'm reading are a bit confusing...
Back to top
View user's profile Send private message
Pasoa2000
n00b
n00b


Joined: 06 Jul 2002
Posts: 29

PostPosted: Fri Jul 19, 2002 12:40 pm    Post subject: Reply with quote

Check the doc's on www.linuxnewbie.org - they have a fairly straightforward section on setting up samba. As for connecting to win2k machines - with the guest account disabled there is no anonymous access.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum