sharepoint online – `Get-SPOUser` is denied but `Set-SPOUser` works

Using the credentials for a SharePoint Administrator user (User-X), I can successfully run the Set-SPOUser commands but not the Get-SPOUser command.

PS > Connect-SPOService -Url "https://tenant-admin.sharepoint.com"    # Successful
PS > Get-SPOUser -Site "https://tenant.sharepoint.com/sites/Site-A"   # Unsuccessful
PS > Set-SPOUser -Site "https://tenant.sharepoint.com/sites/Site-A"   # Successful

Here is the error returned from the Get-SPOUser command:

Get-SPOUser : Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

User-X is not a Site Collection Administrator for Site-A but they are a SharePoint Admin for the tenant that Site-A is a part of.

I noticed that when I manually add User-X to Site-A as a Site Collection Admin through the SharePoint Admin Center (or through Set-SPOUser ... -IsSiteCollectionAdmin $true), then I am able to successfully run Get-SPOUser.

Why am I unable to run Get-SPOUser with a SharePoint Administrator?

system – logcat: E QC-QMI : qmi_client [378]: unable to connect to server, errno=[13:Permission denied]

On my Fairphone-2 with Android 9 I had a look into logcat because it is generally unstable since the upgrade to 9 and sometimes gets hot and drains battery like hell. Today I saw this:

378   395 E QC-QMI  : qmi_client (378): unable to connect to server, errno=(13:Permission denied), attempt=60
395   395 W thermal-engine: type=1400 audit(0.0:1056): avc: denied { dac_override } for capability=1 scontext=u:r:thermal-engine:s0 tcontext=u:r:thermal-engine:s0 tclass=capability permissive=0    378   395 E QC-QMI  : qmi_client (378): unable to connect to server after 60 tries... giving up
378   395 E QC-QMI  : qmi_qmux_if_pwr_up_init_ex:  Initialization failed, rc = -1
378   395 E QMI_FW  : QMUXD: WARNING qmi_qmux_if_pwr_up_init failed! rc=-1

The first type of message comes in every second for 1 minute, then the fail is reported, then it starts over.

Any hints appreciated about:

  1. what is qmi_client, possibly WIFI?
  2. which permission could that be, some device or a network endpoint?
  3. which server could that be or is this just any server requested by some app?
  4. can this be somehow related to that thermal-engine, the message of which consistently comes along each time and 378 is actually the PID of the thermal-engine. What is it and why would it want to connect anywhere?

system – catlog: E QC-QMI : qmi_client [378]: unable to connect to server, errno=[13:Permission denied]

On my Fairphone-2 with Android 9 I had a look into logcat because it is generally unstable since the upgrade to 9 and sometimes gets hot and drains battery like hell. Today I saw this:

378   395 E QC-QMI  : qmi_client (378): unable to connect to server, errno=(13:Permission denied), attempt=60
395   395 W thermal-engine: type=1400 audit(0.0:1056): avc: denied { dac_override } for capability=1 scontext=u:r:thermal-engine:s0 tcontext=u:r:thermal-engine:s0 tclass=capability permissive=0    378   395 E QC-QMI  : qmi_client (378): unable to connect to server after 60 tries... giving up
378   395 E QC-QMI  : qmi_qmux_if_pwr_up_init_ex:  Initialization failed, rc = -1
378   395 E QMI_FW  : QMUXD: WARNING qmi_qmux_if_pwr_up_init failed! rc=-1

The first type of message comes in every second for 1 minute, then the fail is reported, then it starts over.

Any hints appreciated about:

  1. what is qmi_client, possibly WIFI?
  2. which permission could that be, some device or a network endpoint?
  3. which server could that be or is this just any server requested by some app?
  4. can this be somehow related to that thermal-engine, the message of which consistently comes along each time and 378 is actually the PID of the thermal-engine. What is it and why would it want to connect anywhere?

python – Error reading data from MySQL table 1227 (42000): Access denied; you need (at least one of) the SYSTEM_USER privilege(s) for this operation

I am connected to the MySQL database in Python using the (MySQL Connector) Python module in jupyter notebook. I can perform operations for example creating a table or reading data from a table. In the following code, I want to create a view but before creating a view first I want to make sure that the database doesn’t have the view if it has I want to drop it.

import mysql.connector as con
try:
    connection = con.connect(host = 'localhost',
                             database='mydb',
                             user='***',      # my user name is also correct
                             password='****') # my password is correct
    
    create_view_query = """
    drop view if exists chicago_public;
    create view chicago_public as
    select NAME_OF_SCHOOL as school_name,Safety_Icon as afety_rating,
    Family_Involvement_Icon as family_rating,
    Environment_Icon as environment_rating,
    Instruction_Icon as instruction_rating,
    Leaders_Icon as leaders_rating,
    Teachers_Icon as teacher_rating
    from CHICAGO_PUBLIC_SCHOOLS;
     """
    
    cursor = connection.cursor()
    cursor.execute(create_view_query)
    print("View created succussfully.")
    
except con.Error as e:
    print("Error reading data from MySQL table",e)
finally:
    if connection.is_connected():
        connection.close()
        cursor.close()
        print("MySQL connection is closed")

But when I run this query from jupyter notebook I am getting the following error.

Error reading data from MySQL table 1227 (42000): Access denied; you
need (at least one of) the SYSTEM_USER privilege(s) for this operation

Please help me with this how to solve this problem.
Thank you in advance.

Access denied for user ‘root’@’localhost’ to database ‘information_schema’

I am trying to delete all the events in mysql DB using the root login , however the deletion query returns the error message:

Access denied for user ‘root’@’localhost’ to database ‘information_schema’

Please guide.

Evolution: “Cannot create folder lock on /var/mail/root: Permission denied”

I’m trying to set up Evolution to read system mail using what it calls the “standard Unix mbox spool file” account type. It reads regular user mail without a hitch, but gives me this error for root. The weird part is that Evolution lists message headers correctly but can’t access message contents for some reason – in the same text file!

What I checked already:

  1. The file looks sensible when listed with sudo cat /var/mail/root.
  2. The file belongs to group mail and has group read permission set.
  3. The user Evolution runs under is in mail group too.

Some help would be appreciated.

Permission denied fondo

how to delete fondo wallpaper app in ubuntu from home page .when I click on Move to trash
=Error removing file enter image description here

enter image description here

enter image description here
enter image description here

command line – Bash Script Permission Denied when tying to run

I am aware that there are similar posts but I have followed what they have done but continue to get the same problem of permission denied when trying to execute my bash script.

I modified my files with command for example:

chmod u+x bash_script1.sh 

and obtained the following after:

-rwxr--r-- 1 user group 1947 Jun 18 16:04 bash_script1.sh
-rwxr--r-- 1 user group 2430 Jun 18 15:59 bash_script2.sh
-rw-r--r-- 1 user group    1 Jun 18 10:57 runs.txt

However, I continue to get the following error:

-sh: ./bash_script1.sh: Permission denied

When I run the following command below, I don’t get the error but I don’t want to use bash to run my script:

bash bash_script1.sh

#!/usr/bin/env bash is placed at my heading