MT7688 Module-based development note 7--adding Samba services to Ubuntu systems

Source: Internet
Author: User

Some Ubuntu systems do not have the ability to share files between Windows and Ubuntu via the virtual machine's folder sharing feature, which can be achieved by installing Samba, the main steps below for reference. After testing, my Ubuntu12.4.2 system has been able to access folders in the Ubuntu system under Windows, and of course Ubuntu12.4.2 is able to access folders in Windows through the virtual machine sharing feature. With this feature, you can share files compiled in Ubuntu to Windows.

First, update the source
[Email protected]:~$ su
Password:
[Email protected]:/home/openwrt# apt-get Update

Ii. Installation of Samba services
[Email protected]:/home/openwrt# apt-get install-y Samba
[Email protected]:/home/openwrt# apt-get install-y SMBFS

Third, create a shared directory, modify directory permissions
[Email protected]:/home/openwrt# mkdir-p/home/sharefiles
[Email protected]:/home/openwrt# chmod 777/home/sharefiles/
[Email protected]:/home/openwrt# ll-d/home/sharefiles/
DRWXRWXRWX 2 root root 4096 May 7 01:59/home/sharefiles/

Four, in order to prevent the Samba configuration file is destroyed, first to the original configuration file to make a backup, and then configure
[Email protected]:/home# Cp/etc/samba/smb.conf/etc/samba/smb.conf.bak
[Email protected]:/home# vi/etc/samba/smb.conf

Add the following content:
[Share]
Path =/home/komy/share
Available = yes
browseable = yes
Public = yes
writable = yes

V. Adding Samba users
[Email protected]:/home/openwrt# touch/etc/samba/smbpasswd
[Email protected]:/home/openwrt# useradd Smbuser
[Email protected]:/home/openwrt# smbpasswd-a Smbuser
New SMB Password:
Retype new SMB Password:
Added user Smbuser.
[Email protected]:/home/openwrt#

Vi. Launch of Samba services
[Email protected]:/home/openwrt#/etc/init.d/smbd Restart
Rather than invoking Init scripts through/etc/init.d, use the service (8)
Utility, e.g. service SMBD restart
Since The script you is attempting to invoke have been converted to an
Upstart job, also use the Stop (8) and then start (8) Utilities,
e.g. stop smbd; Start SMBD. The restart (8) utility is also available.
SMBD stop/waiting
SMBD start/running, Process 8278
[Email protected]:/home/openwrt#
Under Windows Test \\10.117.42.105, you can access the folders in Ubuntu


If you cannot access the permissions issue, please shut down the Linux firewall and secure Linux, restart Linux and test again.

[Email protected]:/home/openwrt# service UFW Stop

[Email protected]:/home/openwrt# apt-get Install selinux-utils
[Email protected]:/home/openwrt# setenforce 0
Setenforce:selinux is disabled

MT7688 Module-based development note 7--adding Samba services to Ubuntu 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.