Ubuntu10.10 configure the Samba server

Source: Internet
Author: User
System Platform: virtualbox3.2.10 + Ubuntu10.10 first, you must solve the network connection problem between windows and linux: In the vbox "Settings" option, set "network" network connection 1 and select "enable network connection: NAT network connection 2 select "enable network connection": BridgedAdapter to start ubuntu, view IP Address: # ifconfigeth0 note

System Platform: virtualbox3.2.10 + Ubuntu 10.10

First, we need to solve the network connection problem between windows and linux:
In the vbox "set" option, set "network"
Network Connection 1 select "enable network connection": NAT
Network Connection 2 select "enable network connection": Bridged Adapter

Start ubuntu and check the IP Address: # ifconfig eth0
Note: Your LINUX may have two NICs, eth0 and eth1. Check their IP addresses respectively, one of the IP addresses is in a CIDR Block with your WINDOWS Local Connection (use this IP address to log on to samba later) [LINUX community www.LinuxIDC.com]

Let's talk about the IP Address Configuration (taking my own computer as an example ):
I access the Internet with an ADSL dial. the IP address of the local connection to windows is automatically obtained. The IP address is 192.168.169.45.
Check whether the IP address of eth0 in linux is 10.0.2.15 and the IP address of eth1 is 192.168.169.42.
Eth1 is the IP address of the linux local connection, that is, the IP address of the samba server.

Run the following command to disable the LINUX Firewall: # ufw disable

Note: ufw is a firewall operation command in linux. You can view the Command help for related operations.

Then ping the linux IP address in windows. If the IP address can be pinged, continue with the following content. If the IP address cannot be pinged, find the cause.

Note: Ubuntu 10.10 has installed the latest samba server. If you use a version earlier than version 10.10, it is best to upgrade samba as follows. Version 10.10 does not require the following operations:

Uninstall samba, smbclient, and samba-common
$ Sudo apt-get remove samba-common
$ Sudo apt-get remove smbclient
$ Sudo apt-get remove samba

Install the Ubuntu samba server:
Sudo apt-get install samba
Sudo apt-get install smbfs

Start Configuration:

Samba configuration file:/etc/samba/smb. conf
You can modify the configuration file to set samba sharing and users.
If you are not used to using the configuration file, you can also use the graphical interface.

Install the Ubuntu samba graphic Management Interface
# Sudo apt-get install system-config-samba

Start the samba graphic Management Interface
# Sudo system-config-samba

You can also choose system> Administration> Samba.

The configuration method is the same as that in RedHat9.
Select the directory to be shared, set read/write permissions, set access permissions, and add samba users

Restart samba after configuration.
# Sudo/etc/init. d/smbd restart

If the restart succeeds, you can access samba in windows now! Wish you success!

Related Article

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.