[root@ufuso ~]# mount -t cifs 172.31.254.51:/fs /mnt/fs -o username=xxxxxxxx WARNING: using NFS syntax for mounting CIFS shares is deprecated and will be removed in cifs-utils-6.0. Please migrate to UNC syntax. ← WARNINGが出た。 172.31.254.51:/fsはWindows FileServer's IP:folder、 /mnt/fsはmount先のfolder、 -oはoption、 usernameはFileServerでのyour-user-name Password: ← FileServerでのyour-Password. mount is ok [root@ufuso ~]# which mount.cifs ← mount.cifsがあるか確認 /sbin/mount.cifs ← あった [root@ufuso ~]# yum install samba-client ← mount.cifsが無ければこれをinstall [root@ufuso ~]# mount -t cifs -o username=xxx,password=xxx,uid=xxx,gid=xxx,file_mode=0700,dir_mode=0700 //172.31.254.51/fs /mnt/fs ← usernameとpasswordはWindows fileserver上のあなたのそれ。uidはcentos上のyour- user-name,gidはcentos上のyour-group-name ← No Warning |
コメントを残す