Хотите сделать посильный вклад в развитие Ubuntu и русскоязычного сообщества? Помогите нам с документацией!
0 Пользователей и 1 Гость просматривают эту тему.
smbtree -N
smbclient -L 127.0.0.1 -N
testparm -s
/etc/samba/smb.conf
WORKGROUP \\MICROSOF-69D37C \\MICROSOF-69D37C\C$ Стандартный общий ресурс \\MICROSOF-69D37C\ADMIN$ Удаленный Admin \\MICROSOF-69D37C\DATA \\MICROSOF-69D37C\D$ Стандартный общий ресурс \\MICROSOF-69D37C\IPC$ Удаленный IPC \\HOMECOMP HomeComp server (Samba, Ubuntu) \\HOMECOMP\Документы \\HOMECOMP\print$ Printer Drivers \\HOMECOMP\IPC$ IPC Service (HomeComp server (Samba, Ubuntu))
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.6.9] Sharename Type Comment --------- ---- ------- IPC$ IPC IPC Service (HomeComp server (Samba, Ubuntu)) print$ Disk Printer Drivers Документы Disk Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.6.9] Server Comment --------- ------- HOMECOMP HomeComp server (Samba, Ubuntu) MICROSOF-69D37C Workgroup Master --------- ------- WORKGROUP HOMECOMP
Load smb config files from /etc/samba/smb.confrlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)Processing section "[printers]"Processing section "[print$]"Loaded services file OK.Server role: ROLE_STANDALONE[global] 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 idmap config * : backend = tdb[printers] comment = All Printers path = /var/spool/samba create mask = 0700 printable = Yes print ok = Yes browseable = No[print$] comment = Printer Drivers path = /var/lib/samba/printers
smbclient -L 192.168.0.4 -N
Domain=[MICROSOF-69D37C] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager] Sharename Type Comment --------- ---- ------- IPC$ IPC Удаленный IPC D$ Disk Стандартный общий ресурс DATA Disk ADMIN$ Disk Удаленный Admin C$ Disk Стандартный общий ресурсsession request to 192.168.0.4 failed (Called name not present)session request to 192 failed (Called name not present)Domain=[MICROSOF-69D37C] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager] Server Comment --------- ------- Workgroup Master --------- -------
smbclient //192.168.0.4/DATA -N -c "ls"
RECYCLER DHS 0 Sun May 15 14:20:21 2011 System Volume Information DHS 0 Sat Jun 12 13:28:25 2010 temp D 0 Sat May 18 23:37:13 2013 vm D 0 Sat Apr 6 16:42:02 2013
smbclient //192.168.0.4/DATA/temp -N -c "ls"
Domain=[MICROSOF-69D37C] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]tree connect failed: NT_STATUS_BAD_NETWORK_NAME
dima@HomeComp:/etc/backuppc$ smbclient //192.168.0.4/DATA/ -N "ls"Domain=[MICROSOF-69D37C] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]smb: \> cd tempsmb: \temp\> ls . D 0 Sun May 19 12:56:12 2013 .. D 0 Sun May 19 12:56:12 2013 2z1JyjrR.mp3.part A 1928188 Thu May 9 21:55:29 2013 8ru6_n+X.mp3.part A 10203595 Thu May 9 22:18:34 2013 amt3.log A 55356 Sun May 5 20:18:20 2013 BTN%Copy%1 D 0 Thu May 9 21:01:18 2013 cEGGgpLB.mp3.part A 5208365 Thu May 9 22:19:20 2013 etilqs_rnf6Tb6r7FhumTg A 458808 Fri May 10 00:38:03 2013 fWW2KFgg.mp3.part A 3901547 Thu May 9 22:23:34 2013 mozilla-temp-files D 0 Sun May 19 09:42:36 2013 MSI60a34.LOG A 1135960 Sun May 5 20:03:01 2013 Perflib_Perfdata_398.dat A 16384 Sat May 11 19:21:32 2013 plugtmp D 0 Wed May 15 07:15:05 2013 Rz10VgAl.mp3.part A 7923715 Fri May 10 19:20:50 2013 sLd+BrRH.mp3.part A 4971624 Thu May 9 21:56:42 2013 swtag.log A 4418 Sun May 5 20:13:49 2013 TWAIN.LOG A 699 Sun May 5 20:20:51 2013 Twain001.Mtx A 2 Sun May 5 20:20:51 2013 Twunk001.MTX A 156 Sun May 5 20:20:51 2013 Twunk002.MTX A 0 Sun May 5 20:04:26 2013 ~DF1799.tmp A 32768 Wed May 15 17:40:22 2013 ~DF4BE.tmp A 32768 Sun May 5 19:56:22 2013 ~DF72B.tmp A 32768 Sun May 19 12:55:10 2013 41872 blocks of size 1048576. 3313 blocks availablesmb: \temp\>
какой admin или Admin или Администратор?
smbclient //192.168.0.4/DATA/temp -N -U Admin -c "ls"
Страница сгенерирована за 0.049 секунд. Запросов: 21.