[i=s] 本帖最后由 jujuju123 于 2011-6-18 19:25 编辑 [/i]
编写一个SHELL程序实现LINUX文件权限管理:
(一),实现菜单操作;
(二),能对任何文件进行所有者,同组用户,其他用户的读、写、执行权限修改。
需要完整代码 小弟跪求各位大虾指教
ifexit=1
while [ $ifexit -eq 1 ]
do
echo "1. owner"
echo "2. group"
echo "3. other"
echo "4. done"
read choice
case $choice in
"1")
read -p "Please input the number:" xy1
;;
"2")
read -p "Please input the number:" xy2
;;
"3")
read -p "Please input the number:" xy3
;;
"4")
chmod $xy1$xy2$xy3 $zxc
esac
done
这是大概的部分,有错误。请求帮忙补充修改一下。
397778823 于 2011-06-19 21:20:23发表:
迷糊
wangyu 于 2011-06-19 14:13:51发表:
没高手帮你只怪你心不诚。刚刚午睡的时候马克思托梦说你根本没跪
jujuju123 于 2011-06-18 19:02:40发表:
没人回答么 高手快出现吧
yanyongkg 于 2011-06-18 14:48:45发表:
[code]line 2:where ==> while
line 12::: ==> ;;[/code]
xzha2231 于 2011-06-18 11:29:21发表:
不错
sloepx 于 2011-06-18 08:54:58发表:
不是高手