取消
顯示結果 
搜尋替代 
您的意思是: 

"accton: file mode not 0664" problem

"accton: file mode not 0664" problem

當我要啟動accountting

# /usr/sbin/acct/turnacct on

accton: file mode not 0664

我的accton 原先檔案的屬性是

-rwsr-x--- 1 root adm 16640 Oct 17 2002 /usr/sbin/acct/accton

但是改成0664之後

# /usr/sbin/acct/turnacct on

/usr/sbin/acct/turnacct: accton: execute permission denied

請問這是什麼原因



6 回覆

"accton: file mode not 0664" problem

Hi Joey,



> 當我要啟動accountting

> # /usr/sbin/acct/turnacct on

> accton: file mode not 0664

It means the data file "/var/adm/pacct" must be changed to 0664.

> 我的accton 原先檔案的屬性是

> -rwsr-x--- 1 root adm 16640 Oct 17 2002 /usr/sbin/acct/accton

> 但是改成0664之後

> # /usr/sbin/acct/turnacct on

> /usr/sbin/acct/turnacct: accton: execute permission denied

> 請問這是什麼原因

The "/usr/sbin/acct/turnacct" must be set to 0755 for execuation.



Best regards,

Richard.



"accton: file mode not 0664" problem

屬性本來就是0755

# ls -al tu*

-rwxr-xr-x 1 bin bin 3343 Apr 15 2003 turnacct但是還是一樣

# /usr/sbin/acct/turnacct on

/usr/sbin/acct/turnacct: accton: execute permission denied

"accton: file mode not 0664" problem

Hi Joey,



> # /usr/sbin/acct/turnacct on

> /usr/sbin/acct/turnacct: accton: execute permission denied

Please restore the original setting to "4750" on the file "/usr/sbin/acct/accton".



Best regards,

Richard.

"accton: file mode not 0664" problem

# chmod 4750 /usr/sbin/acct/accton

# ls -al /usr/sbin/acct/accton

-rwsr-x--- 1 root adm 16640 Oct 17 2002 /usr/sbin/acct/accton

# /usr/sbin/acct/turnacct on

accton: file mode not 0664

"accton: file mode not 0664" problem

Hi Joey,



>> 當我要啟動accountting

>> # /usr/sbin/acct/turnacct on

>> accton: file mode not 0664

> It means the data file "/var/adm/pacct" must be changed to 0664.



Do you have change the data file "pacct" to 0664 as the previous reply .1?



See this problem from the following reproduction:

/usr/sbin/acct > chmod 777 /var/adm/pacct

/usr/sbin/acct > ./turnacct on

accton: file mode not 0664

/usr/sbin/acct > chmod 0664 /var/adm/pacct

/usr/sbin/acct > ./turnacct on

/usr/sbin/acct > ./turnacct off

/usr/sbin/acct >



Best regards,

Richard.

"accton: file mode not 0664" problem

好奇怪

default install 完後pacct屬性是0644

然怪我accountting 啟動不了

-rw-r--r-- 1 adm adm 0 Feb 25 10:59 pacct