当前位置: 技术问答>linux和unix
关于linux权限问题
来源: 互联网 发布时间:2016-09-29
本文导语: -rwxrwxrwx 1 root root 75 Sep 20 19:26 test.sh [whybee@abc script]$ ./test.sh ./test.sh: cannot create temp file for here document: Permission denied 下面是test.sh里面的内容 ftp -n user abc 123456 rename abc_tmp abc by...
-rwxrwxrwx 1 root root 75 Sep 20 19:26 test.sh
[whybee@abc script]$ ./test.sh
./test.sh: cannot create temp file for here document: Permission denied
下面是test.sh里面的内容
ftp -n user abc 123456
rename abc_tmp abc
bye
!
他说我权限不够 我不知道怎么回事 哪大虾指点小弟一下啊 谢谢
[whybee@abc script]$ ./test.sh
./test.sh: cannot create temp file for here document: Permission denied
下面是test.sh里面的内容
ftp -n user abc 123456
rename abc_tmp abc
bye
!
他说我权限不够 我不知道怎么回事 哪大虾指点小弟一下啊 谢谢
|
顶
创建临时文件通常是在/tmp,看看这个目录的权限如何,是不是被修改过
再看看环境变量TMPDIR的值如何?看那个目录的权限..
|
我昨天晚上跟他测试的时候 把/tmp改chmod 0000 /tmp了
可是他的脚本一样好用