Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
samba, brak dostepu
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish)
View previous topic :: View next topic  
Author Message
aqu
Apprentice
Apprentice


Joined: 12 Nov 2005
Posts: 249
Location: Kalisz, Poland

PostPosted: Sun Oct 15, 2006 11:34 am    Post subject: samba, brak dostepu Reply with quote

witam,
ustawilem sobie sambe i jako tako smiga, tzn. moge tworzyc katalogi i pliki, i tu nie ma problemu.
ale za nic nie moge odczytac w/w elementow. Oczywiscie chodzi mi o dostep z poziomu windowsa.
Czy spotkal sie moze ktos z was z tego typu problemem i jak go rozwiazal.
z gory dziekuje.
_________________
Security is like Ogres and Onions, they have layers.
Linux - Registered user #415939

adopt an unanswered post
Back to top
View user's profile Send private message
gryhild1985
n00b
n00b


Joined: 23 Nov 2005
Posts: 57

PostPosted: Fri Oct 20, 2006 6:50 am    Post subject: Reply with quote

Hej.
Jak wygląda twój config samby, może wkleiłbyś tu go ? :>
Pozdrawiam
Back to top
View user's profile Send private message
aqu
Apprentice
Apprentice


Joined: 12 Nov 2005
Posts: 249
Location: Kalisz, Poland

PostPosted: Fri Oct 20, 2006 1:37 pm    Post subject: Reply with quote

alez prosze... chodz wydaje mi sie ze powinno byc ok
Code:
[global]
   workgroup = THEENDOFTHEWIRE
   server string = Network Gate
   netbios name = Emeralda

   printcap name = cups
   load printers = yes
   printing = cups
   show add printer wizard = no

   log file = /var/log/samba/%m.log
   max log size = 5000
   log level = 5

   guest account = guest
   security = share
   guest ok = yes
   public = yes
   browseable = yes

   hosts allow = 127.0.0.1 10.10.10.
   hosts deny = 0.0.0.0/0
   socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
   interfaces = lo eth0
   bind interfaces only = yes
   name resolve order = host lmhosts
   dont descend = /,/bin,/boot,/dev,/etc,/home,/lib,/mnt,/opt,/proc,/root,/sbin,/sys,/tmp/usr,/var
   vfs object = vscan-clamav
   vscan-clamav: config-file = /etc/samba/vscan-clamav.conf

[public]
   comment = Public files
   browseable = yes
   writable = yes
   public = yes
   create mode = 0600
   directory mode = 0770
   guest ok = yes
   path = /home/samba/public

_________________
Security is like Ogres and Onions, they have layers.
Linux - Registered user #415939

adopt an unanswered post
Back to top
View user's profile Send private message
argasek
Bodhisattva
Bodhisattva


Joined: 06 May 2004
Posts: 1121
Location: Sol [0,0], Poland, Kraków

PostPosted: Fri Oct 20, 2006 1:46 pm    Post subject: Reply with quote

aqu wrote:
alez prosze... chodz wydaje mi sie ze powinno byc ok
create mode = 0600
directory mode = 0770

Nie jestem ekspertem od Samba'y, ale czy takie prawa nie są niewystarczające? Czy próbowałeś np. z poziomem security = user?
_________________
RLU #137109 | http://soundcloud.com/argasek
Back to top
View user's profile Send private message
aqu
Apprentice
Apprentice


Joined: 12 Nov 2005
Posts: 249
Location: Kalisz, Poland

PostPosted: Fri Oct 20, 2006 4:33 pm    Post subject: Reply with quote

nie probowalem z user, bo chcialem miec na share
ale chodzi o to ze tworzyc moge bez problemu, ale nie moge odczytywac z plikow, nawet tych ktore sam utworzylem.
_________________
Security is like Ogres and Onions, they have layers.
Linux - Registered user #415939

adopt an unanswered post
Back to top
View user's profile Send private message
mbar
Veteran
Veteran


Joined: 19 Jan 2005
Posts: 1990
Location: Poland

PostPosted: Fri Oct 20, 2006 6:27 pm    Post subject: Reply with quote

ta, create mode jest za słabe, daj więcej szóstek
Back to top
View user's profile Send private message
aqu
Apprentice
Apprentice


Joined: 12 Nov 2005
Posts: 249
Location: Kalisz, Poland

PostPosted: Fri Oct 20, 2006 8:27 pm    Post subject: Reply with quote

niestety nic mi to nie dalo.
jak ustawilem na 0660 lub 0666 to moge zapisywac tylko do pustych plikow
_________________
Security is like Ogres and Onions, they have layers.
Linux - Registered user #415939

adopt an unanswered post
Back to top
View user's profile Send private message
mbar
Veteran
Veteran


Joined: 19 Jan 2005
Posts: 1990
Location: Poland

PostPosted: Sat Oct 21, 2006 6:27 am    Post subject: Reply with quote

U mnie jest tak i wszystko działa:
Code:
[global]
workgroup = SIATKA
server string = Gateway %v
log file = /var/log/samba/log.%m
max log size = 256
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=8192 SO_SNDBUF=8192
getwd cache = yes
aio read size = 65536
aio write size = 65536
preferred master = yes
interfaces = lo eth0 eth1 ath0
#ra0 ath0
bind interfaces only = yes
hosts allow = 127.0.0.1 10.0.0.0/24 10.0.1.0/24 10.0.2.0/24
hosts deny = 0.0.0.0/0
security = share
guest account = nobody
guest ok = yes
printcap name = cups
printing = cups

client lanman auth = yes
client use spnego = no
client signing = disabled

[printers]
comment = All printers
path = /var/spool/samba
browseable = yes
guest ok = yes
writable = no
printable = yes
public = yes
printer name = SamsungML-1520

[public]
browseable = yes
writable = yes
public = yes
create mode = 0766
guest ok = yes
path = /home/samba/public

[raid]
browseable = no
writable = yes
public = no
create mode = 0766
guest ok = yes
path = /home/raid

[mp3]
browseable = yes
writable = no
public = yes
#create mode = 0766
guest ok = yes
path = /home/raid/mp3

[video]
browseable = yes
writable = no
public = yes
#create mode = 0766
guest ok = yes
path = /home/raid/video
Back to top
View user's profile Send private message
demiurge
n00b
n00b


Joined: 20 Oct 2004
Posts: 8

PostPosted: Sat Oct 21, 2006 8:03 am    Post subject: Reply with quote

Witam,
sprawdz do kogo należy i jakie są ustawienia dla katalogu:

Code:
ls -l /home/samba/public

Być może gość nie ma uprawnień do tego aby czytać pliki.
Konto w Sambie guest jest translatowane na konto fizyczne w linuxie nobody. Być może właśnie ten katalog nie ma uprawnień dla tego konta.
Proponuje sprawdzić zmieniając użytkownika konta guest

Code:
guest account [konto_w_passwd]


bądz też zmieniając uprawnienia samego katalogu. Proponował bym uprawnienia dać dla wszystkich jednakowe do zapisu odczytu czy też możliwości wejścia do katalogów:

Code:
chmod 777 /home/samba/public


Polecam również link http://us3.samba.org/samba/docs/using_samba/ch09.html gdzie dokładnie jest opisana sprawa z kontami i dostępem do katalogów w Sambie.

Pozdrawiam serdecznie
demiurge
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum