我需要爲包中的主要目錄之一指定通用屬性,併爲其中一些子目錄賦予特殊權限。例如 %files
%attr(-, myuser, mygroup) /opt/myapp
%attr(750, myuser, mygroup) /opt/myapp/bin # no exec permission to other
/etc # this is the reason I can't use %de
我想創建一個與RHN Satellite的API接口的Python腳本。下面的代碼安排了一個遠程命令,可以立即在指定的服務器上運行(var id)。問題在於Satellite服務器在我指定後的兩個小時內調度命令。我無法找到這發生的地方。 Satellite服務器和客戶端都是RHEL6。這裏是我的代碼: #!/bin/python
import xmlrpclib
from datetime i