Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

OCI: Incorrect permissions on pacct file

Applies To:

Oracle Cloud Infrastructure - Version N/A and later
Linux x86-64

Symptoms:

Users are able to list and run ”lastcomm” command that should be disallowed by default.

[opc@hostname]$ lastcomm | head
lastcomm opc pts/0 0.01 secs Sun Dec 8 08:46
bash F opc pts/0 0.00 secs Sun Dec 8 08:46
bash F opc pts/0 0.00 secs Sun Dec 8 08:46
id opc pts/0 0.00 secs Sun Dec 8 08:46
bash F opc pts/0 0.00 secs Sun Dec 8 08:46
[opc@hostname]$

Cause:

Incorrect permissions on the “pacct” file:

[opc@hostname]$ sudo ls -ld /var/account
-rw-r--r--. 1 root root 142464 Dec 8 08:50 /var/account/pacct
[opc@hostname]$

Solution:

  • Reset the permissions on the files in the “psacct” package.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!