id=dwmgr,gid=dwmgr
in /etc/fstab
# /etc/fstab: static file system information.#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
#for ZN MFG, to record daily WIP information
//aot-files01/竹南分公司 /mnt/ZNWIPRecord cifs noauto,user,uid=dwmgr,gid=dwmgr,rw,username=xxx,password=yyy,domain=zzz.com.tw,iocharset=utf8,codepage=cp950 0 2
但是以下command仍會收到
dwmgr@aot-dwp01:~$ mount /mnt/ZNWIPRecord
mount error(1): Operation not permitted
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
mount error(1): Operation not permitted
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
解決方式
sudo chmod u+s /sbin/mount.cifs
sudo chmod u+s /sbin/umount.cifs
參考
http://forums.fedoraforum.org/archive/index.php/t-157299.html
沒有留言:
張貼留言