• linux挂载windows上的共享文件夹


    假定win机d:/folder/share的共享名为 share , 有用户administrator ,密码123
    在linux机上,把share挂到/mnt目录:
    mount -t cifs -o username=administrator,password=123 //192.168.0.11/share /mnt
     
    权限命令
    mount -t cifs -o username=yyauto,password=RDerp2015,uid=oracle,gid=oinstall //192.168.234.22/ERPbackup /mnt/ERPbackup
     
    编辑/etc/fstab   ,再这个里面挂载你的windows共享目录,每次开机之后他会自动挂载的。具体的挂载方法可以按照fstab目录下面的格式来挂载。
    //192.168.234.22/ERPbackup     /mnt/ERPbackup    cifs     username=yyauto,password=RDerp2015,uid=oracle,gid=oinstall     0     0
    保存后退出,并使用mount -a查看,或重启系统
     
    取消挂载
    umount //16.187.190.50/test 
  • 相关阅读:
    线段树
    数学建模中的excel操作
    POJ 3666 Making the Grade
    POJ 1742 Coins
    CF 55D
    POJ 3280 Cheapest Palindrome
    牛客 处女座与复读机
    牛客 处女座的约会
    牛客 小a与星际探索
    POJ 2229 递推
  • 原文地址:https://www.cnblogs.com/willsun8023/p/5071159.html
Copyright © 2020-2023  润新知