- Joined
- Jun 11, 2019
- Messages
- 5
- Reaction score
- 0
I am trying to recover the administrator password on my 3CX system running on Debian via command line. I want to perform a backup operation of the database so I can read the password from it but I get the error:
root@chlorine:~# sudo -u phonesystem 3CXBackupCmd --help
find: Failed to restore initial working directory: /root: Permission denied
I have added phonesystem to the sudoers file as shown below:
# User privilege specification
root ALL=(ALL:ALL) ALL
phonesystem ALL=(ALL:ALL) ALL
# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL
And here is the entry for phonesystem in /etc/passwd file:
phonesystem:x:999:999::/var/lib/3cxpbx:
Kindly indicate where I am missing it
root@chlorine:~# sudo -u phonesystem 3CXBackupCmd --help
find: Failed to restore initial working directory: /root: Permission denied
I have added phonesystem to the sudoers file as shown below:
# User privilege specification
root ALL=(ALL:ALL) ALL
phonesystem ALL=(ALL:ALL) ALL
# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL
And here is the entry for phonesystem in /etc/passwd file:
phonesystem:x:999:999::/var/lib/3cxpbx:
Kindly indicate where I am missing it