Page 1 of 1

Unlock files saved from Ubuntu system

Posted: Sun Jun 12, 2022 9:55 pm
by contentprovider
 Edit: Split from Unlock spreadsheet because your situation is different since the original person used MacOS and you use Linux. If you had the same problem you could use the same solution. Please do not post in another's topic unless you are helping to solve their problem for them. 

the files were saved from a ubuntu system that crashed in Feb. the new system has a different user name and it switched from standard to that pos called snap. and since then everything has been corrupt.ed not working worklng lit it was a windoze machine and things worse.

I need to read those files and I need some help to ge to the m
/home/owner/snap/libreoffice/254/.config/libreoffice/4/.lock
/home/owner/snap/libreoffice/256/.config/libreoffice/4/.lock
/home/owner/snap/snap-store/547/.local/share/glib-2.0/schemas/org.gnome.desktop.lockdown.gschema.xml
/home/owner/snap/snap-store/558/.local/share/glib-2.0/schemas/org.gnome.desktop.lockdown.gschema.xml
/root/.config/libreoffice/4/.lock
/snap/code/97/usr/share/glib-2.0/schemas/org.gnome.desktop.lockdown.gschema.xml
/snap/code/98/usr/share/glib-2.0/schemas/org.gnome.desktop.lockdown.gschema.xml
/snap/core/13250/etc/.pwd.lock
/snap/core/13308/etc/.pwd.lock
/snap/core18/2344/etc/.pwd.lock
/snap/core18/2409/etc/.pwd.lock
/snap/core20/1494/etc/.pwd.lock
/snap/core20/1518/etc/.pwd.lock
/snap/gnome-3-34-1804/72/usr/share/glib-2.0/schemas/org.gnome.desktop.lockdown.gschema.xml
/snap/gnome-3-34-1804/77/usr/share/glib-2.0/schemas/org.gnome.desktop.lockdown.gschema.xml
/snap/gnome-3-38-2004/106/usr/share/glib-2.0/schemas/org.gnome.desktop.lockdown.gschema.xml
/snap/gnome-3-38-2004/99/usr/share/glib-2.0/schemas/org.gnome.desktop.lockdown.gschema.xml
/snap/snap-store/547/usr/share/glib-2.0/schemas/org.gnome.desktop.lockdown.gschema.xml
/snap/snap-store/558/usr/share/glib-2.0/schemas/org.gnome.desktop.lockdown.gschema.xml
/usr/share/glib-2.0/schemas/org.gnome.desktop.lockdown.gschema.xml
/usr/src/linux-headers-5.13.0-44-generic/kernel/Kconfig.locks
/usr/src/linux-headers-5.13.0-48-generic/kernel/Kconfig.locks
/usr/src/linux-hwe-5.13-headers-5.13.0-44/kernel/Kconfig.locks
/usr/src/linux-hwe-5.13-headers-5.13.0-48/kernel/Kconfig.locks
/var/lib/snapd/state.lock
/var/lib/snapd/inhibit/bare.lock
/var/lib/snapd/inhibit/chromium-ffmpeg.lock
/var/lib/snapd/inhibit/code.lock
/var/lib/snapd/inhibit/core.lock
/var/lib/snapd/inhibit/core18.lock
/var/lib/snapd/inhibit/core20.lock
/var/lib/snapd/inhibit/gnome-3-34-1804.lock
/var/lib/snapd/inhibit/gnome-3-38-2004.lock
/var/lib/snapd/inhibit/gtk-common-themes.lock
/var/lib/snapd/inhibit/libreoffice.lock
/var/lib/snapd/inhibit/snap-store.lock
/var/lib/snapd/inhibit/snapd.lock
/var/lib/snapd/inhibit/thunderbird.lock


would it help to add the same user name with the oldpassword as before and then upload from the back up those files to this added old user name. ?

Re: Unlock spreadsheet

Posted: Sun Jun 12, 2022 11:25 pm
by Villeroy
Delete all lockfiles that had been copied from the old system. You have to be root do do so. Change ownership of all files in your home directory. You have to be root to do so.

Code: Select all

man chown
Alternatively, you can adjust your user ID to the user ID you had on the old system.

Code: Select all

ls -n
and

Code: Select all

man usermod

Re: Unlock files saved from Ubuntu system

Posted: Tue Jun 14, 2022 8:22 am
by Mr.Dandy
OpenOffice 3.1 on Windows XP
Why this old signature if you are under Linux distro?

Let down snap install and use .DEB or .RPM

Re: Unlock files saved from Ubuntu system

Posted: Wed Jun 15, 2022 12:43 am
by Bill
contentprovider wrote: Sun Jun 12, 2022 9:55 pm ...the new system has a different user name and it switched from standard to that pos called snap. and since then everything has been corrupt.ed not working worklng
Please put the operating system information and LibreOffice information in your signature. I recently installed Ubuntu 22.04 LTS for testing and LibreOffice was installed from the Ubuntu repository, not from the Snap Store.
contentprovider wrote: Sun Jun 12, 2022 9:55 pm would it help to add the same user name with the oldpassword as before and then upload from the back up those files to this added old user name. ?
I don't know if that would work (I haven't tested it). The lock files contain more than the user name. They also contain the computer name and the location of the user profile.