| /l3/users/sergey-tymku-public/nt-voip-2014-apr/debian5/root :1 :2 :3 :4 :5 :6 |
|
|
#ls -al /var/spool/asterisk/monitor/
total 12 drwxr-x--- 2 asterisk asterisk 4096 Apr 24 10:20 . drwxr-x--- 9 asterisk asterisk 4096 Apr 22 14:33 .. -rw-rw---- 1 asterisk asterisk 44 Apr 24 10:20 monitor.wav |
|
#ls -al /var/spool/asterisk/monitor/
total 12 drwxr-x--- 2 asterisk asterisk 4096 Apr 24 10:20 . drwxr-x--- 9 asterisk asterisk 4096 Apr 22 14:33 .. -rw-rw---- 1 asterisk asterisk 44 Apr 24 10:20 monitor.wav |
|
#ls -al /var/spool/asterisk/monitor/
total 12 drwxr-x--- 2 asterisk asterisk 4096 Apr 24 10:20 . drwxr-x--- 9 asterisk asterisk 4096 Apr 22 14:33 .. -rw-rw---- 1 asterisk asterisk 44 Apr 24 10:20 monitor.wav |
|
#ls -al /var/spool/asterisk/monitor/
total 12 drwxr-x--- 2 asterisk asterisk 4096 Apr 24 10:20 . drwxr-x--- 9 asterisk asterisk 4096 Apr 22 14:33 .. -rw-rw---- 1 asterisk asterisk 44 Apr 24 10:20 monitor.wav |
|
#ls -al /var/spool/asterisk/monitor/
total 12 drwxr-x--- 2 asterisk asterisk 4096 Apr 24 10:20 . drwxr-x--- 9 asterisk asterisk 4096 Apr 22 14:33 .. -rw-rw---- 1 asterisk asterisk 44 Apr 24 10:20 monitor.wav |
|
#ls -al /var/spool/asterisk/monitor/
total 12 drwxr-x--- 2 asterisk asterisk 4096 Apr 24 10:20 . drwxr-x--- 9 asterisk asterisk 4096 Apr 22 14:33 .. -rw-rw---- 1 asterisk asterisk 44 Apr 24 10:20 monitor.wav |
|
#ls -al /var/spool/asterisk/monitor/
total 12 drwxr-x--- 2 asterisk asterisk 4096 Apr 24 10:20 . drwxr-x--- 9 asterisk asterisk 4096 Apr 22 14:33 .. -rw-rw---- 1 asterisk asterisk 44 Apr 24 10:20 monitor.wav |
|
#ls -al /var/spool/asterisk/monitor/
total 12 drwxr-x--- 2 asterisk asterisk 4096 Apr 24 10:20 . drwxr-x--- 9 asterisk asterisk 4096 Apr 22 14:33 .. -rw-rw---- 1 asterisk asterisk 44 Apr 24 10:20 monitor.wav |
|
#ls -al /var/spool/asterisk/monitor/
total 12 drwxr-x--- 2 asterisk asterisk 4096 Apr 24 10:20 . drwxr-x--- 9 asterisk asterisk 4096 Apr 22 14:33 .. -rw-rw---- 1 asterisk asterisk 44 Apr 24 10:20 monitor.wav |
|
#ls -al /var/spool/asterisk/monitor/
total 12 drwxr-x--- 2 asterisk asterisk 4096 Apr 24 10:20 . drwxr-x--- 9 asterisk asterisk 4096 Apr 22 14:33 .. -rw-rw---- 1 asterisk asterisk 44 Apr 24 10:20 monitor.wav |
|
#ls -al /var/spool/asterisk/monitor/berlin/
total 188 drwxrwx--- 2 asterisk asterisk 4096 Apr 24 10:50 . drwxr-x--- 4 asterisk asterisk 4096 Apr 24 10:50 .. -rw-rw---- 1 asterisk asterisk 19884 Apr 24 10:50 1101-2201-1398325826.wav -rw-rw---- 1 asterisk asterisk 162444 Apr 24 10:50 1201-2201-1398325836.wav |
|
#ls -al /var/spool/asterisk/monitor/
total 132 drwxr-x--- 4 asterisk asterisk 4096 Apr 24 10:50 . drwxr-x--- 9 asterisk asterisk 4096 Apr 22 14:33 .. drwxrwx--- 2 asterisk asterisk 4096 Apr 24 10:52 berlin drwxrwx--- 2 asterisk asterisk 4096 Apr 24 10:41 graz -rw-rw---- 1 asterisk asterisk 44 Apr 24 10:20 monitor.wav -rw-rw---- 1 asterisk asterisk 113484 Apr 24 10:39 s-2201-1398325185.wav |
|
#кÑrm /var/spool/asterisk/
dictate/ meetme/ monitor/ outgoing/ system/ tmp/ voicemail/ |
|
#rm /var/spool/asterisk/m
meetme/ monitor/ |
|
#rm /var/spool/asterisk/monitor/s-2201-1398325185.wav
|
|
#ifconfig /all
/all: error fetching interface information: Device not found |
|
#ifconfig
eth0 Link encap:Ethernet HWaddr 2c:27:d7:46:19:88
inet addr:192.168.12.5 Bcast:192.168.12.255 Mask:255.255.255.0
inet6 addr: fe80::2e27:d7ff:fe46:1988/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:24504 errors:0 dropped:0 overruns:0 frame:0
TX packets:21275 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4662201 (4.4 MiB) TX bytes:4575654 (4.3 MiB)
Interrupt:20 Memory:fe400000-fe420000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:96 errors:0 dropped:0 overruns:0 frame:0
TX packets:96 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:5760 (5.6 KiB) TX bytes:5760 (5.6 KiB)
|
|
#ifconfig -a
eth0 Link encap:Ethernet HWaddr 2c:27:d7:46:19:88
inet addr:192.168.12.5 Bcast:192.168.12.255 Mask:255.255.255.0
inet6 addr: fe80::2e27:d7ff:fe46:1988/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:24516 errors:0 dropped:0 overruns:0 frame:0
TX packets:21287 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4663283 (4.4 MiB) TX bytes:4580004 (4.3 MiB)
Interrupt:20 Memory:fe400000-fe420000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:96 errors:0 dropped:0 overruns:0 frame:0
TX packets:96 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:5760 (5.6 KiB) TX bytes:5760 (5.6 KiB)
|
|
#apt-get install samba
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: samba-common samba-common-bin tdb-tools Suggested packages: openbsd-inetd inet-superserver smbldap-tools ldb-tools ctdb The following NEW packages will be installed: samba samba-common samba-common-bin tdb-tools 0 upgraded, 4 newly installed, 0 to remove and 1 not upgraded. ... Adding group `sambashare' (GID 120) ... Done. update-alternatives: using /usr/bin/smbstatus.samba3 to provide /usr/bin/smbstatus (smbstatus) in auto mode Starting Samba daemons: nmbd smbd. Setting up samba-common-bin (2:3.6.6-6+deb7u2) ... update-alternatives: using /usr/bin/nmblookup.samba3 to provide /usr/bin/nmblookup (nmblookup) in auto mode update-alternatives: using /usr/bin/net.samba3 to provide /usr/bin/net (net) in auto mode update-alternatives: using /usr/bin/testparm.samba3 to provide /usr/bin/testparm (testparm) in auto mode Setting up tdb-tools (1.2.10-2) ... update-alternatives: using /usr/bin/tdbbackup.tdbtools to provide /usr/bin/tdbbackup (tdbbackup) in auto mode |
|
#vi /etc/samba/smb.conf
|
|
#smbpasswd -a smbuser
New SMB password: Retype new SMB password: Failed to add entry for user smbuser. |
|
#smbpasswd -a smbuser
New SMB password: Retype new SMB password: Failed to add entry for user smbuser. |
|
#/etc/init
init/ init.d/ initramfs-tools/ |
|
#/etc/init.d/samba restart
Stopping Samba daemons: nmbd smbd. Starting Samba daemons: nmbd smbd. |
|
#smbclient -U user
l3script: smbclient: command not found |
|
#smb
smbcontrol smbd smbpasswd smbstatus smbstatus.samba3 |
|
#smbstatus
smbstatus smbstatus.samba3 |
|
#smbstatus
Samba version 3.6.6 PID Username Group Machine ------------------------------------------------------------------- Service pid machine Connected at ------------------------------------------------------- No locked files |
|
#apt-cache search samba
libapache2-mod-auth-ntlm-winbind - apache2 module for NTLM authentication against Winbind auth2db-filters - Auth2db defaults filters pack cadaver - command-line WebDAV client ctdb - clustered database to store temporary data ctdb-dbg - clustered database to store temporary data -- debugging symbols and test suite libctdb-dev - clustered database to store temporary data -- development files dpsyco-samba - Automate administration of access to samba fusesmb - filesystem client based on the SMB file transfer protocol gadmin-samba - GTK+ configuration tool for samba gadmin-samba-dbg - GTK+ configuration tool for samba (debug) ... smb4k - Samba (SMB) share advanced browser for KDE smbc - samba-commander - curses based samba network browser smbldap-tools - Scripts to manage Unix and Samba accounts stored on LDAP snort - flexible Network Intrusion Detection System snort-common - flexible Network Intrusion Detection System [common files] snort-common-libraries - flexible Network Intrusion Detection System ruleset snort-doc - Documentation for the Snort IDS [documentation] snort-mysql - flexible Network Intrusion Detection System [MySQL] snort-pgsql - flexible Network Intrusion Detection System [PostgreSQL] yasat - simple stupid audit tool |
|
#smbpasswd
New SMB password: Interrupted by signal. |
|
#smbpasswd -?
smbpasswd: invalid option -- '?'
When run by root:
smbpasswd [options] [username]
otherwise:
smbpasswd [options]
options:
-L local mode (must be first option)
-h print this usage message
-s use stdin for password prompt
-c smb.conf file Use the given path to the smb.conf file
...
-a add user
-d disable user
-e enable user
-i interdomain trust account
-m machine trust account
-n set no password
-W use stdin ldap admin password
-w PASSWORD ldap admin password
-x delete user
-R ORDER name resolve order
|
|
#smbpasswd -a user
New SMB password: Retype new SMB password: Added user user. |
|
#smb
smbcontrol smbd smbpasswd smbstatus smbstatus.samba3 |
|
#smbstatus
Samba version 3.6.6 PID Username Group Machine ------------------------------------------------------------------- Service pid machine Connected at ------------------------------------------------------- No locked files |
|
#apt-cache search samba
libapache2-mod-auth-ntlm-winbind - apache2 module for NTLM authentication against Winbind auth2db-filters - Auth2db defaults filters pack cadaver - command-line WebDAV client ctdb - clustered database to store temporary data ctdb-dbg - clustered database to store temporary data -- debugging symbols and test suite libctdb-dev - clustered database to store temporary data -- development files dpsyco-samba - Automate administration of access to samba fusesmb - filesystem client based on the SMB file transfer protocol gadmin-samba - GTK+ configuration tool for samba gadmin-samba-dbg - GTK+ configuration tool for samba (debug) ... smb4k - Samba (SMB) share advanced browser for KDE smbc - samba-commander - curses based samba network browser smbldap-tools - Scripts to manage Unix and Samba accounts stored on LDAP snort - flexible Network Intrusion Detection System snort-common - flexible Network Intrusion Detection System [common files] snort-common-libraries - flexible Network Intrusion Detection System ruleset snort-doc - Documentation for the Snort IDS [documentation] snort-mysql - flexible Network Intrusion Detection System [MySQL] snort-pgsql - flexible Network Intrusion Detection System [PostgreSQL] yasat - simple stupid audit tool |
|
#apt-cache search samba | less
|
|
#apt-get install smb |