You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
822 B

7 years ago
dpkg-statoverride
===
6 years ago
7 years ago
Debian Linux中覆盖文件的所有权和模式
6 years ago
## 说明
7 years ago
5 years ago
**dpkg-statoverride命令** 用于Debian Linux中覆盖文件的所有权和模式让dpkg于包安装时使得文件所有权与模式失效
7 years ago
5 years ago
## 选项
7 years ago
```
dpkg-statoverride(选项)
```
6 years ago
7 years ago
```
5 years ago
-add为文件添加一个改写
--remove为文件删除一个改写
--list显示所有改写列表
--update如果文件存在则立刻执行改写操作
7 years ago
```
5 years ago
## 实例
7 years ago
修改文件夹的权限属性:
```
sudo dpkg-statoverride --update --add nagios nagios 751 /var/lib/nagios3
```
强制修改文件夹的权限属性:
```
sudo dpkg-statoverride --force --update --add root sasl 755 /var/spool/postfix/var/run/saslauthd
```
将文件从数据库中删除:
```
sudo dpkg-statoverride --remove /usr/bin/wall
```