PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Samba einrichten...



Seiten : [1] 2

DeadlyAppearanc
20.07.04, 18:57
Hi, hab mich durch die Tips usw durchgelesen, aber es mag nit klappen ^^.
Ich habe den Sabaserver in die gleiche Arbeitsgruppe gehangen wie die Windowsrechner. Nun sehe ich diesen auch unter Windows. Klicke ich jedoch auf diesen, so kommt die Meldung:
Auf \\Linuxserver kann nicht zugegrifen werden...
Der Netzwerkpfad wurde nicht gefunden.

So habe ich das Verzeichnis in der smb.conf frei gegeben:
[myshare]
comment = Mary's and Fred's stuff
path = /boot
public = yes
writable = yes
printable = yes
create mask = 0777

Hab mal die iene oder andere Zeile we gelassen usw, immer das gleiche.
Von Windows aus, kann ich den Linuxrechner nur via IP anpingen. Mach ichn Ping auf Linuxserver, kann er diesen Namen nicht auflösen. Liegt viellecht der Hund hier begraben?

senseipetz
20.07.04, 19:09
einträge in die hosts datei unter windows per hand ein

x.x.x.x Linuxserver
x.x.x.x deinexpkiste

und unter linux ist es genauso..

/etc/hosts

ansonsten poste mal deine smb.conf

DeadlyAppearanc
20.07.04, 19:11
# This is the main Samba configuration file. You should read the
# smb.conf(5) manual page in order to understand the options listed
# here. Samba has a huge number of configurable options (perhaps too
# many!) most of which are not shown in this example
#
# Any line which starts with a ; (semi-colon) or a # (hash)
# is a comment and is ignored. In this example we will use a #
# for commentry and a ; for parts of the config file that you
# may wish to enable
#
# NOTE: Whenever you modify this file you should run the command "testparm"
# to check that you have not made any basic syntactic errors.
#
#======================= Global Settings =====================================
[global]

# workgroup = NT-Domain-Name or Workgroup-Name
workgroup = deathzone

# server string is the equivalent of the NT Description field
server string = Samba Server

# This option is important for security. It allows you to restrict
# connections to machines which are on your local network. The
# following example restricts access to two C class networks and
# the "loopback" interface. For more examples of the syntax see
# the smb.conf man page
; hosts allow = 192.168.1. 192.168.2. 127.

# if you want to automatically load your printer list rather
# than setting them up individually then you'll need this
printcap name = /etc/printcap
load printers = yes

# It should not be necessary to spell out the print system type unless
# yours is non-standard. Currently supported print systems include:
# bsd, sysv, plp, lprng, aix, hpux, qnx
; printing = bsd

# Uncomment this if you want a guest account, you must add this to /etc/passwd
# otherwise the user "nobody" is used
; guest account = pcguest

# this tells Samba to use a separate log file for each machine
# that connects
log file = /var/log/samba/%m.log
# all log information in one file
# log file = /var/log/samba/smbd.log

# Put a capping on the size of the log files (in Kb).
max log size = 50

# Security mode. Most people will want user level security. See
# security_level.txt for details.
# Use password server option only with security = server
; password server = <NT-Server-Name>

# Password Level allows matching of _n_ characters of the password for
# all combinations of upper and lower case.
; password level = 8
; username level = 8

# You may wish to use password encryption. Please read
# ENCRYPTION.txt, Win95.txt and WinNT.txt in the Samba documentation.
# Do not enable this option unless you have read those documents
; encrypt passwords = yes
; smb passwd file = /etc/samba/smbpasswd

# The following are needed to allow password changing from Windows to
# update the Linux system password also.
# NOTE: Use these with 'encrypt passwords' and 'smb passwd file' above.
# NOTE2: You do NOT need these to allow workstations to change only
# the encrypted SMB passwords. They allow the Unix password
# to be kept in sync with the SMB password.
; 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*success fully*

# Unix users can map to different SMB User names
; username map = /etc/samba/smbusers

# Using the following line enables you to customise your configuration
# on a per machine basis. The %m gets replaced with the netbios name
# of the machine that is connecting
; include = /etc/samba/smb.conf.%m

# Most people will find that this option gives better performance.
# See speed.txt and the manual pages for details
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

# Configure Samba to use multiple interfaces
# If you have multiple network interfaces then you must list them
# here. See the man page for details.
; interfaces = 192.168.12.2/24 192.168.13.2/24

# Configure remote browse list synchronisation here
# request announcement to, or browse list sync from:
# a specific host or from / to a whole subnet (see below)
; remote browse sync = 192.168.3.25 192.168.5.255
# Cause this host to announce itself to local subnets here
; remote announce = 192.168.1.255 192.168.2.44

# Browser Control Options:
# set local master to no if you don't want Samba to become a master
# browser on your network. Otherwise the normal election rules apply
; local master = no

# OS Level determines the precedence of this server in master browser
# elections. The default value should be reasonable
; os level = 33

# Domain Master specifies Samba to be the Domain Master Browser. This
# allows Samba to collate browse lists between subnets. Don't use this
# if you already have a Windows NT domain controller doing this job
; domain master = yes

# Preferred Master causes Samba to force a local browser election on startup
# and gives it a slightly higher chance of winning the election
; preferred master = yes

# Enable this if you want Samba to be a domain logon server for
# Windows95 workstations.
; domain logons = yes

# if you enable domain logons then you may want a per-machine or
# per user logon script
# run a specific logon batch file per workstation (machine)
; logon script = %m.bat
# run a specific logon batch file per username
; logon script = %U.bat

# Where to store roving profiles (only for Win95 and WinNT)
# %L substitutes for this servers netbios name, %U is username
# You must uncomment the [Profiles] share below
; logon path = \\%L\Profiles\%U

# All NetBIOS names must be resolved to IP Addresses
# 'Name Resolve Order' allows the named resolution mechanism to be specified
# the default order is "host lmhosts wins bcast". "host" means use the unix
# system gethostbyname() function call that will use either /etc/hosts OR
# DNS or NIS depending on the settings of /etc/host.config, /etc/nsswitch.conf
# and the /etc/resolv.conf file. "host" therefore is system configuration
# dependant. This parameter is most often of use to prevent DNS lookups
# in order to resolve NetBIOS names to IP Addresses. Use with care!
# The example below excludes use of name resolution for machines that are NOT
# on the local network segment
# - OR - are not deliberately to be known via lmhosts or via WINS.
; name resolve order = wins lmhosts bcast

# Windows Internet Name Serving Support Section:
# WINS Support - Tells the NMBD component of Samba to enable it's WINS Server
; wins support = yes

# WINS Server - Tells the NMBD components of Samba to be a WINS Client
# Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
; wins server = w.x.y.z

# WINS Proxy - Tells Samba to answer name resolution queries on
# behalf of a non WINS capable client, for this to work there must be
# at least one WINS Server on the network. The default is NO.
; wins proxy = yes

# DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names
# via DNS nslookups. The built-in default for versions 1.9.17 is yes,
# this has been changed in version 1.9.18 to no.
dns proxy = no

# Case Preservation can be handy - system default is _no_
# NOTE: These can be set on a per share basis
; preserve case = no
; short preserve case = no
# Default case is normally upper case for all DOS files
; default case = lower
# Be very careful with case sensitivity - it can break things!
; case sensitive = no

#============================ Share Definitions ==============================
idmap uid = 16777216-33554431
idmap gid = 16777216-33554431
template shell = /bin/false
password server = None
security = SHARE
winbind use default domain = no
[homes]
comment = Home Directories
browseable = no
writeable = yes

# Un-comment the following and create the netlogon directory for Domain Logons
; [netlogon]
; comment = Network Logon Service
; path = /home/netlogon
; guest ok = yes
; writable = no
; share modes = no


# Un-comment the following to provide a specific roving profile share
# the default is to use the user's home directory
;[Profiles]
; path = /home/profiles
; browseable = no
; guest ok = yes


# NOTE: If you have a BSD-style print system there is no need to
# specifically define each individual printer
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
# Set public = yes to allow user 'guest account' to print
printable = yes

# This one is useful for people to share files
;[tmp]
; comment = Temporary file space
; path = /tmp
; read only = no
; public = yes

# A publicly accessible directory, but read only, except for people in
# the "staff" group
;[public]
; comment = Public Stuff
; path = /home/samba
; public = yes
; read only = yes
; write list = @staff

# Other examples.
#
# A private printer, usable only by fred. Spool data will be placed in fred's
# home directory. Note that fred must have write access to the spool directory,
# wherever it is.
;[fredsprn]
; comment = Fred's Printer
; valid users = fred
; path = /homes/fred
; printer = freds_printer
; public = no
; writable = no
; printable = yes

# A private directory, usable only by fred. Note that fred requires write
# access to the directory.
;[fredsdir]
; comment = Fred's Service
; path = /usr/somewhere/private
; valid users = fred
; public = no
; writable = yes
; printable = no

# a service which has a different directory for each machine that connects
# this allows you to tailor configurations to incoming machines. You could
# also use the %u option to tailor it by user name.
# The %m gets replaced with the machine name that is connecting.
;[pchome]
; comment = PC Directories
; path = /usr/pc/%m
; public = no
; writable = yes

# A publicly accessible directory, read/write to all users. Note that all files
# created in the directory by users will be owned by the default user, so
# any user with access can delete any other user's files. Obviously this
# directory must be writable by the default user. Another user could of course
# be specified, in which case all files would be owned by that user instead.
;[public]
; path = /usr/somewhere/else/public
; public = yes
; only guest = yes
; writable = yes
; printable = no

# The following two entries demonstrate how to share a directory so that two
# users can place files there that will be owned by the specific users. In this
# setup, the directory should be writable by both users and should have the
# sticky bit set on it to prevent abuse. Obviously this could be extended to
# as many users as required.
;[myshare]
; comment = Mary's and Fred's stuff
; path = /usr/somewhere/shared
; valid users = mary fred
; public = no
; writable = yes
; printable = no
; create mask = 0765

[myshare]
comment = Mary's and Fred's stuff
path = /boot
public = yes
writable = yes
printable = yes
create mask = 0777

senseipetz
20.07.04, 19:20
Greif mal mit \\ipadresse des linuxserver
Sollte das funktionieren, liegt es nur an der netbios auflösung.. Dann musst du jeweils die hosts dateien etwas füllen..

DeadlyAppearanc
20.07.04, 19:31
\\192.168.2.2
Konnte nicht gefunden werden usw.

Blockt die Linuxfirewall da irgend was? Wo kann ich diese ausschlaten? Was könnte es noch sein?

DeadlyAppearanc
20.07.04, 19:45
Also, war die Firewall...
Nur wenn ich nun auf Den PC klicke, erscheint die Anmeldebox. Hier ist Fest Gast vorgeblendet und bei pw ka, welches das ist.
Wie ändere ich diese Einstellung? Das man Benutzer auswählen kann? Und das pw.

DeadlyAppearanc
20.07.04, 20:56
Ich raffs net. Ich finde nix, wie ich Benutzer, pw usw richtig Einrichte...

DeadlyAppearanc
21.07.04, 00:48
Also immer wenn ich auf den Linuxserver in der Netzwerkumgebung in Windows klicke erscheint ein Anmeldedialog. Das Feld Benutzer ist disabled mit dem Inhalt Linuxserver\Gast. Was ich als pw eingeben muss, weis ich immer noch nicht. Habse gast auch schon als Unix und Samba User angelegt, auch das brachte kein Erfolg.
Hab nun folgendes getestet:


guest account = nobody
.
.
.
[pub]
comment = Test
path = /root/Test
writeable = yes
directory mask = 0777
force directory mode = 0777


Ich will einer auf dem Linuxrechner nen Verzeichnis haben, was ich im Netzwerk frei gegeben habe, wo alle Windowsrechner aus der Arbeitsgruppe zugreifen können. Mehr will ich doch gar nicht ^^.

mabus
21.07.04, 04:11
Hmm..laut deiner smb.conf lautet der Name für Gast nobody. Wenn du diesen Benutzer unter Linux angelegt hast, musst du ihn mittels smbpasswd auch noch mal anlegen und anschl. mit der Option smbpasswd -e nobody aktiveren.

Fly
21.07.04, 08:19
zuerst useradd -d /home/username -s /bin/false username

dann passwd username

dann smbpasswd -a username

und rcsmb reload, dann sollte es gehen

ich würde auf keinen fall den boot partition (myshare) freigeben! erstell einfach eine freigabe in home und setz die berechtigung auf 777. da die smb.conf etwas unübersichtlich ist, einfach ein kopie erstellen und die auskommentierten Zeilen löschen, dann ist auch alles leichter!

DeadlyAppearanc
21.07.04, 10:41
Also, hab nun zuerst useradd -d /home/nobody -s /bin/false nobody eingegeben. Anschließend passwd nobody und smbpasswd -a nobody.

Da er den Befehl rcsmb reload nicht kannte, hab ich ganzen Rechner neu gestartet. Aber weiterhin die gleiche ******e. Nur Benutzer Gast steht drin und pw wird das von nobody nicht angenommen. Ich verzweifle langsam.

Fly
21.07.04, 13:27
mach mal folgends: rcsmb status && rcnmb status und poste das Ergebnis.

oder erstell einfach ein anderer Benutzer und vergiss das mit nobody...

DeadlyAppearanc
21.07.04, 13:38
komme nimmer in linux...
Muss an meine Daten, hab Fixmbr eingegeben. Resultat, Windows geht immer noch nicht, Linux auch nimmer. Werde also die Platte jetzt ausbauen, daten retten, formatieren, neu aufsetzen und heute Abend das ganue wieder versuchen *g*.

senseipetz
21.07.04, 14:26
Kannst du nicht einfach dir 'ne Knoppix live CD nehmen. Gibt es auch umsonst im internet. Davon booten und dann mit einpaar einstellungen per NEtzwerk daten retten? User nobody hat auch paar wichtige aufgaben und linux.. never touch nobody..

Ersten der User "nobody" ist alias für Windows "Jeder". Ausserdem wird beim User nobody per default kein passwort vergeben und auch nicht abgefragt. Wenn er es abfragt, dann nur, weil er nicht berechtigt ist, auf die schare zuzugreifen.. Dein Einstellungen:

[myshare]
comment = Mary's and Fred's stuff
path = /boot
public = yes
writable = yes
printable = yes
create mask = 0777

Du hast es zwar auf public gesetzt, aber ich würde lieber "guest ok = yes" setzen.. dadurch hat nobody 100% zugriff darauf.. Was sein kann, sind die Rechte auf lokaler ebene..

Schau erstmal, ob du auf dem Server draufkommst(also ob du bei erfolg die freigaben siehst.. ). Ab dahin ist es nur noch die Share die einstellungen bedarf. ok.

DeadlyAppearanc
21.07.04, 14:32
kann wieder net neu installieren. Kommt wieder zum Begin was wegen Bios, Boottable usw. Formatiere gerade mal, hoffe das is dann weg...

DeadlyAppearanc
21.07.04, 14:59
Hab nun Formatiert, Partitionen gelöscht, mbr gelöscht und nun kam keine Meldung mehr.
Hab nun die andere Festplatte ausgebaut. Baue ich die Tage im anderen Rechner ein um die Daten zu sichern. Aber kein nerv jetzt 60GB durchzuschauen, was ich davon alles brauche.

senseipetz
21.07.04, 15:02
233 PII in der ecke stehen.. würde zum experimentieren reichen.. Ich würde am Anfang nie Linux(wo man ja was immer testet) und Windows(mit den wichtigen Daten) auf einem Rechner parken.. Kann böse ins auge gehen.. Deswegen habe meine alte 433 Celeron flott gemacht und steht jetzt als Testserver in der Ecke und ich mach alles unter windows per putty und ssh.

DeadlyAppearanc
21.07.04, 15:09
unter windows per putty und ssh.

Was ist das? so was alla VNC? Weil hab nur ein Monitor und will den Linuxrechner dann nur übern Windowsrechner benutzen. Weils tändig Monitor umstöpseln is net so geil ^^.

senseipetz
21.07.04, 15:27
sich per unternet downloaden kann oder auf jeder suse und ich glaube auch redhat CD dabei ist... Google mal nach putty download

Putty ist mehr sowas wie eine X console.. Es wird eine SSH verbindung zum server aufgebaut und sieht es so aus wie linux ohne KDE.. als wenn du am server wärst. Du kannst daran rumschreiben und muss aber nicht permanent mit ihm verbunden sein.. schau dir die Screenshoot an..

Bei einer Suse distri ist das geile, das das yast auch im textmodus verfügbar ist und somit auch per putty geht.. einfacher gehts nicht..

DeadlyAppearanc
21.07.04, 19:11
Ich komme ja nicht mal aufn Rechner. Also sehe die Friegaben nicht. In dem Moment, wo ich auf den Rechner klicke, sehe ich sofort die Gast pw Abfrage. Ob also die Freigabe klappt weis ich nicht. Liegt es vielleicht an was anderem?

senseipetz
21.07.04, 19:36
dann werde ich mir mal die ansehen. Ich denke mal, dass man es zum laufen bringt oder schick sie per mail an petertzvetanov@web.de

DeadlyAppearanc
21.07.04, 23:09
ahhh wie geil.
Hab ja neu isntalliert. Hab erst in Samba irgend nen Verzeichnis über die Oberfläche geaddet. Anschließend in Windows zugriff getestet. Und da war das erste besondere, ich konnte frei nen Benuzer eingeben.
Da es den Benuzer xxx unter Linux schon gab, habe ich diesen einfach bei samba via smbpasswd -a xxx geaddet und vola, ich komme in das geaddete Verzeichnis wie in das Homeverzeichnis von xxx.
Wenn mir nun noch wer das VNC prob im anderen thread löst, habe ich alles erst mal in Linux eingerichtet, was ich brauche. Geilgeil :).

/nachtrag
Hab nun nen neuen Linux Benutzer angelegt, diesem gehört ein Ordner auf der Pladde. Diesen dann bei smb eingerichtet und schwups sehe ich nur noch den share Odner. Also hab das Mit dem Homeverzeichnis umganen und genau das, was ich brauche. Jetzt noch VNC und Linux wäre geil :D.

Fly
22.07.04, 08:17
Zitat von senseipetz
unter windows per putty und ssh.

Ich habe seit längerer Zeit Putty verwendet, jedoch wenn man jetzt bei SuSE ein Online Update (patches installiert) macht, dann verweigert Putty den zugriff drauf. Weisst jemand woran es liegt, die LOGS sagen nichts besonderes: Jul 13 11:18:54 s218750b sshd[1388]: fatal: Read from socket failed: Connection reset by peer

Ich hoffe, dass jemand weiss woran es liegt....

senseipetz
23.07.04, 18:40
Per authentifikation key per file oder dynamisch(also putty soll merken, wenn der Key nicht mehr stimmt und einen neuen anfordern..) Ich habe mein ssh dynamisch, aber die Linux Server untereinander haben es nicht gern, wenn einer der server neu aufgesetzt wird aber die selbe IP Adresse verwendet.. Dann haut mich der Server auch raus.. Dafür gehe ich ihm root verzeichnis ~/.ssh/known_hosts und in der datei sind alle key aufgelistet, die dein linux kannte.. Einfach diesen mal rausknallen.. Oder du hast na dem SSH Server geschraubt und werte geendert... Dann hängt es davon ab, was du da geändert hast.. An den Pam Modulen hast du nix geschraubt oder?? Aber Linux kommt per ssh an deinem Server oder? weil dann ist dein SSH verbogen.. Oder Suse Firewall2.. auf einem Interface wo es nicht unbedingt soll.

hanteltaster
25.07.04, 02:44
; include = /etc/samba/smb.conf.%m

Dieser Parameter bedeutet, dass Samba bei der Anfrage eines Clients z.B.
Rechner compi1 nach einer Samba Konfiguratiosdatei Namens smb.conf.compi1 sucht. Diese ist, wenn ich richtig vermute nicht vorhanden. Lass den Parameter include ganz weg. Ich hatte schon trübe Erfahrungen damit.

Vielleicht hilfts, wobei Samba ja eins Deiner kleineren Probleme zu sein scheint ;-)

Gruss Mike

Fly
26.07.04, 10:34
Per authentifikation key per file oder dynamisch(also putty soll merken, wenn der Key nicht mehr stimmt und einen neuen anfordern..) Ich habe mein ssh dynamisch, aber die Linux Server untereinander haben es nicht gern, wenn einer der server neu aufgesetzt wird aber die selbe IP Adresse verwendet.. Dann haut mich der Server auch raus.. Dafür gehe ich ihm root verzeichnis ~/.ssh/known_hosts und in der datei sind alle key aufgelistet, die dein linux kannte.. Einfach diesen mal rausknallen.. Oder du hast na dem SSH Server geschraubt und werte geendert... Dann hängt es davon ab, was du da geändert hast.. An den Pam Modulen hast du nix geschraubt oder?? Aber Linux kommt per ssh an deinem Server oder? weil dann ist dein SSH verbogen.. Oder Suse Firewall2.. auf einem Interface wo es nicht unbedingt soll.

Nein, ich habe einfach ein Online Update mit Patches gemacht und seitdem kann ich auf den Server Putty nicht mehr anmelden. Unmittelbar vor Update ging’s nachher nicht mehr. Es hat sich sonst nix geändert, nur den Server musste ich rebooten, da ein Patch für Kernel dabei war. Ich sehe im /root/.ssh/know_hosts nur 3 Linux Client, die einen Key besitzen und ich melde mich eigentlich von Windows aus auch an und für den gibt es keinen Key, das anscheinend normal ist...

Bei einem 2 Server funktioniert das mit Putty noch, da werde ich im Moment auf Online Update verzichten, da ich das Problem mit dem Server zuerst lösen möchte. Wo es funktioniert ist im /root/.ssh/know_hosts ebenfalls kein Key für Windows Client. Bei den restlichen Linux Client konnte ich gar nicht mit Putty anmelden, da diese mit MD5 verschlüsselt sind...

Mit Firewall usw. habe ich auch nichts angefangen...

Kann man eigentlich nach Online Update einzelne installierte Patches wieder deinstallieren und wie?

senseipetz
28.07.04, 17:26
irgendwie scheint bei dir der wurm drin sein.. meine beiden suse 8.2 und suse 9.1 sind alle kein problem.. Kannst du mal folgendes probieren.. hatte mal kurzfristig mit putty das problem gehabt, dass ich nicht drauf kam. Habe dann mal bei putty ssh1 + ssh2 eingeschaltet danach ging es wieder.. Bin ansonsten noch auf der suche was es ist.. Vielleicht an der md5 verschlüsselung.. Der schlüssel zerstört sich hierbei(md5) nach der erstellung. ist so eine idee.

Fly
28.07.04, 17:41
Schade, anscheinend hat das online Update mir das System auf MD5 umgestellt. Wenn ich mich nicht irre sind alle Kennwörter im /etc/shadow 13 Zeichen lang und bei einem System wo man mit Putty anmelden kann sind 13 Zeichen und bei alle anderen wo Putty net geht, länger oder weniger.

Wo könnte man noch kontrollieren, welche verschlüsselung noch aktiv ist? Noch kapiere ich nicht, wenn wirklich MD5 aktiv ist wie das durch online Update passieren kann. Soweit ich mich erinnere sind 2 Fenster gekommen die eine mit Kernel Patch und ein andere mit NVIDIA Treiber usw. Hoffentlich kann ich die Verschlüsselung noch rückgängig machen...


:mad:

Fly
29.07.04, 13:04
jetzt habe ich bei 2 Server ein online Update gemacht. Dort funktioniert das anmelden mit Putty ebenfalls nicht mehr. Nach dem Update bekam ich als root mehrere Mails und auch von open ssh, leider verstehe ich englisch nicht ganz, aber da steht, dass auf SSH2 umgestellt wurde. Wenn ich mit Putty SSH 2 anmelde, hatte ich jedoch ein Key erhalten, jedoch verweigert Putty mit der Meldung ==> siehe Anhang. Das ist bei mehrere XP Client so... Weiss jemand woran es liegt?

senseipetz
29.07.04, 23:16
die anwendung selbst bekommt schon auf dem xp client einen knall.. schau mal ob es irgendwo eine andere version gibt.. Mein Putty ist version 0.54. Wenn du putty startest, dann einfach mal unten links unten auf about klicken..