← Back to team overview

enterprise-support team mailing list archive

Re: [Question #214401]: error: /var/lib/dpkg/info/samba4.postinst: 14: /var/lib/dpkg/info/samba4.postinst: /usr/share/samba/setoption.pl: Permission denied subprocess installed post-installation script returned error exit status 126 in Ubuntu 12.04 LTS

 

Question #214401 on samba4 in Ubuntu changed:
https://answers.launchpad.net/ubuntu/+source/samba4/+question/214401

Joshua posted a new comment:
Here's a step-by-step approach to resolve this issue:

Check Permissions of the Script: First, ensure that the setoption.pl
script has executable permissions. You can do this by running the
following command in the terminal:

ls -l /usr/share/samba/setoption.pl
Check the permissions in the output. If the execute permission is missing, you will need to add it by running:

sudo chmod +x /usr/share/samba/setoption.pl
Run the Post-installation Script with Sudo: Sometimes, running the post-installation script with superuser privileges can resolve the issue. Keep in mind that this should be done with caution and understanding of the script's operations. Run the following command:

sudo /var/lib/dpkg/info/samba4.postinst configure
Check for Ownership: Ensure that the setoption.pl script is owned by the root user and the root group. To check the ownership, run:

ls -l /usr/share/samba/setoption.pl
To update the ownership, use the chown command:

sudo chown root:root /usr/share/samba/setoption.pl
Fix Broken Packages: The package installation may have been interrupted. Use the package manager to fix this:

sudo apt-get install -f
Reconfigure the Package: If the permissions are correct, try reconfiguring the package:

sudo dpkg --configure -a
Upgrade Your System: Ensure your system has all the latest updates, as the error might be due to a bug that has been fixed in a later version:

sudo apt-get update
sudo apt-get upgrade
You may not receive updates since you are on Ubuntu 12.04 LTS, a very old release and no longer supported. It is strongly recommended to upgrade to a more recent version of Ubuntu.

Check for SELinux/AppArmor: On some systems, security modules like
SELinux or AppArmor could prevent scripts from executing. Check their
configurations if they are in use.

Consult the Logs: Additional information can often be found by looking
at the logs, particularly in /var/log/syslog or specific logs in
/var/log/samba/.

https://sassastatuscheckbankingdetails.co.za/

-- 
You received this question notification because your team Ubuntu
Server/Client Support Team is an answer contact for samba4 in Ubuntu.