标签:sudo
【资料整理】sudo的使用
编辑: visudo 实例: 赋予user1通过sudo来执行coreseek的2个命令的权限 # visudo user1 ALL=NOPASSWD:/data/svr/coreseek/bin/coreseek_ctl.sh, /data/svr/coreseek/bin/indexer_rotate.sh # su user1 $ sudo /data/svr/coreseek/bin/ crontab_init.sh coreseek_ctl.sh indexer_rotate.sh $ sudo /data/svr/coreseek/bin/indexer_rotate.sh usage: /data/svr/coreseek/bin/indexer_rotate.sh [main|day|merge|all] $ sudo /data/svr/coreseek/bin/coreseek_ctl.sh status root 11526 1 0 Dec16 ? 00:00:04 /usr/local/coreseek/bin/searchd --config /data/svr/coreseek/conf/test.conf
标签:sudo
原文地址:http://nosmoking.blog.51cto.com/3263888/1595241