Creating an account and start Linux only authority authorized to stop

Create an account:
useradd -d / Home / -m Safe Safe 

Password:
passwd Safe

Enter password: x'x'x'x'x'x
re-enter: x'x'x'x'x'x

500 to the account permissions
chmod 500 / home / safe

Each authority to start the program
chmod 500 / opt / tomcat8
chmod 500 / opt / Redis
chmod 500 / usr / sbin / nginx
chmod 500 / etc / nginx

定义属主属组
chown -R safe:safe /opt/tomcat8
chown -R safe:safe /opt/redis
chown -R safe:safe /usr/sbin/nginx 
chown -R safe:safe /etc/nginx

No pro-test pit!

Published 21 original articles · won praise 5 · Views 402

Guess you like

Origin blog.csdn.net/weixin_41762839/article/details/105100413