1 Samba introduction Samba (SMB) is a network server used for sharing files between Linux and Windows. Samba can be used for sharing files between Windows and Linux, it is also used for file sharing between Linux and Linux. However, for file sharing between Linux and Linux, the Network File System NFS is better, and NFS also needs to set up servers; we all know that each machine in the Windows network can be a file sharing server or
1 Samba Introducti
or 7) or Sun,mon,tue,wed,thu,fri,sat//days of the Week (0-6) or English shorthand for the use of the week# | | | | |# * * * * * * user-name command to be executed//username: Who will perform this task command to be executed: the command to execute4) crontab Command parameters:-U: Specify user-E: Editing a user scheduled task-L: Displays the contents of a user's scheduled tasks-R: Delete a user's scheduled tasks-I: Prompt for confirmation when deleting user files5) Example:Example 1: The command
Instance 2: the 3rd and 15 minutes of the hour are executed:3, the* * * *Command Instance 3: Execute commands at 3rd and 15 minutes from 8 o'clock in the morning to 11:3, the 8- One* * *Command Example 4: Every two days from 8 o'clock in the morning to 11 points in the 3rd and 15 minutes of the execution of the commands:3, the 8- One*/2* *Command Instance 5: Every Monday from 8 o'clock in the morning to 11 in the 3rd and 15 minutes execution of commands:3, the 8- One* *1Command instance 6:21:30
comma-separated value, for example, "1,2,5,7,8,9"Middle Bar (-): An integer range can be represented by a middle bar between integers, such as "2-6" for "2,3,4,5,6"Forward slash (/): You can specify the interval frequency of the time with a forward slash, such as "0-23/2", which is performed every two hours. A forward slash can be used with asterisks, such as */10, if used in the minute field, which means that it executes every 10 minutes.5. Use instance Instance 1: Executes command commands ev
the morning to 11 points in the 3rd and 15 minutes of the execution of the commands:3, the 8- One*/2* *Command Instance 5: Every Monday from 8 o'clock in the morning to 11 in the 3rd and 15 minutes execution of commands:3, the 8- One* *1Command instance 6:21:30 restart SMB command per night: - +* * * */etc/init.d/SMB Restart Instance 7:1 per month,Ten, the 4:45 restart
I. Samba provides a CIFS protocol for shared files1.SMB file sharing, common internal file system (CIFS), also known as Server Information Block (SMB), is a standard file and Printer Sharing system for Microsoft Windows Servers and clients.2.Samba servers can be used to share Linux file systems as CIFS/SMB Network file shares and to share Linux printers as CIFS/
Start
To see if the Crontab service is set to boot, execute the command:
Ntsysv
Join the boot auto start:
Chkconfig–level Crond on
Base command:
-e indicates editing the current crontab
-L indicates that the list displays the current crontab task
-R indicates deletion of the current user's crontab
-I gives prompt information when deleting crontab
5. Working with instances
Example 1: Execute command every 1 minutes
Command:
* * * * command
Example 2:3rd and 15 minutes per hour execution
Comm
* command
Instance 5:3rd and 15 minutes per Monday from 8 o'clock in the morning to 11.
Command:
3,15 8-11 * * 1 command
Example 6:21:30 restart SMB per night
Command:
* * * */ETC/INIT.D/SMB restart
Instance 7:4:45 Restart SMB for 1, 10, 22nd per month
Command:
4 1,10,22 * */ETC/INIT.D/SMB restart
Ex
Crontab can perform the actions you want to do regularly.Edit directly with crontab commandCrontab-u//Set a user's Cron service, which is required by the general root user when executing this commandCRONTAB-L//list details of a user's cron serviceCrontab-r//Delete a user's cron serviceCRONTAB-E//Edit a user's cron service
Some examples of crontab files:
code is as follows
copy code
* * */ETC/INIT.D/SMB Restart The
The file modification time on the NFS file system displays the problem of Solaris + NetApp storage. The user's home directory is placed on NetApp and mounted to the local through autofs. You can use ls-l to view the touch file in your home directory. The mtime (modify time) column only displays the year, month, and day, but not the time. $ Touch file $ ls-l file-rw-r -- 1 user 0 Aug 25 2009 file after waiti
Small Q: The immutable thing in the world is the truth that everything is changing. --Sri LankaSamba Port --------------------------------------------------------------1) Port 137 (UDP)-NetBIOS name service; NMBD2) Port 138 (UDP)-NetBIOS datagram Service3) Port 139 (TCP)-File and print sharing, SMBD (based on SMB (Server Message Block) protocol, mainly in the officeUse in a domain network, file sharing protocol)4) Port 389 (TCP)-For LDAP (Active Direc
hit the delete key to exit, do not press 6). crontab Modifying the default editorCrontab default editor for Nano. Modify the crontab default editor for VI or other editor. French one: Export editor= "/usr/bin/vim"; CRONTAB-E two: Execute command: Select-editor then select Editor.5. Working with instancesExample 1: The command command executes every 1 minutes:* * * * *Command Instance 2: the 3rd and 15 minutes of the hour are executed:3, the* * * *Command Instance 3: Execute commands at 3rd and
(keyboard) and loads them into crontab.
-E: Edit the contents of a user's crontab file. If you do not specify a user, edit the current user's crontab file.
-L: Displays the contents of a user's crontab file, or displays the contents of the current user's crontab file if no user is specified.
-r: Deletes a user's crontab file from the/var/spool/cron directory, and deletes the current user's crontab file by default if no user is specified.
-I: Give a confirmation prompt when deleting a user's
* command
3rd and 15 minutes of every two days from 8 o'clock in the morning to 11.
3,15 8-11 * * 1 command
The 3rd and 15 minutes of each Monday 8 o'clock in the morning to 11 are executed.
* * * * */ETC/INIT.D/SMB restart
21:30 Restart SMB per night
4 1,10,22 * */ETC/INIT.D/SMB restart
4:45 restart
cannot be continued.
Check ASM's alert. log to find:
ERROR: cocould not create voting files. It spans internal SS 161 AUs (max supported is 64 AUs)
ERROR: Voting file allocation failed for group VOTE
Errors in file/g01/11 ggrid/app/11.2.0/grid/diag/asm/+ ASM1/trace/+ ASM1_ora_7321.trc:
ORA-15303: Voting files cocould not be created in diskgroup VOTE due to small Allocation Unit size
View the corresponding DM of the arbitration disk of the corresponding GRID
# Multipath-ll
SC _vote (360a980003
AUs)
ERROR: Voting file allocation failed for group VOTE
Errors in file/g01/11 ggrid/app/11.2.0/grid/diag/asm/+ ASM1/trace/+ ASM1_ora_7321.trc:
ORA-15303: Voting files cocould not be created in diskgroup VOTE due to small Allocation Unit size
View the corresponding DM of the arbitration disk of the corresponding GRID
# Multipath-ll
SC _vote (360a980003830302d712b31686276736b) dm-11 NETAPP, LUN
Size = 5.0G features = '4 queue_if_no_path pg_init_retri
ipconfig-all on Windows XP to get it.
3) set DNS (this step may not be performed in virtualbox)
As mentioned above, after obtaining DNS through the command ipconfig-all in Windows XP via cmd, modify/etc/resolv. conf In ubuntu. The specific command is as follows:
Sudo VI/etc/resolv. conf
Modify the nameserver. For example, modify it to nameserver 208.96.128.88.
3. In the last step, restart the Ubuntu Nic.
Enter the restart command in the terminal, as shown below:
Sudo/etc/init. d/networking rest
. Therefore, Linux software development, in the hope that under windows with source insight under the editing of sources, in the SECURECRT console with the command line compilation, so it is best to achieve under Windows and Linux file sharing, VMware installed VMware Tools, which itself has settings for shared folders, can be shared.Here's another share: Linux turns on the SMB service, Windows maps the shared directory of Linux
server.
Execute netstat? A 192.168.7.148 (or host name)
Run
Smbclient? L // server
Smbclient \ server \ shared directory
Can access win9x resources, but cannot copy.
Create a directory/mnt/smb and execute
Smbmount \ server \ shared directory/mnt/smb
Attackers can access win9x resources and execute cp commands.
Smbumount/mnt/smb mount point failed.
If you want to
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.