yuanrui / blog

Some notes.
http://yuanrui.github.io
3 stars 0 forks source link

Ubuntu挂载远程共享目录 #65

Open yuanrui opened 6 days ago

yuanrui commented 6 days ago

在终端中执行如下命令:

mount -t cifs //192.168.1.59/home/YuanRui /mnt/YuanRui -o user=YuanRui,password=YuanRui,iocharset=utf8,dir_mode=0777,file_mode=0777

如果想在系统重启后自动挂载共享目录,则需要修改/etc/fstab文件,添加以下信息:

//192.168.1.59/home/YuanRui /mnt/YuanRui cifs rw,user=YuanRui,password=YuanRui,dir_mode=0777,file_mode=0777 0 0