Samba Freigabe kein zugriff

kalleberlin

Lieutenant
Registriert
Feb. 2005
Beiträge
853
hi liebe leute

ich will in meinem windows xp rechner eine samba freigabe öffen. nur klappt das nich weil xp immer ein passwort für den user gast haben will...den user gast hab ich aber gar nicht angelegt und ändern kann ich den benutzer der sich "einloggen" will auch nicht da es grau unterlegt ist...ich denke aber mal das es an meiner konfigurationliegt. hier mal mein smb.conf
; /etc/smb.conf
;
; Copyright (c) 1999 SuSE GmbH Nuernberg, Germany.
;
[global]
workgroup = berger
guest account = nobody
keep alive = 30
os level = 2
kernel oplocks = false
security = 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
; encrypt passwords = yes

printing = bsd
printcap name = /etc/printcap
load printers = yes

socket options = TCP_NODELAY

map to guest = Bad User

; Uncomment this, if you want to integrate your server
; into an existing net e.g. with NT-WS to prevent nettraffic
; local master = no

; Please uncomment the following entry and replace the
; ip number and netmask with the correct numbers for
; your ethernet interface.
; interfaces = 192.168.1.1/255.255.255.0

; If you want Samba to act as a wins server, please set
; 'wins support = yes'
wins support = no

; If you want Samba to use an existing wins server,
; please uncomment the following line and replace
; the dummy with the wins server's ip number.
; wins server = 192.168.1.1

; Do you wan't samba to act as a logon-server for
; your windows 95/98 clients, so uncomment the
; following:
; logon script =%U.bat
; domain logons = yes
; domain master = yes
; [netlogon]
; path = /netlogon


[homes]
comment = Heimatverzeichnis
browseable = no
read only = no
create mode = 0750

[webserver]
comment = Webserver
browseable = yes
writeable = yes
public = yes
path = /etc/httpd/htdocs
guest ok = yes
; The following share gives all users access to the Server's CD drive,
; assuming it is mounted under /cd. To enable this share, please remove
; the semicolons before the lines
;
; [cdrom]
; comment = Linux CD-ROM
; path = /cdrom
; read only = yes
; locking = no

[printers]
comment = All Printers
browseable = no
printable = yes
public = no
read only = yes
create mode = 0700
directory = /tmp

hoffentlich könnt ihr mir helfen :-D

gruß kalle
 
Hallo,
encrypt passwords = yes auskommentieren.
Unix User mit gleichem Namen wie XP <UserName> anlegen (Passwort ist hierbei egal).
mit smbpasswd -a <UserName> Sambaaccount anlegen.
Als Passwort für den Samba User das gleiche wie für den <UserName> unter XP eingeben.
Voila, jetzt sollte es funktionieren.

mfg.
 
hab jetzt hinbekommen auf meinem homelaufwerk zuzugreifen...aber auf die webserver freigabe hab ich nur lese zugriff...
 
so ich antworte mir mal jetzt selbst :-D!
dann kann der nächste was damit anfangen.
nur ein verzeichniss über samba freigeben reicht nicht. zusätlich zur verzeichniss freigabe, user einreichtung (UNIX sowie SAMBA selbst), muss der ordner auch für user xy lesbar sein. sonst geht da gar nix...
hier nochmal meine aktuelle smb.conf (/etc/samba/smb.conf)
# smb.conf is the main Samba configuration file. You find a full commented
# version at /usr/share/doc/packages/samba/examples/smb.conf.SuSE
# Date: 2003-09-23
[global]
workgroup = berger
os level = 2
time server = Yes
unix extensions = Yes
encrypt passwords = Yes
map to guest = Bad User
printing = CUPS
printcap name = CUPS
socket options = SO_KEEPALIVE IPTOS_LOWDELAY TCP_NODELAY
wins support = No
veto files = /*.eml/*.nws/riched20.dll/*.{*}/
security = user
[homes]
comment = Home Directories
valid users = %S
browseable = No
read only = No
create mask = 0640
directory mask = 0750
[printers]
comment = All Printers
path = /var/tmp
printable = Yes
create mask = 0600
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @ntadmin root
force group = ntadmin
create mask = 0664
directory mask = 0775
[downloads]
comment = downloads
path = /downloads
browseable = yes
read only = no
writable = yes
[webserverroot]
comment = Das "Index" Verzeichniss vom Apache
path = /srv/www/htdocs
browsable = yes
read only = no
valid users = kalle,kalberg
wie man sieht hat das verzeichniss webserverroot den pfad /srv/www/htdocs.
um jetzt zum beispiel über winxp das verzeichniss ereichen zu können muss man noch den windoof user die berrechtigung erteilen auf den pfad zugreifen zu dürfen.das geht wie folgt:
chown kalle /srv/www/htdocs
für den user "kalle"
chgrp users /srv/www/htdocs
für die gruppe "users".

gruß kalle
 
Zurück
Oben