opensubtitles-uploader
opensubtitles-uploader copied to clipboard
linux tar.gz version problem with permissions on directories
I think there are some problem with the packed tar.gz linux version if I try to untar it, it's complaining about permissions.
I find out that none of the directories are marked as execution so you can't even enter into them, I try to unpack it using another tools but I still find problems with other folders, and I can't even run it.
opensubtitles-uploader-2.6.0_linux64.tar.gz
tar zxvf ../opensubtitles-uploader-2.6.0_linux64.tar.gz
app/
chromedriver
crashpad_handler
credits.html
icudtl.dat
lib/
locales/
minidump_stackwalk
nacl_helper
nacl_helper_bootstrap
nacl_irt_x86_64.nexe
node_modules/
nwjc
nw_100_percent.pak
nw_200_percent.pak
opensubtitles-uploader
package.json
payload
README.md
resources.pak
swiftshader/
v8_context_snapshot.bin
app/css/
tar: app/css: Cannot mkdir: Permission denied
app/images/
tar: app/images: Cannot mkdir: Permission denied
app/index.html
tar: app/index.html: Cannot open: Permission denied
app/js/
tar: app/js: Cannot mkdir: Permission denied
app/localization/
tar: app/localization: Cannot mkdir: Permission denied
lib/libEGL.so
tar: lib/libEGL.so: Cannot open: Permission denied
lib/libffmpeg.so
tar: lib/libffmpeg.so: Cannot open: Permission denied
lib/libGLESv2.so
tar: lib/libGLESv2.so: Cannot open: Permission denied
lib/libnode.so
^C
[..]
I package this with Windows as I no longer run Linux on my computers atm, maybe that's the issue. Have you tried sudoing it?
I tried as root on a VM (not comfortable at all untaring a file as root, not something no one should do) and I can untar and run (after I made openssubtitle_downloader executable)
I can't run as normal user but I can as root (also something no one should do)
as user:
/opensubtitles-uploader: error while loading shared libraries: libnw.so: cannot open shared object file: No such file or directory
Tried exporting the lib path as a user and get a different crash
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:./lib
./opensubtitles-uploader
[0723/120101.090341:ERROR:icu_util.cc(248)] Couldn't mmap icu data file
[0723/120101.090413:FATAL:content_main_delegate.cc(35)] Check failed: false.
#0 0x7fe57526e3b9 (/root/tmp/subs/lib/libnw.so+0x4c6e3b8)
Aborted
Not sure what's the problem I guess is a permissions problem, mainly because as root it works, I am not running this as root in outside of a VM
You should use for taring the files:
tar -czf subs.tar.gz --owner=0 --group=0 --no-same-owner --no-same-permissions <folder_name>
Or something like that, never distributed nothing with tar, so not sure
Thanks
If anyone else has this problem the way to fix it is:
As root:
Untar
Make executable $ chmod 755 opensubtitles-uploader
change owner to your normal user (kabutor for example) $ chown kabutor:users * -R
Then as your normal user, just run this commmand several times, until it changes the permission to all the directorys.
Just repeat until there is no error from the directory that contains the program
find ./ -type d -exec chmod 755 {} +
That should fix the permissions, and then you can run it as normal user