[PLUTO-help] Samba su Debian lenny, con account nobody non accede alla condivisione ... come mai?

DaX_6uncesso 6uncesso a infinito.it
Gio 20 Nov 2008 19:51:11 CET


Salve ragazzi, volevo esporvi il mio problema, è da tempo che cerco una 
soluzione solo ora mi sono deciso ad interpellarvi.
3 mesi fa circa sono passato da gentoo a debian, tutto fila liscio, ma 
ho qualche problema con samba e una condivisione pubblica.
Vi do qualche dato tanto per farvi capire meglio il problema, si tratta 
di una workstation casalinga in cui voglio che una cartella chiamata 
"public" sia visibile, navigabile, leggibile e scrivibile dal mondo 
intero...o meglio da tutti i pc della mia lan casalinga...quindi niente 
  configurazioni trascendentali LDAP o cose simili...solo una semplice 
share...quindi il mio obbiettivo è cercare di usare l'asccount nobody 
come account guest...
Cosa capita...succede che la mia configurazione funziona solo se ho più 
di una cartella pubblicata...mentre invece se ho solo public mi da un 
connection refused
la versione di samba è: 2:3.2.3-3

Questa è la configurazione che non va:
[global]
workgroup = WORKGROUP
server string = Samba Server %v
printcap name = cups
printing = cups
load printers = yes
log file = /var/log/samba/log.%m
log level = 2
max log size = 50
netbios name = DaXpc
security = SHARE
# guest ok = yes
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=8192 SO_RCVBUF=8192
interfaces = lo eth0
bind interfaces only = yes
hosts allow = 127.0.0.1 10.17.13.0/24
hosts deny = 0.0.0.0/0
wins support = yes
# encrypt passwords = yes
# vfs object = vscan-clamav:config-file=/etc/samba/vscan-clamav.conf
dos charset = ISO-8859-1
unix charset = ISO-8859-1
display charset = ISO-8859-1

[printers]
comment      = hp Deskjet D2460 in studio este
path         = /var/spool/samba
browseable   = no
guest ok     = no
writable     = no
printable    = yes
public       = yes
printer name = hpDeskjetD2460

[print$]
comment = Printer Drivers
path = /etc/samba/drivers
browseable = yes
guest ok = no
read only = yes
write list = root

[public]
comment=file pubblici
browseable=yes
public=yes
writable=yes
force create mode = 0777
force directory mode = 0777
#guest ok=yes
path=/home/dax/public

#[homes]
#comment = Home Directories
#valid users = %S
#read only = No
#create mask = 0664
#directory mask = 0775
#guest ok=yes

#[dvdrom]
#comment = dati su ntfs HD2
#path = /mnt/cd_dvd
#public = yes
#read only = yes
#printable = no
---------------------------------------EOF
Questa è quella che va invece:

[global]
workgroup = WORKGROUP
server string = Samba Server %v
printcap name = cups
printing = cups
load printers = yes
log file = /var/log/samba/log.%m
log level = 2
max log size = 50
netbios name = DaXpc
security = SHARE
# guest ok = yes
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=8192 SO_RCVBUF=8192
interfaces = lo eth0
bind interfaces only = yes
hosts allow = 127.0.0.1 10.17.13.0/24
hosts deny = 0.0.0.0/0
wins support = yes
# encrypt passwords = yes
# vfs object = vscan-clamav:config-file=/etc/samba/vscan-clamav.conf
dos charset = ISO-8859-1
unix charset = ISO-8859-1
display charset = ISO-8859-1

[printers]
comment      = hp Deskjet D2460 in studio este
path         = /var/spool/samba
browseable   = no
guest ok     = no
writable     = no
printable    = yes
public       = yes
printer name = hpDeskjetD2460

[print$]
comment = Printer Drivers
path = /etc/samba/drivers
browseable = yes
guest ok = no
read only = yes
write list = root

[public]
comment=file pubblici
browseable=yes
public=yes
writable=yes
force create mode = 0777
force directory mode = 0777
#guest ok=yes
path=/home/public

#[homes]
#comment = Home Directories
#valid users = %S
#read only = No
#create mask = 0664
#directory mask = 0775
#guest ok=yes

[dvdrom]
comment = dati su ntfs HD2
path = /mnt/cd_dvd
public = yes
read only = yes
printable = no

[dataHD1]
comment = dati su HD1
path = /mnt/data_HD1
public = yes
read only = yes
printable = no

#[dataHD2]
#comment = dati su HD2
#path = /mnt/data_HD2
# guest ok = no
#read only = yes
#printable = no

[ntfsHD2]
comment = dati su ntfs HD2
path = /mnt/ntfs_HD2
public = yes
read only = yes
printable = no

[dataHD2]
comment = dati su HD2
path = /mnt/data_HD2
public = yes
read only = yes
printable = no

[smb_backup]
comment=share di backup
browseable=yes
public=yes
writable=yes
force create mode = 0777
force directory mode = 0777
#guest ok=yes
path=/mnt/smb_bakcup

Non riesco a capire perchè semplicemente ripulendola delle condivisioni 
non più necessarie non vada...
Ringazio tutti e buona serata.
Dario.



More information about the pluto-help mailing list