
testparm-s
Load smb config files from /etc/samba/smb.conf
rlimit_max: rlimit_max (1024) below minimum Windows limit (16384)
Processing section "[printers]"
Processing section "[print$]"
Loaded services file OK.
Server role: ROLE_STANDALONE
[global]
workgroup = WORKGROUP-NEW
server string = %h server (Samba, Ubuntu)
map to guest = Bad User
obey pam restrictions = Yes
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
unix password sync = Yes
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
dns proxy = No
usershare allow guests = Yes
panic action = /usr/share/samba/panic-action %d
[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
printable = Yes
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
johnu@AspireU:~$ net status shares
Service pid machine Connected at
-------------------------------------------------------
johnu@AspireU:~$ net usershare info --long
[documents]
path=/home/johnu/Documents
comment=
usershare_acl=Everyone:F,
guest_ok=y

medigeek έγραψε:Και αν συμβαίνει μόνο σε ένα φάκελο που βρίσκεται στο windows, ίσως να δουλέψει αν διαγράψεις το share στο windows και ξαναδοκιμάσεις να το ρυθμίσεις.

smbtree -d 3 > smbtree.log
gedit smbtree.log
lp_load_ex: refreshing parameters
Initialising global parameters
rlimit_max: rlimit_max (1024) below minimum Windows limit (16384)
params.c:pm_process() - Processing configuration file "/etc/samba/smb.conf"
Processing section "[global]"
added interface eth1 ip=fe80::f27b:cbff:fe04:d03c%eth1 bcast=fe80::ffff:ffff:ffff:ffff%eth1 netmask=ffff:ffff:ffff:ffff::
added interface eth1 ip=192.168.1.3 bcast=192.168.1.255 netmask=255.255.255.0
tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/gencache.tdb: Permission denied
resolve_lmhosts: Attempting lmhosts lookup for name WORKGROUP-NEW<0x1d>
name_resolve_bcast: Attempting broadcast lookup for name WORKGROUP-NEW<0x1d>
Got a positive name query response from 192.168.1.2 ( 192.168.1.2 )
Connecting to host=192.168.1.2
Connecting to 192.168.1.2 at port 445
Doing spnego session setup (blob length=336)
got OID=1.3.6.1.4.1.311.2.2.30
got OID=1.3.6.1.4.1.311.2.2.10
got principal=<null>
Got challenge flags:
Got NTLMSSP neg_flags=0x628a8215
NTLMSSP: Set final flags:
Got NTLMSSP neg_flags=0x60088215
NTLMSSP Sign/Seal - Initialising with flags:
Got NTLMSSP neg_flags=0x60088215
name_resolve_bcast: Attempting broadcast lookup for name __MSBROWSE__<0x1>
Got a positive name query response from 192.168.1.2 ( 192.168.1.2 )
resolve_lmhosts: Attempting lmhosts lookup for name WORKGROUP-NEW<0x1d>
name_resolve_bcast: Attempting broadcast lookup for name WORKGROUP-NEW<0x1d>
Got a positive name query response from 192.168.1.2 ( 192.168.1.2 )
Connecting to host=192.168.1.2
Connecting to 192.168.1.2 at port 445
Doing spnego session setup (blob length=336)
got OID=1.3.6.1.4.1.311.2.2.30
got OID=1.3.6.1.4.1.311.2.2.10
got principal=<null>
Got challenge flags:
Got NTLMSSP neg_flags=0x628a8215
NTLMSSP: Set final flags:
Got NTLMSSP neg_flags=0x60088215
NTLMSSP Sign/Seal - Initialising with flags:
Got NTLMSSP neg_flags=0x60088215
WORKGROUP-NEW
resolve_lmhosts: Attempting lmhosts lookup for name WORKGROUP-NEW<0x1d>
name_resolve_bcast: Attempting broadcast lookup for name WORKGROUP-NEW<0x1d>
Got a positive name query response from 192.168.1.2 ( 192.168.1.2 )
Connecting to host=192.168.1.2
Connecting to 192.168.1.2 at port 445
Doing spnego session setup (blob length=336)
got OID=1.3.6.1.4.1.311.2.2.30
got OID=1.3.6.1.4.1.311.2.2.10
got principal=<null>
Got challenge flags:
Got NTLMSSP neg_flags=0x628a8215
NTLMSSP: Set final flags:
Got NTLMSSP neg_flags=0x60088215
NTLMSSP Sign/Seal - Initialising with flags:
Got NTLMSSP neg_flags=0x60088215
\\WINDOWS7-PC USER1-TOSH
Connecting to host=WINDOWS7-PC
resolve_lmhosts: Attempting lmhosts lookup for name WINDOWS7-PC<0x20>
resolve_wins: Attempting wins lookup for name WINDOWS7-PC<0x20>
resolve_wins: WINS server resolution selected and no WINS servers listed.
resolve_hosts: Attempting host lookup for name WINDOWS7-PC<0x20>
Connecting to 192.168.1.2 at port 445
Doing spnego session setup (blob length=336)
got OID=1.3.6.1.4.1.311.2.2.30
got OID=1.3.6.1.4.1.311.2.2.10
got principal=<null>
Got challenge flags:
Got NTLMSSP neg_flags=0x628a8215
NTLMSSP: Set final flags:
Got NTLMSSP neg_flags=0x60088215
NTLMSSP Sign/Seal - Initialising with flags:
Got NTLMSSP neg_flags=0x60088215
\\WINDOWS7-PC\print$ Προγράμματα οδήγησης εκτυπωτών
\\WINDOWS7-PC\IPC$ Απομακρυσμένο IPC
\\WINDOWS7-PC\HP Deskjet 2050 J510 series HP Deskjet 2050 J510 series
\\WINDOWS7-PC\FreeAgent
\\WINDOWS7-PC\Data-Partition
\\ASPIREU AspireU server (Samba, Ubuntu)
Connecting to host=ASPIREU
resolve_lmhosts: Attempting lmhosts lookup for name ASPIREU<0x20>
resolve_wins: Attempting wins lookup for name ASPIREU<0x20>
resolve_wins: WINS server resolution selected and no WINS servers listed.
resolve_hosts: Attempting host lookup for name ASPIREU<0x20>
Connecting to 127.0.0.1 at port 445
Doing spnego session setup (blob length=58)
got OID=1.3.6.1.4.1.311.2.2.10
got principal=NONE
Got challenge flags:
Got NTLMSSP neg_flags=0x608a8215
NTLMSSP: Set final flags:
Got NTLMSSP neg_flags=0x60088215
NTLMSSP Sign/Seal - Initialising with flags:
Got NTLMSSP neg_flags=0x60088215
\\ASPIREU\documents
\\ASPIREU\print$ Printer Drivers
\\ASPIREU\IPC$ IPC Service (AspireU server (Samba, Ubuntu))
smbclient -d 3 -N \\\\WINDOWS7-PC\\Data-Partition -c "dir"
johnu@AspireU:~$ smbclient -d 3 -N \\\\WINDOWS7-PC\\Data-Partition -c "dir"
lp_load_ex: refreshing parameters
Initialising global parameters
rlimit_max: rlimit_max (1024) below minimum Windows limit (16384)
params.c:pm_process() - Processing configuration file "/etc/samba/smb.conf"
Processing section "[global]"
added interface eth1 ip=fe80::f27b:cbff:fe04:d03c%eth1 bcast=fe80::ffff:ffff:ffff:ffff%eth1 netmask=ffff:ffff:ffff:ffff::
added interface eth1 ip=192.168.1.3 bcast=192.168.1.255 netmask=255.255.255.0
Client started (version 3.5.4).
tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/gencache.tdb: Permission denied
resolve_lmhosts: Attempting lmhosts lookup for name WINDOWS7-PC<0x20>
resolve_wins: Attempting wins lookup for name WINDOWS7-PC<0x20>
resolve_wins: WINS server resolution selected and no WINS servers listed.
resolve_hosts: Attempting host lookup for name WINDOWS7-PC<0x20>
Connecting to 192.168.1.2 at port 445
Doing spnego session setup (blob length=336)
got OID=1.3.6.1.4.1.311.2.2.30
got OID=1.3.6.1.4.1.311.2.2.10
got principal=<null>
Got challenge flags:
Got NTLMSSP neg_flags=0x628a8215
NTLMSSP: Set final flags:
Got NTLMSSP neg_flags=0x60088215
NTLMSSP Sign/Seal - Initialising with flags:
Got NTLMSSP neg_flags=0x60088215
Domain=[WINDOWS7-PC] OS=[Windows 7 Ultimate 7600] Server=[Windows 7 Ultimate 6.1]
NT_STATUS_ACCESS_DENIED listing \*
38456 blocks of size 16777216. 10452 blocks available
Total bytes listed: 0



smbclient -d 9 -N \\\\WINDOWS7-PC\\Data-Partition -c "dir"sudo apt-get update
sudo apt-get dist-upgrade