linux chmod -R 777 /var/
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/18252936/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
linux chmod -R 777 /var/
提问by Paul Maas
By mistake I give via ssh with root privelege a
我错误地通过 ssh 以 root 权限提供了一个
chmod -R 777 /var/
chmod -R 777 /var/
in stead of
代替
chmod -R 777 var/ for a var folder inside a home directory.
chmod -R 777 var/ 用于主目录中的 var 文件夹。
Now I cannot login again via ssh. I have a resque mode availble.
现在我无法通过 ssh 再次登录。我有可用的 resque 模式。
What to do? Does someone this?
该怎么办?有人这样做吗?
采纳答案by Alma Do
First of, twice check your input while in root mode. Then, you need to restore correct permissions in your ~/.ssh
folder:
首先,在 root 模式下两次检查您的输入。然后,您需要在~/.ssh
文件夹中恢复正确的权限:
chmod 700 ~/.ssh
chmod 644 ~/.ssh/*
And, also, restore your permissions in /var directory as well:
而且,还要在 /var 目录中恢复您的权限:
chmod 755 /var/empty
chmod 755 /var/run