ablog

不器用で落着きのない技術者のメモ

2014-09-21から1日間の記事一覧

一般ユーザーからxentopを実行できるようにする

事象 一般ユーザーで xentop を実行したら、権限がないと怒られた $ /usr/sbin/xentop xc: error: Could not obtain handle on privileged command interface (13 = Permission denied): Internal error xc_interface_open: Permission denied Failed to ini…

tree コマンドをインストールした

今更、マイPC(Oracle Linux 6.4)に tree コマンドがインストールされてないことに気づいたのでインストールした。 # yum install tree

Perlスクリプトから sudo でコマンドを実行する

事象 Perl スクリプトから sudo で xentop を実行したら、 @xentopout = `/usr/bin/sudo /usr/sbin/xentop -bf -i 2 -d 2 2>&1`; 以下の通り怒られた。 sudo: sorry, you must have a tty to run sudo 対処方法 visudo で /etc/sudoers の"Defaults requiret…