Turn: Samba startup and restart and how software Exchange is implemented in virtual and real systems

Source: Internet
Author: User

Transferred from: http://blog.csdn.net/zwhfyy/article/details/1605151

Start

SMB Start

Restart


Root User Login

CHQ_WEB:/ETC/INIT.D #./SMB Restart

Usually we use VMware Workstation to install the system, of course, you a machine two systems, the virtual system and the actual system how to implement software Exchange or transmission? You can use Winiso to make an ISO image of the software you need or the RAR pack, and then load the virtual machine This enables the software transmission of different system environments of different systems. You can also use file sharing or use FTP or QQ, etc. to achieve software transmission, but these three ways than the previous said to do ISO loading slower!
1.WinISO load photographed image (go to Baidu to find Winiso)
2. Using file sharing
3. Using FTP
4. Using QQ (Windows Normal version of QQ and Linux Lumaqq)
Now let's talk about Linux and Windows file sharing:
1. Check if Samba software is installed

Check with the following command: Rpm–q Samba

2, set Samba settings file at:/etc/samba/smb.conf (requires Superuser privileges to modify this file).

To set up a specific shared directory, it is recommended to add a whole unit at the end of the smb.conf file. Typically includes several statements. Here is an example: [Share]
Comment = My share
Path =/home/share
Valid users = Administrator, win2ktest$
public = No
writable = yes
printable = no
Create mask = 0765

Description: Comment: prompt, displayed as a comment on the Network neighborhood of Windows.
Shared directory on Path:linux
Valid users: A user who is allowed to access the Linux shared directory, this user needs to be a Linux samba user
Public: Allow guest access
Writable: Allow user to write
Printable: If set to Yes, it is considered a printer
Create Mask: Permissions for files created on the shared directory
Each shared directory requires a whole unit definition.
After the smb.conf modification is completed, it is recommended to test with Testparm. If run OK lists the service items available for loading, otherwise an error message will be given.
Note: After the smb.conf modification is complete, samba needs to be restarted for the changes to take effect. Execute with Superuser privileges:/sbin/service SMB restart

3,samba User Settings

Execute the following command with Super User privileges:
CAT/ETC/PASSWD |mksmbpasswd.sh〉/etc/samba/smbpasswd

All Linux users can be set as samba users.

Modify Samba User Password
SMBPASSWD username

Add Samba user commands (requires Superuser privileges, the added user must already be a Linux user)
Smbadduser Smbuser:smbpassword


4,samba Start-up

1) Start automatically at Linux startup

Modify/etc/rc.d/rc.local with Superuser privileges
Add a statement at the end of the file as follows:
Service SMB Restart

2) Start Samba with a command
Execute with Superuser privileges:/sbin/service SMB restart

5. View the status of Samba
/sbin/service SMB Status

6, others:
#groupadd-G users
The GROUPADD directive establishes a group in the/etc/group group ID of 100, called Users

#/usr/sbin/useradd-g 100-d/dev/null-c w2ktest-m-s/bin/false w2ktest$

Directive stating:
/usr/sbin/useradd: Create new account instruction and path
-G 100: The ID of the group that the account belongs to is 100
-d/dev/null: The machine account does not establish a home record
-C W2ktest: This is an interpretation
-M: Normally, when you open a new account, the system will set up a home record for the accounts and copy all the files under the/etc/skel. The-m parameters will close the two actions above.
-s/bin/false: This account also does not use the shell
w2ktest$: Account Name

Re-activate your network:

cd/etc/rc.d/init.d/

./network Restart

Sangwan Connection:

Linux and Windows file sharing

Replacing Windows nt/2000 servers with Linux and samba

Let Win2K Pro/svr/xp-pro log into the samba domain

Easy SAMBA Server Setup

Instructions for Linux clients to access Samba servers
The Linux client needs to use the Smbmount or mount instructions when connecting to the Samba/windows file server:
Smbmount//sambaserver/d/mnt/d-o username=aaa,password=bbb
Smbmount//sambaserver/d/mnt/d-o username=aaa%bbb
Mount-t smbfs-o username=aaa,password=bbb//sambaserver/d/mnt/d
Mount-t smbfs-o username=aaa%bbb//sambaserver/d/mnt/d
Smbclient//sambaserver/d-U username%password
Attention:
1. Specify UID or GID parameter, can also specify user's identity (uid= can be followed by UID number or user name), such as:
Smbmount//test/d/mnt/d-o uid=grind
2. Smbmount can also write Mount.smbfs, which is a symbolic link;
3. The parameters of the Smbmount must be written at the end, while the parameter position of the mount can vary;
4. Because the//SAMBASERVER/D format can indicate that the SMBFS is to mount, the-T SMBFS parameter of Mount can be omitted;
5. If the command line does not include the password, the next line will prompt you to enter;
6. After successful smbclient, the FTP similar interface will appear, please follow the FTP.

Turn: Samba startup and restart and how software Exchange is implemented in virtual and real systems

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.