logrotate su
时间: 2023-09-09 08:10:44 浏览: 158
在logrotate中,"su"是一个选项,用于指定在进行日志轮转操作时要使用的用户。它允许您设置轮转后文件的所有权和权限。在引用中的例子中,"su root"表示在轮转后要将文件的所有权和权限更改为root用户。这样做可以确保只有root用户才能访问和修改轮转后的日志文件。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [logrotate 文件切割 权限问题](https://blog.csdn.net/xiaojin21cen/article/details/122449124)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [docker-logrotate:Dockerfile 构建轻量级 logrotate 容器镜像](https://download.csdn.net/download/weixin_42168745/19673803)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [Linux日志文件总管——logrotate](https://blog.csdn.net/sinat_24044957/article/details/113694881)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文