报错信息如下:
[root@localhost data]# mount -t cifs //10.1.1.115/js_htdocs /data/uhtdocs -o username=www
Password:
mount error 13 = Permission denied
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
[root@localhost data]#
我装的是双系统,win7和ubuntu的,现在在ubuntu下用samba共享了文件夹,用户www,samba.conf配置如下:
[js_htdocs]
comment = js_htdocs
#path = /data/htdocs
path = /media/jesse/E/htdocs
public = yes
writable = yes
printable = no
valid users=www
create mask=0777
directory mask=0777
available = yes
browseable = yes
/media/jesse/E/htdocs下是我在win7下的代码,win7磁盘格式ntfs,现在想让一台centos挂载我ubuntu下的/media/jesse/E/htdocs
怎么弄?
fstab下写入挂载信息试试
//10.1.1.115/js_htdocs (我是空格) /data/uhtdocs (我是空格) smbfs (我是空格) username=[username],password=[password] (我是空格) 0