今天突然发现!一般用户!!……

由 thunderbird 在 05-30-2003 15:04 发表:

今天突然发现!一般用户!!……

一般用户login 后在自己的目录下,用ls ,可以看到自己的目录如publis_html 等。 然后我用 cd / ,一下子就到根目录了…… 看到了整个LINUX的目录………

这样不是任何用户上来都可以当ROOT用了??? 是不是应该要做什么,让一般用户上来,只在自己的/home/xxx 下??而不可以到 根目录里呢 ??

请哥哥们指教……


由 hyoga 在 05-30-2003 15:12 发表:


可以看不代表可以动啊!如果你自己的东西不想让别人看,可以设置权限如下:chmod 700 /path/yourdir


被国人毁了的四个词:同志,小姐,农民,黑客


由 thunderbird 在 05-30-2003 15:17 发表:


我用一般用户看了文件的内容,可以看到……… 昏

700 是什么意思? 指教………


由 eTony 在 05-30-2003 16:46 发表:


700是权限

-rwx------


Seeking Freedom,pure Freedom!

http://211.92.88.40/~tony/

http://etony.blogone.net/


由 thunderbird 在 05-30-2003 16:47 发表:


一般用户可以上来看文件很不安全啊…………………… 怎么办?


由 hyoga 在 05-30-2003 16:57 发表:


你认为不该给一般用户看的文件,都用chmod 700,这样别人就看不到了


被国人毁了的四个词:同志,小姐,农民,黑客


由 thunderbird 在 05-30-2003 16:58 发表:


除了他自己的目录 /home/xxx ,其它的我都不想让他看到……… 那不烦死`` 要加很多加很多啊……………………………


由 quanliking 在 05-30-2003 17:14 发表:


vi /etc/passwd


There are two distinct opinions:

One would say, "The love of money is the root of all evil."

The other, "The lack of money is the root of all evil."

Which one i should take, that is the question.


由 thunderbird 在 05-30-2003 17:24 发表:


是啊,…… 有太多的要加了……………………………………

我都不知道还有什么洞要补的……………………………


由 Snoopy 在 05-30-2003 18:37 发表:


ftp也一样的,,,比如你能看到/etc/passwd,但你绝对没能力修改它

except root,还有些对系统安全的比如shadow你是没有读能力的


And then in the evening light, when the bars of freedom fall

I watch the two of you in the shadows on the wall

How in the darkness steals some of the choices from my hand

Then will I begin to under


由 hyoga 在 05-30-2003 19:37 发表:


ftp可以限制在自己的目录。但是远程登陆。。。似乎不行。。。

(我不确定)

因为登陆的用户需要用很多/下面的东西。


被国人毁了的四个词:同志,小姐,农民,黑客


由 thunderbird 在 05-30-2003 19:42 发表:


FTP可以限用户在自己的/home/xxx 目录下,在proftpd.conf里 改。


由 baif 在 05-30-2003 21:16 发表:

回复: 今天突然发现!一般用户!!……

> <font face="

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus