label: Linux SCP sshpass unique CT 1. sshpass enables SSH to remember the password for SSH Automatic Login (1) install sshpasssudo apt-Get install sshpass.pdf download sshpass-1.05.tar.gz shell> tar xvf sshpass-1.05.tar.gzshell> Cd sshpass-1.05shell> make make install (2) test shell>/usr/local/bin/sshpass-P password SSH [email protected] (3) setting to avoid pub
Article Title: Access to Windows File Sharing in linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
[Root @ localhost ~] # Rpm-q samba-client
Samba-client-3.0.28-0.el5.8
[Root @ localhost ~] # Smbclient-L 192.168.0.7-U Administrator
my centos 6 Yes livecd installed with very few items by default, except perl , python , Lua and bash nothing else, even join make , GCC must be installed on your own. To enable samba the procedure is as follows:
1Preferred InstallationSambaThe command is as follows:
YumInstall samba
2, Modify the configuration file
File:/etc/samba/smb. conf
Add a row or locateSecu
File sharing between linux and host windows in virtual machines-General Linux technology-Linux programming and kernel information. for details, see the following. Many methods are used, such as virtual machine mounting and samba! Maybe because I am a newbie, I am not very clear about samba and other issues in linux! Haha! So I want to find a way to be lazy! Finally, I finally found a software that I thought
accessible. Also, if I want root to be a file that is rooted, how do I design a file?For:
[[email protected] ~]# vim/etc/exports# Anyone can use my/tmp, with all the characters to deal with the name of the machine, the key point in the no_root_squash/tmp * (Rw,no_root_squash)
The name of the host can be used
1 Installation
sudo apt-get install Samba
2 Configuration
Open the Samba configuration file:
Vim/etc/samba/smb.conf
At the end of its add:
[Share]
Path =/home/liyihai/share
available = yes
browseable = yes public
= yes
writable = yes
3 Creating a shared directory
mkdir ~/share
chmod 777 ~/share
4 Creating a Samba user
sudo touch/etc/samba/smbpasswd
sudo smbpasswd-a LiyihaiEnter the user's
OK;
4) In the guest machine settings of virtualbox manager, click Settings> data space to set and select a directory on the host machine for sharing, as shown in:
5) It is relatively simple to set the shared directory with the host in WINXP. the settings for starting Win XP Guest are as follows:
6) install the shared directory in virtual-ubuntu,
6.1) Select Nat network settings and virtual images (select the Virtual Machine enhancement feature pac
=" Wkiom1tu_nlhd3slaabo5iklh6c697.jpg "/>To turn off firewall features:650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/59/80/wKioL1TU_2DjAaUzAACgqIkMGiM583.jpg "style=" float: none; "title=" 8.png "alt=" Wkiol1tu_2djaauzaacgqikmgim583.jpg "/>Second, a user-authenticated share is required:To add a Samba user and set a password:650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/59/80/wKioL1TU_2CjDngRAACBSZ4Udkg904.jpg "style=" float:
the network user's account:Code : sudo smbpasswd-a new (Set your New password, this password is not used on the boot login, is you want to access WIN Share files or WIN The password to be filled in when the shared file accesses you) sudo gedit/etc/samba/smbusersAdd the following line to the newly created
can be customized) # mkdir/home/share # chmod-R 777/home/share # If you do not change the permission, you cannot write data in windows (applicable to read-only sharing )!!! 3) modify the Samba configuration file: # cp/etc/samba/smb. conf/etc/samba/smb. conf. bak # back up the samba configuration file # gedit/etc/samba/smb. conf. find "# security = user" and chan
1. Complete the logon page (go to the notepad file to verify the password and user name ).
Code in ASP:
Code in the method:
Protected void button#click (Object sender, eventargs E){String [] lines = file. readalllines ("password.txt ");String username = username. value;String
1 installationsudo apt-get install Samba2 configurationOpen the Samba configuration file:Vim/etc/samba/smb.confAt the end of its add:[Share]Path =/home/liyihai/shareAvailable = yesbrowseable = yesPublic = yeswritable = yes3 Creating a shared directorymkdir ~/sharechmod 777 ~/share4 Creating a Samba usersudo touch/etc/samba/smbpasswdsudo smbpasswd-a LiyihaiEnter the user's password as prompted (required when logging in to the Samba shared directory).5
Tags: smbd tab Samba service map/etc table writable address apt1. Installing Sambasudo apt install-/etc/samba/smb.conf /etc/samba/smb.conf.bak2. Create a folder and modify permissionssudo mkdir /var/-R /var/wwwor sudo chown-r your_name:root /var/www3. Add a password for the samba user (installing Ubuntu will have a user who is yourself like Lucy)sudo smbpasswd-a Lucy //will prompt for a password, re
Embedded entry-linux File SharingEmbedded entry-linux File Sharing 1. Prerequisites for file sharing1 linux and win ping each other2. Disable the linux Firewall/etc/init. d/iptables stop.2. WinSCP connection Three connections to samba1 install samba: yum install samba2. Add User: useradd win3. Set
Phpmyadmin logon prompts that a phrase password is required for the configuration file. The phrase password is phpmyadmin. to prevent confusion during multiple logins, we need to configure config. sample. inc. in php, $ cfg [blowfish_secret] refers to the phrase password. below I will give it to phpmyadmin. to prevent
Today, a funny thing happened, a friend issued a password-protected zip file to me, but do not give me the password, I wonder how this can ' guess ' to the password?After a series of attempts, we finally use Python to ' guess ' the passw
The file modification under the system directory is to enter the apple passwordCommon scenarios: Adding files or modifying files under the Apache project directoryThe solution is as follows:1 found you want to make the file under the folder changes without entering the password (it is best not to set the whole system, you can change the wrong, the whole computer
The new version of phpMyAdmin enhances security and requires a phrase password to be set in the configuration file. Otherwise, there will be "
configuration file now requires a phrase password"The red Alert sighs.
Workaround:
1, the phpmyadmin/libraries/config.default.php in the
$cfg [' blowfish_secret '] = '; Change
In the Linux ' development process, it is often necessary to share files with Windows, and the Samba server can accomplish this task.Premise 1:windows can ping Linux systemPrerequisite 2: Turn off the Linux firewallI. First install the Samba server, install the package I have uploadedTwo. Then create the user, note that this user is behind the user to log on to the Samba server, I am here smb.Three. Set the password for the user to log in to the Samba
1. Password-protected. htaccess file
Although there are all kinds of. htaccess usage, the most popular and perhaps most useful practice is to use it for secure password protection in the Web site directory. Although Javascrip can do so, only. Htaccess has the perfect security (that is, visitors must know the
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.