PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : samba konfigurieren und starten ?



_THE_LAW_
10.02.03, 13:54
Grüße ,
alsi ich verwende suse linux 8.0 will samba zum laufen bringen weil ich einen fileserver drausmachen will .
ich habe die smb.conf editiert und ich möchte jetzt samba starten ? und erst einmal testen .
wie kann ich die smb und nmb Dienste starten damit die beim starten geladet werden . Könnt ihr mir das richtige verzeichniss nennen , und den/die befehl/e .

Ich bedanke mich schon mal im voraus .

ach ja zur info . ich bin linux neuling . Ich habe mich gerade einmal 2 wochenenden mit linux beschäftigt . Mit dem kde hab ich mich eh schon a bisserl mehr gespielt nur die shell ( bash ) hab ich noch nicht so ganz unter kontrolle . Und mein erster großer linux auftreg ist eben samba server konfigurieren .


mfg _THE_LAW_

chrigu
10.02.03, 14:13
samba starten => rcsmb start

dass samba automatisch startet kannst du irgendwo im yast einstellen glaube ich..

gruss chrigu

Thomas Mitzkat
10.02.03, 14:21
samba starten => rcsmb start
wenn du das machst, musst du auch

rcnmb start

eingeben, weil sonst der rechner nicht in der netzwerkumgebung erscheint. am besten

rcsamba start/stop/restart


yast-runleveleditor ist schon die richtige adresse, um das dauerhaft einzustellen.

elxdio
10.02.03, 14:22
moin

wenn du nur "rcsmb start" ausführst, läuft samba noch nicht einbandfrei.
da der nmb service auch benutzt wird (rcnmb).
damit du die dienste nicht autonom straten musst, kannst du mit "rcsamba start"

elxdio
10.02.03, 14:24
öhh

fas du die dienste nach jedem reboot, gestartet habe willst.
editiere einfach den runlevel editor.


bye

_THE_LAW_
10.02.03, 15:51
Original geschrieben von elxdio
öhh

fas du die dienste nach jedem reboot, gestartet habe willst.
editiere einfach den runlevel editor.


bye


wie und wo mach ich das unter suse linux 8.0 ????

Thomas Mitzkat
10.02.03, 16:40
YAST-Kontrollzentrum->System->Runlevel-Editor.

Linux Anfänger
10.02.03, 18:50
Hallo alle

Es gibt da auch noch son super Ge..s Prog namens Webmin.
zu finden unter

www.webmin.com

Das ist wirklich super einfach zu bedienen. Es gibt auch eine rpm version die ist dann auch noch super einfach zu installieren.

Dieses Webmin kann so ziemlich alles was man im normalen nicht Windows Leben braucht.

Viel Spaz

elxdio
10.02.03, 19:14
moin

bei suse 8.0 ist doch swat (samba web administratio tool)
dabei ....
einfach mal testen
auch sehr simpel zu bedinen ..


bye

Thomas Mitzkat
11.02.03, 09:08
swat ist bei samba dabei:


Name

swat -- Samba Web Administration Tool

Synopsis


swat [-s <smb config file>] [-a]


DESCRIPTION


This tool is part of the Samba suite.

............


Inetd Installation


You need to edit your /etc/inetd.conf and /etc/services to enable SWAT to be launched via inetd.


In /etc/services you need to add a line like this:


swat 901/tcp


In /etc/inetd.conf you should add a line like this:


swat stream tcp nowait.400 root /usr/local/samba/bin/swat swat


One you have edited /etc/services and /etc/inetd.conf you need to send a HUP signal to inetd. To do this use kill -1 PID where PID is the process ID of the inetd daemon.


Xinetd Installation

The following file should be created as /etc/xientd.d/swat. It is then be neccessary cause the meta-daemon to reload its configuration files. Refer to the xinetd man page for details on how to accomplish this.

## /etc/xinetd.d/swat
service swat
{
port = 901
socket_type = stream
wait = no
only_from = localhost
user = root
server = /usr/local/samba/bin/swat
log_on_failure += USERID
disable = No
}


Launching

To launch SWAT just run your favorite web browser and point it at "http://localhost:901/".

roxor
11.02.03, 15:47
hi all

zuerst: bin ein ziemlicher noob, hab schon ein paar wenige sachen gemacht mit linux jedoch nichts schwieriges. grad mal das system etwa meinen wuenschen angepasst, internet etc.!

ich versuch nun schon ne ganze weile, swat zu installieren aber irgendwas scheint nicht zu funktionieren. kann mir vielleicht jemand helfen?
ich moechte mittels swat samba administrieren.
gebe ich im browser http://localhost:901 ein, kommt folgende fehlermeldung:

"Server Error
The following error occurred:
An invalid URL was detected. NetCache cannot serve the request as entered."


ich kann bereits von linux aus windows shares mounten (mit smbmount,smbclient), jedoch funzt es umgekehrt nicht, also von windows auf linux.
ich sehe den linux-rechner in der netzwerkumgebung, kann sogar den usernamen und pw eingeben, jedoch bleibs dann auch dabei. selbst wenn ich als usernamen "root" und das root-pw eingebe, kommt diese aufforderung immer wieder.
hat irgendwer ne idee?


Hab auch die suchfunktionen benuetzt und andere beitraege ebenfalls gelesen, nicht das mir jetzt jemand nachwerfen koennte, das haet' ich nicht getan!=)

hier ein paar files, welche ich editiert hab:

smb.conf


#
# /etc/samba/smb.conf ist the main samba configuration file. Cf. the
# manual page of smb.conf and the included documantation in
# /usr/share/doc/packages/samba in order to understand the options
# listed here and many more features.
#
# Lines in this example which starts with ; and # are ignored comment
# ones. # indicates a comment and ; a deactivated example line.
#
# We suggest to use the command 'testparm' after any changes you made.
#
# Copyright (c) 1999 - 2001 SuSE GmbH Nuernberg, Germany.
#
# Please send bugfixes or comments to feedback@suse.de.
#
[global]
workgroup = LINUX-TEST
os level = 2

security = share
encrypt passwords = Yes
guest account = zellweger
map to guest = Bad User


# Uncomment the following, if you want to use an existing NT-Server to
# authenticate users, but don't forget that you also have to create them
# locally!
; security = server
; password server = 192.168.1.10

printing = LPRNG
printcap name = /etc/printcap
load printers = Yes

# These settings are a suggestion for a local network. Cf. section
# 'socket options' in the man page of smb.conf and socket(7).
socket options = SO_KEEPALIVE IPTOS_LOWDELAY TCP_NODELAY


# Please uncomment the following entry and replace the ip number and
# netmask with the values of your network interface configuration.
interfaces = 172.20.4.156/255.255.0.0



# Set these two parameters to your DOS code page and appropriate UNIX
# character set. These values are for west European languages (Latin-9)
# UNIX character and MS-DOS Latin 1 code page.
character set = ISO8859-15
client code page = 850

# This is a simple measure against Nimba Worm. Cf. README.Win32-Viruses
veto files = /*.eml/*.nws/riched20.dll/*.{*}/



[homes]
comment = Home Directories
read only = No
create mask = 0640
directory mask = 0750
browseable = yes

[test1]
comment = test share
path = /home/zellweger/samba-shared/test1
read only = yes
browseable = yes
public = yes
directory mask = 777
create mask = 666
bind interfaces only = yes

# The following share gives all users access to the Server's CD drive,
# assuming it is mounted under /media/cdrom. To enable this share,
# please remove the semicolons before the lines
;[cdrom]
; comment = Linux CD-ROM
; path = /media/cdrom
; locking = No

[printers]
comment = All Printers
path = /var/tmp
create mask = 0600
printable = Yes
browseable = No



inetd.conf


<text ausgelassen>

# swat is the Samba Web Administration Tool
swat stream tcp nowait.400 root /usr/sbin/swat swat

<text ausgelassen>




services


<text ausgelassen>
swat 901/tcp # CONFLICT, not official assigned!
smpnameres 901/tcp # SMPNAMERES
smpnameres 901/udp # SMPNAMERES
<text ausgelassen>



Ich hab diesen thread durchgelesen und genau das gemacht, was thomas gesagt hat, natuerlich mit den entsprechenden pfadaenderungen.
ich benutze suse linux 8.0, dort ist swat etc. an einem anderen ort.

kann mir jemand mit diesen angaben helfen oder braucht ihr noch was mehr?
bin um jede hilfe froh...



bis bald
cu rox