Skocz do zawartości

Problem Z Samba


holonmic

Rekomendowane odpowiedzi

Witam!!

 

Mam duży problem z Sambą. Po udostepnieniu katalogu pod sambą jest on widoczny pod windowsem, można odczytać, ale nie można w tym katalogu nic zapisywać.

 

Dostaje taki komunikat:

 

avc :denied {write} for pid=3582 comm="smbd"

 

smb.conf wygląda następująco

 

[firma]

 

path = /firma

read only = no

create mode = 777

directory mode = 777

 

Katalog ma uprawnienia 777

Odnośnik do komentarza
Udostępnij na innych stronach

Hmm IMO to

 

read only = no

 

wystarcza. Te parametry są równoważne.

 

read only, writable

 

The options read only and writable (also called writeable or write ok ) are really two ways of saying the same thing, but they are approached from opposite ends. For example, you can set either of the following options in the [global] section or in an individual share:

 

read only = yes

writable = no

 

If either option is set as shown, data can be read from a share, but cannot be written to it. You might think you would need this option only if you were creating a read-only share. However, note that this read-only behavior is the default action for shares; if you want to be able to write data to a share, you must explicitly specify one of the following options in the configuration file for each share:

 

read only = no

writable = yes

 

If you specify more than one occurrence of either option, Samba will adhere to the last value it encounters for the share.

 

Tutaj -> http://us1.samba.org/samba/docs/using_samba/ch06.html

Odnośnik do komentarza
Udostępnij na innych stronach

Te parametry są równoważne.
Zgadza się, ale to chyba wg dokumentacji. Kiedyś się też z takim problemem mocowałem i dopiero wyrzucenie read only=no i dodanie writable=yes pomogło.

Oczywiście to mógł być jakiś dziwny przypadek, bo z samby nie korzystam profesjonalnie, a na domowy użytek chciałem, żeby po prostu działało :)

Odnośnik do komentarza
Udostępnij na innych stronach

Przed sekcją [firma] utwórz sekcję [global] i daj tam:

 

[global]
workgroup = WORKGROUP
security = share
browseable = yes
hostname lookups = no
hosts allow = 169.254.0.
interfaces = 169.254.0.5/24

 

Oczywiście wstaw tam Twoje wartości... Grupa robocza, adresy sieciowe.

Odnośnik do komentarza
Udostępnij na innych stronach

Przed sekcją [firma] utwórz sekcję [global] i daj tam:

 

[global]
workgroup = WORKGROUP
security = share
browseable = yes
hostname lookups = no
hosts allow = 169.254.0.
interfaces = 169.254.0.5/24

 

Oczywiście wstaw tam Twoje wartości... Grupa robocza, adresy sieciowe.

 

 

Wszystko w opcji global jest juz skonfigurowane..

Niestety nie działa

Odnośnik do komentarza
Udostępnij na innych stronach

  • 9 months later...

Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto

Jedynie zarejestrowani użytkownicy mogą komentować zawartość tej strony.

Zarejestruj nowe konto

Załóż nowe konto. To bardzo proste!

Zarejestruj się

Zaloguj się

Posiadasz już konto? Zaloguj się poniżej.

Zaloguj się
×
×
  • Dodaj nową pozycję...