← 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

mateomateohudson proposed the following answer:
The error message you encountered suggests that there was a permission
issue when running the post-installation script for the "samba4" package
in Ubuntu 12.04 LTS. The "Permission denied" error typically occurs when
the script doesn't have the necessary executable permissions or when the
user running the script doesn't have sufficient privileges. Open a
terminal and navigate to the /var/lib/dpkg/info/ directory. Use the ls
-l command to list the files and their permissions. Look for the
"samba4.postinst" file and verify that it has the executable permission
set. The permission should be -rwxr-xr-x or similar. If the permissions
are incorrect, you can try changing them using the chmod command. For
example: sudo chmod +x samba4.postinst.

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