Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[RISOLTO]Problema assurdo con SAMBA da un momento all'altro
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Forum di discussione italiano
View previous topic :: View next topic  
Author Message
fbcyborg
Advocate
Advocate


Joined: 16 Oct 2005
Posts: 3056
Location: ROMA

PostPosted: Sun Jul 23, 2006 8:02 pm    Post subject: [RISOLTO]Problema assurdo con SAMBA da un momento all'altro Reply with quote

Da un momento all'altro Samba non funziona più. Da sempre condivido la stampante in rete ed una cartella accessibile a tutti gli utenti.
Non so perchè, ma adesso se un pc winsozz accede alla mia stampante o vuole stampare non ci riesce, gli dice: "Accesso negato, impossibile connettersi".
Utilizzo CUPS, ma per la condivisione della stampante uso samba.
Ecco il mio /etc/samba/smb.conf:
Code:
[global]
   workgroup = Casa
   server string = Samba Server %v
   printcap name = cups
   load printers = yes
   printing = cups
   printer admin = @adm
   log file = /var/log/samba/log.%m
   max log size = 50
  map to guest = bad user
    security = share
  encrypt passwords = yes
  smb passwd file = /etc/samba/private/smbpasswd
   socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
   dns proxy = no
[homes]
   comment = Home Directories
   browseable = no
   writable = yes
[printers]
   comment = All Printers
   path = /var/spool/samba
   browseable = no
   guest ok = no
   writable = no
   printable = yes
   public = yes
   create mode = 0700
   printer name = hpdeskjet690c
   print command = lpr-cups -P %p -o raw %s -r   # using client side printer drivers.
[print$]
    comment = Printer Drivers
    path = /etc/samba/printer # questo path mantiene la struttura dei driver
    guest ok = yes
    browseable = yes
    read only = yes
[condivisa]
    path = /home/fbcyborg/condivisa
    browseable = yes
    public = yes
    only guest = yes
    writable = yes


Chiaramente ho anche riletto la guida ufficiale, ma non mi è sembrato che ci siano degli errori.

Ecco il mio /etc/cups/cupsd.conf:
Code:
LogLevel info
SystemGroup lpadmin
Listen localhost:631
Listen /var/run/cups/cups.sock
Browsing On
BrowseOrder allow,deny
BrowseAllow @LOCAL
DefaultAuthType Basic
<Location />
  Order allow,deny
  Allow localhost
</Location>
<Location /admin>
  Encryption Required
  Order allow,deny
  Allow localhost
</Location>
<Location /admin/conf>
  AuthType Basic
  Require user @SYSTEM
  Order allow,deny
  Allow localhost
</Location>
<Policy default>
  <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job>
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>
  <Limit Pause-Printer Resume-Printer Set-Printer-Attributes Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After CUPS-Add-Printer CUPS-Delete-Printer CUPS-Add-Class CUPS-Delete-Class CUPS-Accept-Jobs CUPS-Reject-Jobs CUPS-Set-Default>
    AuthType Basic
    Require user @SYSTEM
    Order deny,allow
  </Limit>
  <Limit Cancel-Job CUPS-Authenticate-Job>
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>
  <Limit All>
    Order deny,allow
  </Limit>
</Policy>


Quale sarà il problema? :(
_________________
[HOWTO] Come criptare la /home usando cryptsetup e luks
[HOWTO] Abilitare il supporto al dom0 XEN su kernel 3.X
Help answer the unanswered


Last edited by fbcyborg on Fri Sep 08, 2006 10:06 am; edited 1 time in total
Back to top
View user's profile Send private message
comio
Advocate
Advocate


Joined: 03 Jul 2003
Posts: 2191
Location: Taranto

PostPosted: Sun Jul 23, 2006 9:23 pm    Post subject: Reply with quote

che versione? tieni presente che nell'ultima (3.0.23) è bacato il sistema di autenticazione. Torna alla 3.0.22-r3 (oppure devi modificare "passdb backend" mettendo solo una scelta).

ciao
_________________
RTFM!!!!

e

http://www.comio.it
:)
Back to top
View user's profile Send private message
fbcyborg
Advocate
Advocate


Joined: 16 Oct 2005
Posts: 3056
Location: ROMA

PostPosted: Sun Jul 23, 2006 11:09 pm    Post subject: Reply with quote

Stranamente mi sono trovato sul sistema una versione M~(probabilmente l'hanno marcata come tale dopo che io l'ho installata), anzi, ho appena visto che è uscita una nuova versione da pochissimo: 3.023a.
In ogni caso appena me ne sono accorto sono tornato a quella stabile (se potesse essere utile come informazione ti dico che sono su amd64) e cioè alla 3.0.22-r3 ma non ho ottenuto alcun risultato positivo, nulla è cambiato.
Sto diventando furioso! :) in questi giorni me ne capitano di tutti i colori su questa gentoo!!!!
_________________
[HOWTO] Come criptare la /home usando cryptsetup e luks
[HOWTO] Abilitare il supporto al dom0 XEN su kernel 3.X
Help answer the unanswered
Back to top
View user's profile Send private message
fbcyborg
Advocate
Advocate


Joined: 16 Oct 2005
Posts: 3056
Location: ROMA

PostPosted: Fri Jul 28, 2006 4:48 pm    Post subject: Reply with quote

UP!! (chiedo scusa, ma è importante)
_________________
[HOWTO] Come criptare la /home usando cryptsetup e luks
[HOWTO] Abilitare il supporto al dom0 XEN su kernel 3.X
Help answer the unanswered
Back to top
View user's profile Send private message
Scen
Retired Dev
Retired Dev


Joined: 29 Jul 2003
Posts: 2470
Location: Padova, Italy

PostPosted: Fri Jul 28, 2006 5:12 pm    Post subject: Reply with quote

"da un momento all'altro" nel mondo dell'informatica è quasi impossibile, sicuramente è stato modificato qualcosa che conseguentemente crea il problema.

nel file di configurazione di cups vedo che hai
Code:

[...]
Listen localhost:631
[...]

cambialo in
Code:

[...]
Port 631
[...]

riavvia cups e samba, e riprova!
_________________
I was born in a deep forest/I wish I could live here all my life/I am made from stones and roots/My home, these woods and roads
All my life I loved this sound/Of the woods all around/Eagles flies where the winds blows free
Journey is my destiny
Back to top
View user's profile Send private message
fbcyborg
Advocate
Advocate


Joined: 16 Oct 2005
Posts: 3056
Location: ROMA

PostPosted: Fri Jul 28, 2006 5:36 pm    Post subject: Reply with quote

No! :D non è cambiato nulla purtroppo, continua a non stampare da winsozz :x
_________________
[HOWTO] Come criptare la /home usando cryptsetup e luks
[HOWTO] Abilitare il supporto al dom0 XEN su kernel 3.X
Help answer the unanswered
Back to top
View user's profile Send private message
Scen
Retired Dev
Retired Dev


Joined: 29 Jul 2003
Posts: 2470
Location: Padova, Italy

PostPosted: Fri Jul 28, 2006 5:55 pm    Post subject: Reply with quote

Azz! :P

Aumenta il livello di log di samba, e controlla i logs! Dicono nulla di utile?
_________________
I was born in a deep forest/I wish I could live here all my life/I am made from stones and roots/My home, these woods and roads
All my life I loved this sound/Of the woods all around/Eagles flies where the winds blows free
Journey is my destiny
Back to top
View user's profile Send private message
makoomba
Bodhisattva
Bodhisattva


Joined: 03 Jun 2004
Posts: 1856

PostPosted: Fri Jul 28, 2006 6:12 pm    Post subject: Reply with quote

Moved from Forum italiano (Italian) to Forum di discussione italiano.
_________________
When all else fails, read the instructions.
Back to top
View user's profile Send private message
fbcyborg
Advocate
Advocate


Joined: 16 Oct 2005
Posts: 3056
Location: ROMA

PostPosted: Sat Jul 29, 2006 8:28 am    Post subject: Reply with quote

Ci sono un bel po' di logs. Io ho preso il log del pc2 dal quale sto stampando:
Code:

[2006/07/29 10:22:06, 1] smbd/service.c:make_connection_snum(941)
  pc2 (192.168.1.99) connect to service hpdeskjet690c initially as user nobody (uid=65534, gid=65534) (pid 19904)
[2006/07/29 10:22:07, 0] printing/print_cups.c:cups_job_submit(643)
  Unable to print file to hpdeskjet690c - client-error-document-format-not-supported


stiamo parlando di un file di testo creato col notepad...
in log.smbd leggo altri errori ricorrenti:
Code:

[2006/07/29 09:46:24, 0] smbd/server.c:main(847)
  smbd version 3.0.23a started.
  Copyright Andrew Tridgell and the Samba Team 1992-2006
[2006/07/29 09:46:24, 1] param/loadparm.c:lp_do_parameter(3426)
  WARNING: The "printer admin" option is deprecated
[2006/07/29 09:46:24, 0] passdb/pdb_smbpasswd.c:startsmbfilepwent(199)
  startsmbfilepwent_internal: file /etc/samba/private/smbpasswd did not exist. Couldn't create new one. Error was: No such file or directoryUnable to open passdb database.

forse dovrei mettere a posto più di una cosa. A partire da quel "printer admin".
Vedo che si è cancellato il file smbpasswd.. ma com'è possibile??? sarà stata colpa della versione buggata di samba che in precedenza è stata installata a causa di un aggiornamento del world?
_________________
[HOWTO] Come criptare la /home usando cryptsetup e luks
[HOWTO] Abilitare il supporto al dom0 XEN su kernel 3.X
Help answer the unanswered
Back to top
View user's profile Send private message
fbcyborg
Advocate
Advocate


Joined: 16 Oct 2005
Posts: 3056
Location: ROMA

PostPosted: Fri Sep 08, 2006 10:06 am    Post subject: Reply with quote

Risolto:
mancava questa parte nel smb.conf non so per quale oscura ragione visto che non tocco mai quel file:
Code:
[NOME_STAMPANTE]
comment = DESCRIZIONE DELLA STAMPANTE
printable = yes
path = /var/spool/samba
public = yes
guest ok = yes
printer admin = root

_________________
[HOWTO] Come criptare la /home usando cryptsetup e luks
[HOWTO] Abilitare il supporto al dom0 XEN su kernel 3.X
Help answer the unanswered
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Forum di discussione italiano 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