小编bsd*_*bsd的帖子

将非 root 用户拥有的脚本保存在 /etc/init.d 中有多安全?

我有一个应用程序,它作为守护进程运行,并由 /etc/init.d 中的脚本控制
有时我们需要更改这些脚本的启动/控制的一些参数,然后重新启动守护进程。这些脚本只有 root 用户的写权限,所以在编辑这些脚本时我需要 root 权限。

我在想的是,我应该让非 root 用户成为这些脚本的所有者。这样只有 root 和特殊用户才能编辑这些脚本。

在 /etc/init.d 目录下保留一些非 root 拥有的文件是否可以接受?
还是荒谬的,扰乱了系统的自然秩序?

linux init.d

15
推荐指数
2
解决办法
3499
查看次数

如何将 emacs 中止绑定到键

这是来自我的 .emacs 文件中加载的 .el 文件。你怎么认为?

;;; Sun keyboard bindings

;; the below line does not work:
;; when <cancel> is pressed, the minibuffer echoes "Quit"
;; but that is the only thing it does

;; (global-set-key [cancel] 'keyboard-quit)

;; Note: I got the 'keyboard-quit from C-h c and then C-g
;; (C-g is the normal way for me to abort)

;; Those work, so it has probably something to do
;; with the peculiarities of 'keyboard-quit, rather than
;; the …
Run Code Online (Sandbox Code Playgroud)

solaris emacs

2
推荐指数
1
解决办法
329
查看次数

标签 统计

emacs ×1

init.d ×1

linux ×1

solaris ×1