Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problemi di condivisione con samba.
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

Goto page Previous  1, 2, 3  Next  
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
IlGab
Guru
Guru


Joined: 26 Nov 2004
Posts: 486

PostPosted: Mon Feb 07, 2005 4:00 pm    Post subject: Reply with quote

Raffo wrote:
e nn vedo perchè per aprire un tool dovrei andare a pescare in etc...


Semplicemente perchè è l' unico modo (almeno che io conosco) per usare swat è avere xinetd (o il vecchio inetd) che gestiscono la chiamata alla porta 901.

Quote:
cmq io preferirei sempre settarlo a mano ^_^


Pienamente concorde !!! :D

Cmq ho perso un attimo il punto della situazione e nn so più a che punto del problema si è giunti :?
Ti posto di seguito una configurazione veloce fatta e che mi funziona (non differisce quasi da nulla dalla tua)
Code:


/etc/samba/smb.conf
[global]
workgroup = workgroup
server string = Gentoo3
log file = /var/log/samba/log.%m
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
interfaces = lo eth0
bind interfaces only = yes
hosts allow = 127.0.0.1 rete/subnet
security = user
browseable = yes
writable = no

[pippo]
comment = Pippo share
browseable = yes
writable = yes
public = yes
create mode = 0700
guest ok = yes
path = /home/pippo/share
guest ok = yes


Poi un bel
Code:
 useradd pippo

Creazione della home e della share
Code:
 mkdir -p /home/pippo/share

cambio il proprietario della dir
Code:
 chown -R pippo /home/share/pippo

Aggiungo utente per samba
Code:
 smbpasswd -a pippo


Dovrebbe essere abbastanza.
Chiedo scusa se ho scritto roba di troppo o conclusioni a cui eravate già giunti. :oops:
Back to top
View user's profile Send private message
Raffo
Veteran
Veteran


Joined: 23 Apr 2004
Posts: 1019
Location: Berlin

PostPosted: Mon Feb 07, 2005 4:11 pm    Post subject: Reply with quote

il problema è che io voglio far accedere l'utente gabriele a /home/raffo/sharing, quindi ad una cartella di una home nn sua. e nn capisco come fare... windows mi riporta l'errore postato prima...
Back to top
View user's profile Send private message
IlGab
Guru
Guru


Joined: 26 Nov 2004
Posts: 486

PostPosted: Mon Feb 07, 2005 4:26 pm    Post subject: Reply with quote

Ok, aggiungi gabriele come unix user e come samba user e poi modifichi la share in smb.conf
Code:

[pippo]
comment = Pippo share
browseable = yes
writable = yes
create mode = 0770
path = /home/pippo/share
valid users = gabriele pippo <------ QUI

gabriele e pippo devono appartenere allo stesso gruppo unix che deve averee diritti di scrittura sulla directory.


Un piccolo edit o la configurazione permetteva l' accesso un po' a tutti :roll:
Back to top
View user's profile Send private message
Raffo
Veteran
Veteran


Joined: 23 Apr 2004
Posts: 1019
Location: Berlin

PostPosted: Mon Feb 07, 2005 5:03 pm    Post subject: Reply with quote

nn cambia nulla, mi continua a dire
Code:
"\\GANONDORF\public" impossibile trovare il nome di condivisione.

:(
Back to top
View user's profile Send private message
xchris
Advocate
Advocate


Joined: 10 Jul 2003
Posts: 2824

PostPosted: Mon Feb 07, 2005 5:07 pm    Post subject: Reply with quote

scusa se mi reinserisco dopo un po'...
conviene che posti il tuo smb.conf definitivo.

Il tuo share si chiama pippo o public?
e se metti solo \\NOMESERVER ?

ciao
_________________
while True:Gentoo()
Back to top
View user's profile Send private message
Raffo
Veteran
Veteran


Joined: 23 Apr 2004
Posts: 1019
Location: Berlin

PostPosted: Mon Feb 07, 2005 5:13 pm    Post subject: Reply with quote

faccio un post definitivo di spiegazione della situazione....

smb.conf:
Code:
[global]
# Sostituire MYWORKGROUPNAME con il proprio workgroup/domain
workgroup = workgroup
# Questo serve giusto a far capire che non è Windows..
# %v stampa la versione di Samba
server string = Samba Server %v
#encrypt passwords = yes
# Se si usa cups, bisogna inserirlo qui
#printcap name = cups
#printing = cups
#load printers = yes
# Settare un file di log di dimensioni massime di 50K.
log file = /var/log/samba/log.%m
max log size = 50
# Alcune opzioni per le interfaccie...
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
# Questo che segue è il binding del Server Samba alla propria
# rete locale
# Per esempio, se eth0 è la propria scheda di rete:
interfaces = lo eth0
bind interfaces only = yes
# Ora si specifica a chi è permesso accedere alla rete,
# bisogna essere cauti in quanto non si usano password...
hosts allow = 127.0.0.1 192.168.0.1/24
hosts deny = 0.0.0.0/0
# Altre opzioni sono: USER, DOMAIN, ADS e SERVER
# Quella di default è USER.
security = share
# Nessuna password, quindi si usano account Guest
guest account = smbguest
# Ora viene implementato il virus scanner.
# NOTA: ponendo questo nella sezione [Global], si abilita
# lo scan di tutte le condivisioni, si può spostare quanto segue
# in una specifica sezione in modo da attivare lo scan solo su di essa.
browseable = yes

[public]
comment = Public Files
guest ok = yes
create mask = 0766
path = /home/raffo/sharing/
case sensitive = no
msdfs proxy = no
valid users = gabriele

sul mio pc ho creato 2 utenti oltre a root e a raffo. sono gabriele e smbguest. devo riuscire ad accedere ad una cartella che si trova nella home di raffo dal pc windows.

ditemi se devo aggiungere qualcosa :D
Back to top
View user's profile Send private message
xchris
Advocate
Advocate


Joined: 10 Jul 2003
Posts: 2824

PostPosted: Mon Feb 07, 2005 5:19 pm    Post subject: Reply with quote

io non userei security = share... cmq.

ti consiglio di eliminare le restrizioni sugli host per iniziare.
(quando poi funzioni le ripristini....e cmq e' corretto scrivere 192.168.0.0/24)

ciao

EDIT:scusa la domanda impertinente.....fai un /etc/init.d/samba reload (o restart) ad ogni modifica vero?
_________________
while True:Gentoo()
Back to top
View user's profile Send private message
Raffo
Veteran
Veteran


Joined: 23 Apr 2004
Posts: 1019
Location: Berlin

PostPosted: Mon Feb 07, 2005 5:23 pm    Post subject: Reply with quote

security = share l'ho messo solo perchè mi era stato consigliato per farlo funzionare.
ovviamente faccio /etc/inti.d/samba restart ad ogni modifica, nn sono mica fesso :lol:
Back to top
View user's profile Send private message
Raffo
Veteran
Veteran


Joined: 23 Apr 2004
Posts: 1019
Location: Berlin

PostPosted: Mon Feb 07, 2005 5:25 pm    Post subject: Reply with quote

niente, ancora lo stesso errore....

"\\GANONDORF\public" impossibile trovare il nome di condivisione. verificare che sia corretto.
Back to top
View user's profile Send private message
Sasdo
Guru
Guru


Joined: 18 Feb 2004
Posts: 542
Location: 44.476474,11.644446 circa.

PostPosted: Mon Feb 07, 2005 5:50 pm    Post subject: Reply with quote

Code:

[global]
workgroup = rete-casa
server string =  Samba Server on Caronte

printcap name = cups
printing = cups
load printers = yes

log file = /var/log/samba/log.%m
max log size = 50

interfaces = lo eth0 eth1
bind interfaces only = yes

hosts allow = 127.0.0.1 192.168.0.0/24
hosts deny = 0.0.0.0/0

security = share

guest account = smbuser
guest ok = yes
guest only = yes

[public]
comment = Public Files
browseable = yes
public = yes
create mode = 0766
guest ok = yes
writable = yes
path = /home/smbuser/

[sasdo]
comment = prova
browsable = yes
public = yes
guest ok = yes
writable = yes
path = /home/sasdo


quest è il mio smb.conf e funziona perfettamente

per i paranoici della sicurezza non sarà il top ma fa quello che deve fare...

ovviamente l'account smbuser è stato aggiunto a samba e al sistema...
_________________
LinuxUser #362518
--
Ochei lo ammetto: il mio cervello lo tengo in frigo.
Back to top
View user's profile Send private message
xchris
Advocate
Advocate


Joined: 10 Jul 2003
Posts: 2824

PostPosted: Mon Feb 07, 2005 6:00 pm    Post subject: Reply with quote

Raffo non volevo darti del fesso...
e' che e' talmente assurdo....


consiglio di commentare host allow e host deny.
poi prova con

\\INDIRIZZO_IP\public

si sa mai che e' colpa di quel cesso di win :)
_________________
while True:Gentoo()
Back to top
View user's profile Send private message
Raffo
Veteran
Veteran


Joined: 23 Apr 2004
Posts: 1019
Location: Berlin

PostPosted: Mon Feb 07, 2005 6:05 pm    Post subject: Reply with quote

niente da fare, sono veramente senza parole, le ho provate tutte...
DEVO aver sbagliato qualcosa......
Back to top
View user's profile Send private message
IlGab
Guru
Guru


Joined: 26 Nov 2004
Posts: 486

PostPosted: Tue Feb 08, 2005 7:59 am    Post subject: Reply with quote

Passiamo a vedere un log.
puoi fare un bel
Code:
tail /var/log/samba/log.ip.del.client

oppure
Code:
 tail /var/log/sabma/log.nomemacchina

Così magari capiamo perchè non ti fa vedere la share
Back to top
View user's profile Send private message
Raffo
Veteran
Veteran


Joined: 23 Apr 2004
Posts: 1019
Location: Berlin

PostPosted: Tue Feb 08, 2005 10:12 am    Post subject: Reply with quote

vado coi log allora :D

tail log.gabriele:
Code:
[2005/02/07 19:08:14, 0] smbd/password.c:authorise_login(573)
  authorise_login: rejected invalid user smbguest
[2005/02/07 19:08:14, 0] smbd/password.c:authorise_login(573)
  authorise_login: rejected invalid user smbguest
[2005/02/07 19:08:14, 0] smbd/password.c:authorise_login(573)
  authorise_login: rejected invalid user smbguest
[2005/02/07 19:08:14, 0] smbd/password.c:authorise_login(573)
  authorise_login: rejected invalid user smbguest
[2005/02/07 19:08:14, 0] smbd/password.c:authorise_login(573)
  authorise_login: rejected invalid user smbguest


tail log.ganondorf:
Code:
[2005/02/07 11:53:09, 0] smbd/service.c:make_connection_snum(620)
  '/home/raffo/sharing' does not exist or is not a directory, when connecting to [public]
[2005/02/07 11:53:28, 0] smbd/service.c:make_connection_snum(620)
  '/home/raffo/sharing' does not exist or is not a directory, when connecting to [public]
[2005/02/07 11:53:39, 0] smbd/service.c:make_connection_snum(620)
  '/home/raffo/sharing' does not exist or is not a directory, when connecting to [public]
[2005/02/07 12:11:42, 0] smbd/service.c:make_connection_snum(620)
  '/home/raffo/sharing' does not exist or is not a directory, when connecting to [gabriele]
[2005/02/07 12:11:43, 0] smbd/service.c:make_connection_snum(620)
  '/home/raffo/sharing' does not exist or is not a directory, when connecting to [gabriele]


hmhmmh :?
Back to top
View user's profile Send private message
IlGab
Guru
Guru


Joined: 26 Nov 2004
Posts: 486

PostPosted: Tue Feb 08, 2005 10:26 am    Post subject: Reply with quote

Raffo wrote:
vado coi log allora :D

tail log.ganondorf:
Code:
[2005/02/07 11:53:09, 0] smbd/service.c:make_connection_snum(620)
  '/home/raffo/sharing' does not exist or is not a directory, when connecting to [public]
[2005/02/07 11:53:28, 0] smbd/service.c:make_connection_snum(620)
  '/home/raffo/sharing' does not exist or is not a directory, when connecting to [public]
[2005/02/07 11:53:39, 0] smbd/service.c:make_connection_snum(620)
  '/home/raffo/sharing' does not exist or is not a directory, when connecting to [public]
[2005/02/07 12:11:42, 0] smbd/service.c:make_connection_snum(620)
  '/home/raffo/sharing' does not exist or is not a directory, when connecting to [gabriele]
[2005/02/07 12:11:43, 0] smbd/service.c:make_connection_snum(620)
  '/home/raffo/sharing' does not exist or is not a directory, when connecting to [gabriele]


hmhmmh :?


Scusa... ma esiste la dir vero :oops: magari hai sbagliato a digitare mentre la creavi...
Back to top
View user's profile Send private message
Raffo
Veteran
Veteran


Joined: 23 Apr 2004
Posts: 1019
Location: Berlin

PostPosted: Tue Feb 08, 2005 11:35 am    Post subject: Reply with quote

ma certo che esiste :(
solo che nn è di gabriele...
Back to top
View user's profile Send private message
X-Drum
Advocate
Advocate


Joined: 24 Aug 2003
Posts: 2517
Location: ('Modica','Trieste','Ferrara') Italy

PostPosted: Tue Feb 08, 2005 11:59 am    Post subject: Reply with quote

smbclient -L lanciato dalla tua macchina sulla tua macchina cosa ritorna?
hai provato a montare dalla tua macchina in un punto di montaggio
qualsiasi la directory che intendi esportare?
provaci e posta il risultato, in tal modo almeno saprai se stai creando lo
share in modo corretto...
_________________
"...There are two sort of lies, lies and benchmarks..."
Back to top
View user's profile Send private message
Raffo
Veteran
Veteran


Joined: 23 Apr 2004
Posts: 1019
Location: Berlin

PostPosted: Tue Feb 08, 2005 12:00 pm    Post subject: Reply with quote

Code:
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.0.10]

        Sharename       Type      Comment
        ---------       ----      -------
        public          Disk      Public Files
        IPC$            IPC       IPC Service (Samba Server 3.0.10)
        ADMIN$          IPC       IPC Service (Samba Server 3.0.10)
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.0.10]

        Server               Comment
        ---------            -------
        GABRIELE             gabriele
        GANONDORF            Samba Server 3.0.10

        Workgroup            Master
        ---------            -------
        WORKGROUP            GABRIELE

:o
Back to top
View user's profile Send private message
X-Drum
Advocate
Advocate


Joined: 24 Aug 2003
Posts: 2517
Location: ('Modica','Trieste','Ferrara') Italy

PostPosted: Tue Feb 08, 2005 12:04 pm    Post subject: Reply with quote

bene, ma adesso x sicurezza...
X-Drum wrote:
[...]
hai provato a montare dalla tua macchina in un punto di montaggio
qualsiasi la directory che intendi esportare?
provaci e posta il risultato,[...]

_________________
"...There are two sort of lies, lies and benchmarks..."
Back to top
View user's profile Send private message
Raffo
Veteran
Veteran


Joined: 23 Apr 2004
Posts: 1019
Location: Berlin

PostPosted: Tue Feb 08, 2005 12:05 pm    Post subject: Reply with quote

perdonami, ma nn capisco cosa intendi...
Back to top
View user's profile Send private message
X-Drum
Advocate
Advocate


Joined: 24 Aug 2003
Posts: 2517
Location: ('Modica','Trieste','Ferrara') Italy

PostPosted: Tue Feb 08, 2005 12:19 pm    Post subject: Reply with quote

Code:
mount -t smbfs //IpMacchina/Nomeshare/ /mnt/UnoACaso

_________________
"...There are two sort of lies, lies and benchmarks..."
Back to top
View user's profile Send private message
Raffo
Veteran
Veteran


Joined: 23 Apr 2004
Posts: 1019
Location: Berlin

PostPosted: Tue Feb 08, 2005 12:29 pm    Post subject: Reply with quote

Code:
 mount -t smbfs //ganondorf/public/ /mnt/public
Password:                       
14189: tree connect failed: ERRDOS - ERRnosuchshare (You specified an invalid share name)
SMB connection failed

:?
Back to top
View user's profile Send private message
IlGab
Guru
Guru


Joined: 26 Nov 2004
Posts: 486

PostPosted: Tue Feb 08, 2005 1:52 pm    Post subject: Reply with quote

Sta cosa sta diventando veramente criptica nonchè incredibbbile...
Hai provato a sharare qualche altra dir ad esempio la /tmp tanto per provarne una dove possono accedere tutti (anche se per me non è un problema di permessi lo sharare o meno la dir)
Back to top
View user's profile Send private message
X-Drum
Advocate
Advocate


Joined: 24 Aug 2003
Posts: 2517
Location: ('Modica','Trieste','Ferrara') Italy

PostPosted: Tue Feb 08, 2005 2:27 pm    Post subject: Reply with quote

secondo me dovrebbe abbattere la conf che usa attulamente
e crearne una nuova per mezzo di swat.

Per quanto riguarda la didattica nessuno gli vieta di analizzare il file
smb.conf dopo che è stato generato da swat, se raffo vuole continuare il
quella direzione pero' (cioè a non utlizzare swat e brancolare nel buio riciclando altre conf) dubito riuscirà a risolvere il problema...

dai raffo nn ti abbattere non è impossibile prova swat dai :P
_________________
"...There are two sort of lies, lies and benchmarks..."
Back to top
View user's profile Send private message
Raffo
Veteran
Veteran


Joined: 23 Apr 2004
Posts: 1019
Location: Berlin

PostPosted: Tue Feb 08, 2005 2:41 pm    Post subject: Reply with quote

allora vado di "emerge xinetd" e poi mi setto swat?? :(
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Goto page Previous  1, 2, 3  Next
Page 2 of 3

 
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