Install samba on Linux 16.04 LTS

suggeted reading:

1. man smb.conf

2. man smbpasswd

Steps:

do the following commands

sudo apt-get install samba

cd /etc/samba

sudp cp smb.conf smb.conf.bak

sudo vim /etc/smb.conf

In the file smb.conf, find section [homes], uncomment and modify the related lines, you will get the following lines in [homes] section:

comment = Home Directories
   browseable = yes

read only = no

create mask = 0775

directory mask = 0775

If you are a linux user, let‘s say, with name ‘abc‘, when you connect this linux PC with samba, you shall also use the same name, which is ‘abc‘. This will allow you to access your home directory in your linux PC.

Suppose your user name is ‘‘abc‘,  you need to do:

sudo smbpasswd -a abc

This command will allow you to add a samba user as well as to set the password for samba.

Then do the following command to enable the user:

smbpasswd -e abc

Now, in your windows pc, you can connect \\[ipaddress]\abc, supplying the user name and the password. Then you will be able to access your home directory.

That should be done for most of the users. But you may not be satisfied with the full home directory open to the connected user

If your you want to limit your accessible directory other than the default one, you can add one more line in your [homes] section(suppose you have a directory named ‘WORKDIR‘):

path = %H/WORKDIR

Here, in samba‘s language, %H means the home directory of the linux user.

时间: 2024-10-14 04:10:52

Install samba on Linux 16.04 LTS的相关文章

Install Mariadb in Ubuntu 16.04 LTS

MariaDB官网提供了repository https://downloads.mariadb.org/mariadb/repositories/#mirror=tuna 在这里可以查询到各类系统的安装方法,这里仅对Ubuntu 16.04 LTS讲解. add key sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8 add sources sudo sh -c

Install Atom in Ubuntu 16.04 LTS

Atom是一款现代化,平易近人的文本编辑器,它可以嵌入到内核中 - 这个工具可以自定义做任何事情,但也可以有效地使用,而无需触摸配置文件.这里讲解它在Ubuntu 16.04 Desktop LTS环境中基于ppa模式的的安装过程. add ppa apt add-repository ppa:webupd8team/atom update apt update install sudo apt-get install atom 原文地址:http://blog.51cto.com/qwfys2

Install Chrome in Ubuntu 16.04 LTS

add key wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - add sources sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' upda

Install Docker in Ubuntu 16.04 LTS

add key sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D add sources sudo apt-add-repository 'deb https://apt.dockerproject.org/repo ubuntu-xenial main' update apt update install a

Ubuntu 16.04 LTS软件包管理基本操作使用APT简化命令行下面我们列出 Ubuntu 16.04 LTS 中使用 ATP 命令与老版本 Ubuntu 中软件包管理的用法对比: Ubuntu 16.04 LTS 老版本Ubuntu apt install 包名 替代 apt-get install 包名 apt remove 包名 替代 apt-get remove 包名 apt se

前文 Ubuntu 16.04 新特性中我们已经介绍过,随着 Ubuntu 16.04 LTS 的发布,Ubuntu 的软件包管理命令也发生了变化,新系统采用了 Debian 项目中所使用的 APT(Advanced Package Tool)来完成各种的不同的任务,ATP 命令全面取代了我们之前在 Linux 软件包管理基本操作入门中所介绍的 apt-get.apt-cache 等功能. ATP 在创建之初便是为了解决大量软件包管理所遇到的问题,希望结束类似 Linux 早期系统依赖的一大弊病

Install LEMP (Linux, Nginx, MySQL and PHP) Stack on Ubuntu Linux 14.04 LTS(转)

Install LEMP (Linux, Nginx, MySQL and PHP) Stack on Ubuntu Linux 14.04 LTS Nginx Installation Nginx is one of the robust web server in Linux world. Nginx is a free, open source, high performance HTTP server and reverse proxy, as weell as an IMAP/POP3

Install Postgresql 10 In Ubutnu 16.04 LTS

PostgreSQL数据库是一个高性能的全功能的开源关系型数据库,这里讲解一下如何在Ubuntu 16.04 LTS 下安装 PostgreSQL 10. 添加软件源 wget -q -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)

[Android 编译(一)] Ubuntu 16.04 LTS 成功编译 Android 6.0 源码教程

本文转载自:[Android 编译(一)] Ubuntu 16.04 LTS 成功编译 Android 6.0 源码教程 1 前言 经过3天奋战,终于在Ubuntu 16.04上把Android 6.0的源码编译出来了,各种配置,各种error,各种爬坑,特写此博客记录爬坑经历.先上图,Ubuntu上编译完后成功运行模拟器,如图: 2 编译环境 UbuntuKylin 16.04 LTS Android 6.0_r1 Open JDK 7 3 准备工作 (1) 下载android 6.0源码.

在 Ubuntu Server 16.04 LTS 上安装 LAMP

在 Ubuntu Server 16.04 LTS 上安装 LAMP LAMP 方案是一系列自由和开源软件的集合,包含了 Linux.Web 服务器 (Apache). 数据库服务器 (MySQL / MariaDB) 和 PHP (脚本语言). LAMP 是那些需要安装和构建动态网页应用的基础平台,比如WordPress.Joomla.OpenCart 和 Drupal,我将描述如何在 Ubuntu Server 16.04 LTS 上安装 LAMP,众所周知 Ubuntu 是一个基于 Lin