QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 930|回复: 2

ROOT口令登陆运行脚本提示权限不足

[复制链接]
发表于 2004-6-7 08:58:46 | 显示全部楼层 |阅读模式
本来想建立一个LINUX服务器下的CS服务器
建立脚本cs.sh
#/bin/bash/
export LD_LIBRARY_PATH=/root/hlds_l:$LD_LIBRARY_PATH
cd /root/hlds_l
/root/hlds_l/hlds_run -game cstrike +port 27015 -insecure +sv_lan 1 +maxplayers 24 +map de_dust2 -nomaster &

当在/root下运行./cs.sh是提示权限不足
请问问题出在那里呢
希望大家能够帮助
发表于 2004-6-7 09:56:31 | 显示全部楼层
给这个脚本赋予可执行的权限!
chmod 777 cs.sh
然后执行就可以了
回复

使用道具 举报

发表于 2004-6-7 18:21:20 | 显示全部楼层
sh ./cs.sh
或者
chmod +x cs.sh
./cs.sh
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-9-20 07:08 , Processed in 0.050352 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表