updated successfully. The password is set successfully;
Step 4:
Modify SELinux Parameters
[Root @ localhost ~] # Setsebool ftpd_disable_trans 1 Press ENTER
[Root @ localhost ~] # Service vsftpd restart vsftp
Note: If this parameter is not modified, a prompt is displayed during connection.
500 Oops: cannot change Directory:/MPEG
500 Oops: child died
Step 5:
Modify website directory/var/www/html permissions
the determination of the real parameter type to overload the function.Function Test (){If (typeof arguments [0] = 'number '){Alert ("this is a number ");} Else if (typeof arguments [0] = 'string '){Alert ("this is a string ")} Else {Alert ("oops ");}}
Test (1); // This is a numberTest ("JavaScript"); // This is a stringTest (true); // oops
Function RecursionFunction recursion is programmingAlgorithmA go
FileLocal_root =/home/vsftpd/dbzh2So what about db3? It's actually quite simple.Write_enable = YesAnon_world_readable_only = NoAnon_upload_enable = YesAnon_mkdir_write_enable = YesAnon_other_write_enable = YesLocal_root =/home/vsftpd/dbzh3Note that there must be no space. Otherwise, an error will be prompted during logon. I also have problems here,Can it be?Restart vsftpd and we can see the effect ^_^./Etc/init. d/vsftpd START | restart500 Oops: cann
InProgramYou can create a new exception type to name your own exception. Exception classes should be directly or indirectlyExceptionClass, for example:
>>> Class myerror (exception ): ... Def _ init _ (self, value ): ... Self. value = Value ... Def _ STR _ (Self ): ... Return repr (self. value) ... >>> Try: ... Raise myerror (2*2) ... Handle T myerror, E: ... Print 'my exception occurred, value: ', E. Value ... My exception occurred, value: 4 >>> Raise myerror, '
, 'store', function (event) for window {// view the event object content // console. dir (event); // output oldvalue and newvalue for observation console. log ('key: % s, old value: % s, new value: % s', event. key, event. oldvalue, event. newvalue) ;}); // stores the number localstorage. setitem ('number', 1 ); // storage object because localstorage is ultimately stored as a string, so if you want to store an object, you can overwrite its tostring method // store it in the desired string format
up machines without a IO-APIC, set nmi_watchdog = 2, but only works on some processors. If you have any questions, after starting with nmi_watchdog = 1, check the NMI items in the/proc/interrupts file. If this item is 0, use nmi_watchdog = 2 to restart, check the NMI items again. If it is still 0, the problem is serious. Your processor may not support NMI.
Lockup refers to the following situation: if any CPU in the system cannot handle periodic local clock interruptions and lasts for more than
Topic that has not been completedUser address detection simple module debugging and miscellaneous detection of user space address Validity
As mentioned in the previous section, when reading and writing, you need to check whether the parameter address passed by the user space is a valid address. Some kernel functions will detect it on their own, but when you call a lightweight kernel function, the system may not check whether the address of the user space is valid. If the user does not pass an In
a log message.
A log message created by Syslog consists of a message header and a message body. The message header is created by the program indicator and date and time. The message body is created by the message parameter to syslog, and its function is similar to the printf format string. Other parameters passed to syslog are used to specify the printf style convention in the message string. In addition, the indicator % m can be used to insert an error message string associated with the curren
only log on to FTPThe user system added through the above command will create a folder with the same name under the/home directory, and the directory to which the user points after FTP is also the directory, how can I specify a specific directory for an FTP user?The command is as follows:[Root @ srsman] # adduser-D/opt/srsman-g ftp-S/sbin/nologin srsman[Root @ srsman] # passwd srsmanChanging password for user beinan.New password:Retype new password:Passwd: All authentication tokens updated succ
start vsFTPd server;
Of course, you can also disable SELINUX. The configuration file in/etc/selinux/config is as follows;
/Etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX = can take one of these three values:
# Enforcing-SELinux security policy is enforced.
# Permissive-SELinux prints warnings instead of enforcing.
# Disabled-SELinux is fully disabled.
SELINUX = Disabled # in this way, The SELINUX server is turned off. restart the system;
# SELINUXTYPE = ty
completed
Ii. FTP troubleshooting
1. An error message "500 OOPS: vsFTPd: not found: directory given in 'Secure _ chroot_dir ':/usr/share/empty" appears in the log file ".Solution: add a line to vsFTPd. conf:Secure_chroot_dir =/opt/usr/share/emptyCreate a directoryMkdir/opt/usr/share/emptyDisable Anonymous logon and set vsFTPd. confAnonymous_enable = YESChangeAnonymous_enable = NO
2. How can I configure the linux vsFTPd server as a chroot virtual user
/vsftpd_user_conf/WSNAddWrite_enable = YesAnon_world_readable_only = NoAnon_upload_enable = YesAnon_mkdir_write_enable = YesAnon_other_write_enable = YesLocal_root =/home/vsftpd/WSNThe Virtual Path of the down folder also needs to be mounted under the WSN directory.Create a directory down under the WSN directorySudo mkdir/home/vsftpd/WSN/downAfter the system starts, Mount/home/vsftpd/down to/home/vsftpd/WSN/down.Rewrite/etc/rc. Local to enable startupSudo VI/etc/rc. LocalAdd Mount-bind/home/vsft
parameters. All parameters in this syntax are optional. This parameter group can effectively replace the apply () built-in function.
The following is an example of using a parameter group:MathGame. py
Randomly select a number and an arithmetic function, display the problem, and verify the result. After three wrong attempts, the result is displayed. After the user inputs a correct answer, the operation continues.
#!/usr/bin/env pythonfrom operator import add, subfrom random import randint, choic
remote computers) #-x disables DNS lookups on messages recieved with (disable DNS resolution) # See syslogd (8) for more detailsSYSLOGD_OPTIONS = "-m 0" (changed to SYSLOGD_OPTIONS = "-m 0-f-x ") # Opt ions to klogd #-2 prints all kernel oops messages twice; once for klogd to decode, and # once for processing with 'K' #-x disables all klogd processing of oops messages ent irely # See klogd (8) for more det
understanding it, I will look back at the example at the beginning. Does it feel much clearer. In fact, this only points to its call-site
There are also the following methods:
Function foo () {console. log (this. a);} var obj2 = {a: 42, foo: foo}; var obj1 = {a: 2, obj2: obj2}; obj1.obj2. foo (); // 42 Implicitly Lost (implicit loss) function foo () {console. log (this. a);} var obj = {a: 2, foo: foo}; var bar = obj. foo; // function reference/alias! Var a = "
You can create a device file under/dev by loading the driver module. It is very convenient to automatically delete the device files created under/dev when the driver module is detached. This process is completed by using the device_create () and device_destroy () kernel functions. Before linux2.6.27, they were class_device_create () and class_device_destroy (). Recently, it was found that the device_create () parameter is flexible during development. When it is accidentally loaded, the kernel re
The Interrupt Processing routine should return a value indicating whether an interrupt is actually handled. If the processing routine finds that the device does need to be processed, irq_handled should be returned; otherwise, the return value is irq_none. The following macros can return values:
Irq_retval (Handled)/* Handled should be non-zero to handle interruptions */
Some netizens are processing the return value as usual.0;, resulting in oo
In addition to troubleshooting hardware faults, firmware versions, bios, and other issues, Linux crashes may encounter the following situations:1. If there are messy characters on the console when your Linux server crashes. Congratulations, this situation is called oops. It is usually caused by exceptions in Linux kernel.You can use the oops message to find the error.2. If your machine is dead, the problem
virtual user configuration.
Q13)Help! Does vsftpd support different configurations for different users?A) supported and powerful. ViewMan helpInUser_config_dir.
Q14)Help! Can I limit vsftpd data connection to a specified port range?A) Yes. View configuration optionsPasv_min_portAndPasv_max_port.
Q15)Help! I see information like "Oops: chdir.A) if an anonymous user is logged on, check whether the Home Directory of the System user FTP is correct. If yo
. offset and count are the same as read/write.
After implementing the read_proc function, you need to link it to the file in/proc to provide interfaces for it. This is implemented using create_proc_read_entry.
Struct proc_dir_entry * create_proc_read_entry (const char * Name, mode_t mode, struct proc_dir_entry * base, read_proc_t * read_proc, void * data );
Name is the file to establish a connection with read_proc. It can be redirected to other folders, not necessarily in Proc.
3. in the X86 ar
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.