sslug-teknik team mailing list archive
-
sslug-teknik team
-
Mailing list archive
-
Message #28379
Sv: dhcp og netv�sadresser
Jeg havde præcis samme problem med dhcp og samba. Prøv at kigge på
http://samba.linuxbe.org/
Jeg fik afhjælpet problemet ved hjælp af dette udklip fra ovenstående side:
Using inetd
The inetd is a deamon which will listen on certain TCP and UDP ports. When
he detects a connection on one of these ports, it will start the program
which has been associated with this port in its configuration. When the
connection is dropped, inetd will stop the daemon.
Attention, if you want to use the inetd facility, you must be sure that
there is no script on your system which launch the Samba daemons. Using the
two method together is not possible because two differents process (inetd on
one side and smbd and nmbd on the other side) cannot listen on the same TCP
or UDP ports.
The daemon inetd will listen on the TCP and UDP ports which appear in his
configuration file. When he detects an incoming connection on one of these
ports, he starts the associated daemon. On advantage of this method is that
the daemons are automatically started when needed. This can be interresting
in the case of big server. Another advantage is that you don't have to look
if the processes are running or not. You know that the inetd will fire a new
daemon each time this is needed.
You configure the ined deamon thru two files /etc/services, the services
file and /etc/inetd.conf, the inetd configuration file.
In the service file (/etc/services), you must have the following lines :
netbios-ns 137/udp # NetBIOS name server
netbios-ssn 139/tcp # NetBIOS share server
In the /etc/inetd.conf file, you will have to add the following lines :
netbios-ssn stream tcp nowait root
/usr/local/samba/bin/smbd
netbios-ns dgram udp wait root
/usr/local/samba/bin/nmbd
I mit tilfælde var det inetd.conf filen der ikke var opdateret. Jeg
tilføjede blot ovenstående to linier og rettede stien hvorefter det
spillede.
Nu mangler jeg blot at finde ud af hvordan man konfigurer samba med SWAT.
Jeg kan se serveren fra win98 men kan ikke logge ind. Jeg går ud fra at der
skal rettes i "passwd" filen men lige hvordan man gør er jeg ikke klar over.
Hvis nogen kan hjælpe må i gerne skrive.
Venlig hilsen
Morten Kristensen.
Follow ups
References