免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1433 | 回复: 7
打印 上一主题 下一主题

怎样将mount权限给其他用户?? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-02-07 14:54 |只看该作者 |倒序浏览
我想让其他用户也能用mount,这个怎么实现?谢谢了

[ 本帖最后由 tohy 于 2006-2-7 15:11 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2006-02-07 15:21 |只看该作者
修改/etc/fstab文件,例如
/dev/cdrom  /mnt/cdrom  udf,iso9660  noauto,user(即其它用户名),owner.......

论坛徽章:
0
3 [报告]
发表于 2006-02-07 16:23 |只看该作者

现谢谢了,但是还有问题

我在fstab里面添加了一行:
/dev/hda5 /mnt/win vfat noauto,user,owner 0 0
重新起动后其他帐户还是不能用mount命令???
hda5是我的D盘

论坛徽章:
0
4 [报告]
发表于 2006-02-07 17:14 |只看该作者

哪位大哥帮帮忙了

谢谢

论坛徽章:
0
5 [报告]
发表于 2006-02-07 17:17 |只看该作者
/dev/cdrom  /cd  iso9660  ro,user,noauto,unhide
allows any user mount/umount /cd.


/dev/fd0                /mnt/floppy             auto    noauto,owner,kudzu 0 0
allows only the owner of /dev/fd0 to mount/umount /mnt/floppy


My sugguestion:

configure sudo for specific users to be able to mount/umount.

论坛徽章:
0
6 [报告]
发表于 2006-02-07 17:33 |只看该作者
原帖由 tohy 于 2006-2-7 16:23 发表
我在fstab里面添加了一行:
/dev/hda5 /mnt/win vfat noauto,user,owner 0 0
重新起动后其他帐户还是不能用mount命令???
hda5是我的D盘



wrong syntax. "user" & "owner" cannot be coexist.


the following works:
/dev/vg01/lvol1         /aaa                    ext3    noauto,user 0 0

and, no reboot required.

论坛徽章:
0
7 [报告]
发表于 2006-02-07 19:32 |只看该作者
uid=** gid=**

论坛徽章:
0
8 [报告]
发表于 2006-02-08 09:13 |只看该作者
用sudo配置
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP