设为首页
收藏本站
用户名
Email
自动登录
找回密码
密码
登录
注册
快捷导航
平台
Portal
论坛
BBS
文库
项目
群组
Group
我的博客
Space
搜索
搜索
热搜:
shell
linux
mysql
本版
用户
LinuxSir.cn,穿越时空的Linuxsir!
»
论坛
›
Unix 技术讨论区 —— LinuxSir.cn
›
BSD 讨论专题
›
为什么我不能使用chmod了??
1
2
/ 2 页
下一页
返回列表
查看:
1008
|
回复:
14
为什么我不能使用chmod了??
[复制链接]
home
home
当前离线
积分
1150
IP卡
狗仔卡
发表于 2003-11-12 15:17:28
|
显示全部楼层
|
阅读模式
Free# ls -ol ch*
-rwxr-xr-x 1 root wheel - 111 11 12 15:29 chkppp
-rwxr-xr-x 1 root wheel - 256 11 1 18:51 chmac
-rwxr-xr-x 1 root wheel - 367 11 1 18:51 chserver
Free# chmod 700 ch*
Free# ls -ol ch*
-rwxr-xr-x 1 root wheel - 111 11 12 15:29 chkppp
-rwxr-xr-x 1 root wheel - 256 11 1 18:51 chmac
-rwxr-xr-x 1 root wheel - 367 11 1 18:51 chserver
奇怪:ask :ask
我是在MSDOS分区的。
回复
使用道具
举报
提升卡
置顶卡
沉默卡
喧嚣卡
变色卡
显身卡
werix
werix
当前离线
积分
513
IP卡
狗仔卡
发表于 2003-11-12 16:07:19
|
显示全部楼层
Can you change filename with this partition?
回复
支持
反对
使用道具
举报
显身卡
rainren
rainren
当前离线
积分
1089
IP卡
狗仔卡
发表于 2003-11-12 17:06:06
|
显示全部楼层
挂载的msdos, ntfs等分区只有root有权限写, 别的用户只能看不能写!
回复
支持
反对
使用道具
举报
显身卡
home
home
当前离线
积分
1150
IP卡
狗仔卡
楼主
|
发表于 2003-11-12 17:11:51
|
显示全部楼层
Free# ls -lo ch*
-rwxr-xr-x 1 root wheel - 111 11 12 15:29 chkppp
-rwxr-xr-x 1 root wheel - 256 11 1 18:51 chmac
-rwxr-xr-x 1 root wheel - 367 11 1 18:51 chserver
Free# whami
bash: whami: command not found
Free# ls -ol ch*
-rwxr-xr-x 1 root wheel - 111 11 12 15:29 chkppp
-rwxr-xr-x 1 root wheel - 256 11 1 18:51 chmac
-rwxr-xr-x 1 root wheel - 367 11 1 18:51 chserver
Free# whoami
root
Free# chmod -R 700 ch*
Free# ls -ol ch*
-rwxr-xr-x 1 root wheel - 111 11 12 15:29 chkppp
-rwxr-xr-x 1 root wheel - 256 11 1 18:51 chmac
-rwxr-xr-x 1 root wheel - 367 11 1 18:51 chserver
Free# mv chmac chmac0
Free# ls chmac0
chmac0
Free#
我是用root的,能改变文件名。这个分区的参数是rw,noauto 0 0
回复
支持
反对
使用道具
举报
显身卡
werix
werix
当前离线
积分
513
IP卡
狗仔卡
发表于 2003-11-12 17:54:58
|
显示全部楼层
....
try this:
touch foo
ls -lrt
chmod a+x foo
chmod ug-rw foo
ls -lrt
and tell us the output of each command.
回复
支持
反对
使用道具
举报
显身卡
木各
木各
当前离线
积分
407
IP卡
狗仔卡
发表于 2003-11-12 19:03:38
|
显示全部楼层
不会吧?什么时候windows分区开始支持*nix的用户权限设定了?
home啊,你好象把版版也绕进去了。~o~
回复
支持
反对
使用道具
举报
显身卡
werix
werix
当前离线
积分
513
IP卡
狗仔卡
发表于 2003-11-12 19:16:34
|
显示全部楼层
Well, linux with xfs does a good file server for w2k (with windows's properties), but I don't know for the versa case and I'm not sure for freeBSD no either, that's why I told him to do a test...
回复
支持
反对
使用道具
举报
显身卡
木各
木各
当前离线
积分
407
IP卡
狗仔卡
发表于 2003-11-12 19:31:57
|
显示全部楼层
我上面的贴子有点太主观了,
刚刚在5.1下面,按版主的方法试了一下,root用户可以去掉或加上自身的w权限,不过也没有用处,rx不可变动。
而且不能改组或其它用户的权限
回复
支持
反对
使用道具
举报
显身卡
home
home
当前离线
积分
1150
IP卡
狗仔卡
楼主
|
发表于 2003-11-12 20:35:22
|
显示全部楼层
我的结果和木各相同,root用户可以去掉或加上自身的w权限
在UFS用ROOT创建的文件,改变了用户,CP到MSDOS分区文件的用户就自动变成了ROOT,奇怪哦!!
看来是MSDOS文件系统不支持这样的功能。
回复
支持
反对
使用道具
举报
显身卡
charley
charley
当前离线
积分
634
IP卡
狗仔卡
发表于 2003-11-12 23:31:16
|
显示全部楼层
这个和mount 分区时候的umask 有关,系统默认的umask=022, mount 的时候指定umask=000 即可。另外这样的分区,我做的时候,都是指定uid=nobody,gid=nobody.
回复
支持
反对
使用道具
举报
显身卡
下一页 »
1
2
/ 2 页
下一页
返回列表
高级模式
B
Color
Image
Link
Quote
Code
Smilies
您需要登录后才可以回帖
登录
|
注册
本版积分规则
发表回复
回帖后跳转到最后一页
浏览过的版块
内核与驱动开发
Linux 基础讨论区(新手速成)
shell进阶应用、shell编程
Gentoo Linux
Ubuntu Linux 专题讨论
Linux发行版 Turbolinux专题
LinuxSir 论坛管理
Redhat/Fedora/CentOS Linux
服务器架设、应用、维护
Copyright © 2002-2023
LinuxSir.cn
(http://www.linuxsir.cn/) 版权所有 All Rights Reserved.
Powered by
RedflagLinux!
技术支持:
中科红旗
|
京ICP备19024520号
快速回复
返回顶部
返回列表