• windows共享虚拟机ubuntu目录


    1)安装 sudo apt-get install samba

    2)配置文件vi /etc/samba/smb.conf 添加如下

    3)启动服务 sudo service smbd start

    4)windows访问共享目录\192.168.91.130

    设置用户 需要这样设置

      5)将root用户添加到samba用户当中 smbpasswd -a root

      6)修改samba配置文件 vi /etc/samba/smb.conf 文件,在末尾添加

    [smbroot]

       comment = share

       browseable = yes

       writable = yes

       path = /home/karllen

       valid users = root

      7)重启 service smbd restart

    [global]
    workgroup = WORKGROUP
    server string = Ted Samba Server %v
    netbios name = TedSamba
    security = user
    map to guest = Bad User
    passdb backend = tdbsam

    [root]
    comment = share some files
    path = /
    public = yes
    writeable = yes
    create mask = 0644
    directory mask = 0755

    [karllen]
    comment = project development directory
    path = /home/karllen
    valid users = karllen
    write list = karllen
    public = yes
    writeable = yes
    printable = no
    create mask = 0644
    directory mask = 0755

    setenforce 0  (PS:这里是关闭SELinux服务,如果要打开则setenforce 1) 

    vi /etc/sysconfig/selinux 把里边的一行改为 SELINUX=disabled

    关闭防火墙

  • 相关阅读:
    返回一个整数数组中子数组的最大值
    软工概论第二周个人项目四则运算二(改进)
    构建之法阅读笔记01
    单例模式
    .net基础加强
    使用jquery easy ui
    抽象工厂类
    System.Linq.Expressions.Expression
    创建上下文对象
    DBSesson
  • 原文地址:https://www.cnblogs.com/Forever-Kenlen-Ja/p/7821697.html
Copyright © 2020-2023  润新知