User Management - Security Q & A - FAQ (1) NULL of this site
〖
Back to〗 Forward〗
User Management - Security Q & A (1) Q: On my server, ordinary users can shut down, who wants to shut down, do not mess, do not ask? A: In fact, the user can contact the machine itself, that is, it is impossible to safely, for example, take an ax to cut ... :-) Users can directly turn the power, you have no way, unless it is The dedicated server is not in the chassis. If you know a little man mode, you can change the root password. Q: Very very violent! ! In Mandrake7's highest security selection, users can be restarted with a Ctrl-Alt-delete triple key in the case of contacting the host. And even the root landing is not allowed, you can only be logged in with ordinary users, then SU is root. A: Step 1: Press the power to twist the second step: Note in the inittab The third step of including CtrLaltdel: Set the shutdown command to only Room run Q: How to set the shutdown only to use root users? ============================================================================================================================================================================================================= =========== Q: How to prohibit single user mode A: Mainly, I am busy now, there is no time to try; you don't look at it: In / etc / inittab file, see Single Mode For 1; its launch file is related to /etc/rc.d/rc and /etc/rc.d/rc.local; first try the trial / etc / inittab, will this line L1: 1: Wait: / etc / Rc.D / RC 1 is changed to L1: 1: wait: /etc/rc.d/rc 2, restart; if not, in the implementation below /etc/rc.d/rc, there is a line: # get First Argument. Set New Runlevel to this Argument. ["$ 1"! = ""] && runlevel = "$ argv1" # TELL Linuxconf What Runle WE Are In [-d / var / run] && echo "/ etc / rc. D / RC $ RunLVEL.D "> /VAR/Run/runlevel.dir You add a SHELL program, determine if $ argv1 is 1, do not perform the following operations. Take a look at the documentation of man inittab. Iamafan@263.net responsible editing : Knowledge Base Admin (2001-02-20 14:01)