最近 NFS 挂载会自动卸载。当我检查时,NFS 服务状态显示它正在运行。
[root@hsluasrepo]# service nfs status
rpc.svcgssd is stopped
rpc.mountd (pid 4083) is running...
nfsd (pid 4148 4147 4146 4145 4144 4143 4142 4141) is running...
rpc.rquotad (pid 4079) is running...
[root@hsluasrepo]# service rpcbind status
rpcbind (pid 4203) is running...
[root@hsluasrepo common]# rpcinfo -p 10.80.3.154
program vers proto port service
100000 4 tcp 111 portmapper
100000 3 tcp 111 portmapper
100000 2 tcp 111 portmapper
100000 4 udp 111 portmapper
100000 3 udp 111 portmapper
100000 2 udp …
Run Code Online (Sandbox Code Playgroud) 在 Linux 中如何设置密码来执行命令或脚本?
我需要避免未经授权的用户使用/执行脚本(其中包含用户和密码详细信息)。那么有没有办法设置密码来执行特定的脚本。
security permissions shell-script authorization access-control