Avidemux Forum

Avidemux => Unix-Like (Linux/Bsd/...) => Topic started by: mrj on December 28, 2015, 09:04:09 AM

Title: Fix for libADM6avcodec.so.56: cannot open shared object file: Permission denied
Post by: mrj on December 28, 2015, 09:04:09 AM
On Fedora 23, avidemux.x86_64 version 2.6.10-3.fc23 doesn't run for users in the root group, giving the error

avidemux3_qt4: error while loading shared libraries: libADM6avcodec.so.56: cannot open shared object file: Permission denied

The problem was missing group read permissions, fixed with

sudo chmod g+r /lib64/libADM6*
Title: Re: Fix for libADM6avcodec.so.56: cannot open shared object file: Permission denied
Post by: Jan Gruuthuse on December 28, 2015, 10:41:53 AM
I believe you're not supposed to run user programs as root user(s) / super user?
Title: Re: Fix for libADM6avcodec.so.56: cannot open shared object file: Permission denied
Post by: mrj on December 28, 2015, 12:37:53 PM
Not the root user, but a normal user in the group "root", listed by

grep ^root /etc/group | cut -c10-
Title: Re: Fix for libADM6avcodec.so.56: cannot open shared object file: Permission denied
Post by: mean on December 28, 2015, 04:03:58 PM
If you installed using yum, it might be better to report that to the packager
Title: Re: Fix for libADM6avcodec.so.56: cannot open shared object file: Permission denied
Post by: mrj on December 28, 2015, 08:06:32 PM
Done (https://bugzilla.rpmfusion.org/show_bug.cgi?id=3923).
Title: Re: Fix for libADM6avcodec.so.56: cannot open shared object file: Permission denied
Post by: hobbes1069 on January 27, 2016, 04:26:30 PM
I can confirm his findings, looking at a recent build:

$ ll libADM6*
-rwx--xr-x. 1 build build 6051232 Jan 27 10:19 libADM6avcodec.so.56
-rwx--xr-x. 1 build build  407408 Jan 27 10:19 libADM6avformat.so.56
-rwx--xr-x. 1 build build  340504 Jan 27 10:19 libADM6avutil.so.54
-rwx--xr-x. 1 build build  114152 Jan 27 10:19 libADM6postproc.so.53
-rwx--xr-x. 1 build build  463728 Jan 27 10:19 libADM6swscale.so.3

While I'm not sure about the use case, shouldn't these be installed 755 anyway? The rest of the libraries are.

Thanks,
Richard
Title: Re: Fix for libADM6avcodec.so.56: cannot open shared object file: Permission denied
Post by: Jan Gruuthuse on January 27, 2016, 04:38:21 PM
ubuntu 14.04.3 from my builds:
/usr/lib$ ll libADM6*
-rwx---r-x 1 root root 6815306 jan 25 08:21 libADM6avcodec.so.56*
-rwx---r-x 1 root root  448194 jan 25 08:21 libADM6avformat.so.56*
-rwx---r-x 1 root root  377564 jan 25 08:21 libADM6avutil.so.54*
-rwx---r-x 1 root root  138704 jan 25 08:21 libADM6postproc.so.53*
-rwx---r-x 1 root root  513899 jan 25 08:22 libADM6swscale.so.3*