2009-06-03

LINUX VSFTPD

before run check module path in file /etc/pam.d/vsftpd
vsftpd.conf
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
dirmessage_enable=YES

#xferlog_enable=YES #wlaczenie logowania
xferlog_std_format=NO
#xferlog_file=/var/log/vsftpd.log
vsftpd_log_file=/var/log/vsftpd.log
#log_ftp_protocol=YES

connect_from_port_20=YES

#idle_session_timeout=600
#data_connection_timeout=120
#nopriv_user=ftpsecure

ftpd_banner=Welcome to ftp server

chroot_local_user=YES
secure_chroot_dir=/usr/share/empty

# You may specify an explicit list of local users to chroot() to their home
# directory. If chroot_local_user is YES, then this list becomes a list of
# users to NOT chroot().
chroot_list_enable=YES
# (default follows)
chroot_list_file=/etc/vsftpd/vsftpd.chroot_list

# vsftpd userlist
# If userlist_deny=NO, only allow users in this file
# If userlist_deny=YES (default), never allow users in this file, and
# do not even prompt for a password.
# Note that the default vsftpd pam config also checks /etc/vsftpd.ftpusers
# for users that are denied.

pam_service_name=vsftpd
userlist_enable=YES
userlist_deny=NO
userlist_file=/etc/vsftpd/vsftpd.user_list

#enable for standalone mode
listen=YES
tcp_wrappers=YES

MIDNIGHT COMMANDER

Shortkeys:

"key1" & "key2" - means - put key1 and after that put key2
"key1" + "key2" - means - put key1 and hold on put key2

"esc" & "o" #the same directory on neighbor window
"ctrl" + "x" & "q" #show file content
"ctrl" + "x" & "s" #make symbolic link
"ctrl" + "x" & "c" #chmod
"ctrl" + "x" & "o" #chown

Connections:

/#sh:[username]:[pass]@[server]:[path]
/#ftp:[username]:[pass]@[server]


~/.mc/ini

navigate_with_arrows=1 #change dirs with arrows
use_internal_edit=1 #internal editor mcedit when set 0 it dependes from environment variable $EDITOR

ETHERNET FRAME

IP CLASS

/25(128) /26(192) /27(224) /28(240) /29(248) /30(252)
-----------------------------------------------------
0-127    0-63     0-31     0-15     0-7      0-3
4-7
8-15     8-11
12-15
16-31    16-23    16-19
20-23
24-31    24-27
28-31
32-63    32-47    32-39    32-35
36-39
40-47    40-43
44-47
48-63    48-55    48-51
52-55
56-63    56-59
60-63
64-127   64-95    64-79    64-71    64-67
68-71
72-79    72-75
76-79
80-95    80-87    80-83
84-87
88-95    88-91
92-95
96-127   96-111   96-103   96-99
100-103
104-111  104-107
108-111
112-127  112-119  112-115
116-119
120-127  120-123
124-127
128-255  128-191  128-159  128-143  128-135  128-131
132-135
137-143  136-139
140-143 
144-159  144-151  144-147
149-151
153-159  153-155
157-159 
160-191  160-175  160-167  160-163
164-167
168-175  168-171
172-175
176-191  176-183  176-179
180-183
180-191  184-187
188-191
192-255  192-223  192-207  192-199  192-195
196-199
200-207  200-203
204-207
208-223  208-215  208-211
212-215
216-223  216-219
220-223
224-255  224-239  224-231  224-227
228-231
232-239  232-235
236-239
240-255  240-247  241-243
244-247
248-255  248-251
252-255