Author Topic: 501 Error even when I am root  (Read 5813 times)

0 Members and 1 Guest are viewing this topic.

REDACTED

  • Guest
501 Error even when I am root
« on: February 22, 2016, 01:47:10 PM »
I am trying to disable my avast and I type my root password in to approve the request. And I get the following errors:

1: You don’t have permission to save the file “501” in the folder “elevation”.
2. Communication with Avast service failed. The operation couldn’t be completed. No such process
3. Configuration error!Configuration failed. See system log for details.
Logs:
2/22/16 6:42:44.792 AM Avast[2775]: Failed to create autorization folder: Error Domain=NSCocoaErrorDomain Code=513 "You don’t have permission to save the file “501” in the folder “elevation”." UserInfo=0x600000867680 {NSFilePath=/Library/Application Support/Avast/run/elevation/501, NSUnderlyingError=0x6000006503e0 "The operation couldn’t be completed. Permission denied"}
2/22/16 6:42:48.194 AM launchservicesd[82]: Application App:"Avast Mac Security" asn:0x0-43043 pid:2775 refs=8 @ 0x7fa909d59560 tried to be brought forward, but isn't in fPermittedFrontApps ( ( "LSApplication:0x0-0x48048 pid=2912 "SecurityAgent"")), so denying. : LASSession.cp #1481 SetFrontApplication() q=LSSession 100004/0x186a4 queue
2/22/16 6:42:48.194 AM WindowServer[128]: [cps/setfront] Failed setting the front application to Avast Mac Security, psn 0x0-0x43043, securitySessionID=0x186a4, err=-13066
2/22/16 6:42:48.213 AM Avast[2775]: Service worker: /Library/Application Support/Avast/run/elevation/501/privileged.sock connect() failed. No such file or directory [2]
2/22/16 6:44:37.719 AM com.apple.launchd[1]: (com.avast.update) Throttling respawn: Will start in 9001 seconds


Self explanatory, I do not have permission but even from my root account? I have disabled my avast plenty of times and this never became an issue until now. Any suggestions on how to get around this? 

Offline krahulik

  • Avast team
  • Sr. Member
  • *
  • Posts: 291
Re: 501 Error even when I am root
« Reply #1 on: February 23, 2016, 03:34:46 PM »
Hello,
  /Library/Application Support/Avast/run/elevation folder should have a sticky bit so the application can create a folder with its uid inside. Could you please check the permissions?

Best Regards,
Martin

ls -l /Library/Application\ Support/Avast/run/
total 32
srw-rw-rw-  1 root  wheel    0 Feb 23 13:14 api.sock
-rw-r--r--  1 root  wheel    5 Feb 23 13:14 avast.pid
drwxrwxrwt  2 root  wheel   68 Feb 23 13:14 elevation
-rw-r--r--  1 root  wheel    6 Feb 23 13:14 fileshield.pid
-rw-r--r--  1 root  wheel    5 Feb 23 13:14 proxy.pid
srw-rw-rw-  1 root  wheel    0 Feb 23 13:14 scan.sock
-rw-r--r--  1 root  wheel    6 Feb 23 13:14 service.pid
srw-------  1 root  wheel    0 Feb 23 13:14 service.sock
drwxrwxrwt  3 root  wheel  102 Feb 23 13:14 update

REDACTED

  • Guest
Re: 501 Error even when I am root
« Reply #2 on: April 23, 2016, 04:14:46 AM »
I'm having a very similar problem and can't make sense of the recommendation below.  The folder destination cited doesn't exist in my Avast installation.  The "run" folder doesn't contain an "elevation" subfolder.

I'm not certain how long this has been happening, but it may have begun upon ugprading to El Capitan 10.11.1

I am unable to perform any of the settings within the Avast control panel due to the same compound errors reported by kraulik.

Please advise.

REDACTED

  • Guest
Re: 501 Error even when I am root
« Reply #3 on: June 14, 2016, 06:32:40 PM »
run the command

ls -l /Library/Application\ Support/Avast/run/

if elevation file is missing, add it to the directory, then check again

it just worked for me!!

then open avast and in settings change the directory with administrator permission