码迷,mamicode.com
首页 > 其他好文 > 详细

Samba: Server setup..

时间:2016-11-18 21:36:10      阅读:136      评论:0      收藏:0      [点我收藏+]

标签:eal   windows   cli   sea   and   display   tab   conf   mnt   

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..

标签:eal   windows   cli   sea   and   display   tab   conf   mnt   

原文地址:http://www.cnblogs.com/sansna/p/6078662.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!