撤消chown和chmod [英] Undo chown and chmod

查看:144
本文介绍了撤消chown和chmod的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Ubuntu的新手.

I'm new to Ubuntu.

我运行了以下命令以将文件保存在htdocs文件夹中(以方便地使用XAMPP进行编程),而无需了解其安全后果:

I ran the following commands to save files in htdocs folder (to conveniently use XAMPP for programming) without understanding its security consequences:

sudo chown username:groupname /opt/lampp/htdocs
sudo chmod 700 /opt/lampp/htdocs

我想撤消htdocs文件夹上的文件权限,使其恢复我运行上述命令之前的权限.

I would like to undo the file permissions (on the htdocs folder) to what it was before I ran the above commands.

非常感谢您的帮助.

推荐答案

我认为无法撤消chown和chmod.但是,您可以在其他任何全新安装的计算机上看到这些文件夹的默认权限,也可以在其他文件夹中再次安装lampp.然后将/opt/lampp/htdocs的chown和chmod权限更改为默认权限.

I think there is no way undo chown and chmod. But you can see default permission of these folder in any other machine which has fresh installation or you can install lampp again in different folder. Then change chown and chmod permissions of /opt/lampp/htdocs to default.

这篇关于撤消chown和chmod的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆