andrew1988
01-04-2009, 15:24
in seguito al comando
(client)# smbclient //192.168.1.2/andrea -U andrea
e inserimento della password settata con questo comando
(server)# smbpasswd -a andrea
rstituisce l'errore: tree connect failed: NT_STATUS_ACCESS_DENIED
questo e' smb.conf privato delle parti commentate
[global]
workgroup = workgroup
netbios name = andrew_smb_server
server string = %h (ubuntu)
dns proxy = no
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d
security = user
passdb backend = tdbsam
obey pam restrictions = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
pam password change = yes
map to guest = bad user
# Allow users who've been granted usershare privileges to create
# public shares, not just authenticated ones
usershare allow guests = yes
security = user
; guest ok = no
; guest account = nobody
username map = /etc/samba/smbusers
[printers]
comment = All Printers
browseable = no
path = /var/spool/samba
printable = yes
; guest ok = no
; read only = yes
create mask = 0700
# Windows clients look for this share name as a source of downloadable
# printer drivers
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
; browseable = yes
; read only = yes
; guest ok = no
# A sample share for sharing your CD-ROM with others.
[cdrom]
comment = Samba server's CD-ROM
; read only = yes
locking = no
path = /cdrom
guest ok = yes
[andrea]
comment = remoteadm profiles
path = /home/andrea
writable = yes
guest ok = no
valid users = andrea
browseable = yes
create mask = 0777
directory mask = 0777
[public]
comment = public andrea
path = /home/andrea/Public
writable = yes
guest ok = yes
browseable = yes
create mask = 0777
directory mask = 0777
in public riesco ad accedere come guest ma nn posso scrivere, in andrea invece restituisce appunto l'errore precedente. come potrei risolvere?
se servono altre informazioni chiedete pure..
(client)# smbclient //192.168.1.2/andrea -U andrea
e inserimento della password settata con questo comando
(server)# smbpasswd -a andrea
rstituisce l'errore: tree connect failed: NT_STATUS_ACCESS_DENIED
questo e' smb.conf privato delle parti commentate
[global]
workgroup = workgroup
netbios name = andrew_smb_server
server string = %h (ubuntu)
dns proxy = no
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d
security = user
passdb backend = tdbsam
obey pam restrictions = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
pam password change = yes
map to guest = bad user
# Allow users who've been granted usershare privileges to create
# public shares, not just authenticated ones
usershare allow guests = yes
security = user
; guest ok = no
; guest account = nobody
username map = /etc/samba/smbusers
[printers]
comment = All Printers
browseable = no
path = /var/spool/samba
printable = yes
; guest ok = no
; read only = yes
create mask = 0700
# Windows clients look for this share name as a source of downloadable
# printer drivers
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
; browseable = yes
; read only = yes
; guest ok = no
# A sample share for sharing your CD-ROM with others.
[cdrom]
comment = Samba server's CD-ROM
; read only = yes
locking = no
path = /cdrom
guest ok = yes
[andrea]
comment = remoteadm profiles
path = /home/andrea
writable = yes
guest ok = no
valid users = andrea
browseable = yes
create mask = 0777
directory mask = 0777
[public]
comment = public andrea
path = /home/andrea/Public
writable = yes
guest ok = yes
browseable = yes
create mask = 0777
directory mask = 0777
in public riesco ad accedere come guest ma nn posso scrivere, in andrea invece restituisce appunto l'errore precedente. come potrei risolvere?
se servono altre informazioni chiedete pure..