Samba: Server setup..

Posted 三叁

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Samba: Server setup..相关的知识,希望对你有一定的参考价值。

2 days passed, and I finally find it done with samba server.. with utube

to set up a samba server:

1. install samba;

2. add /etc/samba/smb.conf to the tail:

[wwt]  # This is the shared folder name displayed in the guest
    path = /home/wwt # This is the dest folder in the host
    available = yes
    valid users = wwt root # space seperated
    writable = yes
    write list = wwt # users guaranteed to write the folder
    browseable = yes
    public = yes
    workgroup = ADMIN # This line is for windows users to login, no use in linux

3. chcon -t samba_share_t /home/wwt -R

to make all the folder/file be samba_shared.

4. add samba user wwt/root [ the mentioned user wwt in the smb.conf]:

smbpasswd -a wwt
smbpasswd -a root

In linux guest:

smbclient -L 10.0.5.2
smbclient \\\\10.0.5.2\\wwt password

In windows guest:

win-r<CR>
\\10.0.5.2

 

the test finished.

but if want to put into real work circumstances.. we need yum install cifs-utils:

# first install the mount.cifs tool
mount.cifs //10.0.5.2/wwt /mnt/wwt -o user=wwt
# input the password
cd /mnt/wwt
# done..

 

以上是关于Samba: Server setup..的主要内容,如果未能解决你的问题,请参考以下文章

开发环境:vs2017+samba+gdb server

Samba配置Standalone Server

json 单击VSCode的setup.py片段(可能还有其他编辑器)

Microsoft SQL Server 代码片段收集

缺少 SQL SERVER 2014 代码片段

在Linux中samba server的配置