Unable to load access control list: Is a directory

MARCELO PINHEIRO MACHADO

Active Member
Mar 16, 2019
4
0
41
40
Good Morning!
I need to create a user via script, but after creating it using the following command

pveum user add newuser@pam
useradd -s /bin/bash -d /home/newuser -m --non-unique --uid 0 newuser
pveum acl modify / --roles Administrator --users newuser@pam
pveum passwd newuser@pam -password newpw01@

the user works, I can log in to the web interface, via the shell, only when I run the command with the account I created

root@PVE01:/var/lib# qm list
ipcc_send_rec[1] failed: Is a directory
ipcc_send_rec[2] failed: Is a directory
ipcc_send_rec[3] failed: Is a directory
Unable to load access control list: Is a directory

if you need to add another permission, it would have to be done by shell.

Thank you very much in advance!
 
Most of the command line tools are currently root only.

You could use programs like sudo or doas as a workaround.
 
I have a script that uses /usr/bin/pvesubscription, where I encountered the same error. This is a Zabbix monitoring script. The response from MarkusF provided the key I needed to resolve my issue.

Created a /etc/sudoers.d/zabbix file with the following content.
Bash:
zabbix ALL=NOPASSWD:ALL
I hope that this helps in some small way.
 
Paulc's solution is working, the idea is to add that user into sudo group, you can also configure it not to ask for sudo password, the only issue I'm still seeing is the tab autocompletion is not working, if you press tab key to auto complete a cmd like root user, still got below error, haven't figured out the solution, appreciate any help.

ipcc_send_rec[1] failed: Is a directory
ipcc_send_rec[2] failed: Is a directory
ipcc_send_rec[3] failed: Is a directory
Unable to load access control list: Is a directory
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!