[英]add write access to user ubuntu - shared folder cifs-utils
I have folder in /media on ubuntu - shared from windows via fstab and cifs-utils.我在 ubuntu 的 /media 中有文件夹 - 通过 fstab 和 cifs-utils 从 windows 共享。 Can I share this folder to other user: "miki" (not root)我可以将此文件夹共享给其他用户吗:“miki”(不是 root)
root@localhost:/media#
drwxr-xrwx 4 root root 4096 Nov 15 12:21 .
drwxr-xr-x 23 root root 4096 Nov 14 06:34 ..
drwxr-xr-x 2 padm root 0 Nov 15 09:34 Archive
drwxr-xrwx 2 root root 4096 Feb 25 2019 kekik
I have try with:我尝试过:
root@localhost:~# sudo chmod -R 757 /media/Archive/
but get:但得到:
chmod: changing permissions of '/media/Archive/': Permission denied
Find a solution: need to modify /etc/fstab by changing:找到解决办法:需要修改/etc/fstab,改:
//windowsServer/Archive /media/Archive cifs username=wundowsuser,password=somepass,uid=1000,iocharset=iso8859-1,rw,file_mode=0777,dir_mode=0777,vers=1.0 0 0
and change group of folder (must umont it first!)并更改文件夹组(必须先删除它!)
sudo umount -l /media/Archive
sudo chown miki:miki /media/Archive/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.