Installation on Ubuntu moved all user's data into /home/Home folder and changed ownership of /home folder
Posted: Thu Apr 23, 2020 10:58 am
Ubuntu 19.10, 5.3.0-46-lowlatency, Lenovo G550 with Intel graphics GL40, 8Gb RAM, Intel Core 2 T6600 @ 2.20GHz
Downloaded xnview by link: https://download.xnview.com/XnViewMP-linux-x64.deb
Installed by
Started by
Selected default settings before the first start.
Result:
xnview created new /home/Home folder just after its installation
xnview could not see any files and folders in user's folder
Later I've noticed the next:
xnview somehow moved all user's files and directories from `/home/user` to `/home/Home` folder
xnview changed ownership of `/home` folder to username I've used to install xnview with `sudo`:
I assume that It could happen because of I tried to solve the issue:
xnview could not see almost all files and folders in both /home/user and /home/Home folders.
So I've set **Base path of your pictures** to /home/spacer (Catalog section in Preferences)
Changed **Use .ini file in folder**, **Folder for Catalog (.db)**, **Folder for other files** from **User (System)** to **Program (XnView)**
My command output starting from its installation:
The second time I've installed it after I've corrected ownership, xnview started to see /home/spacer folders and options changing haven't broken anything as previously. So I don't really know what it could be. I couldn't reproduce it now. Also, my user's folders does not appear in Nautilus, Nemo, etc. But it is not difficult to restore. I think, ownership changing could only be executed if root permissions granted, so something could happen during installation. Who knows what it was, but maybe someone else will encounter the same behavior, so it could become more clear.
Downloaded xnview by link: https://download.xnview.com/XnViewMP-linux-x64.deb
Installed by
Code: Select all
sudo apt install ./XnViewMP-linux-x64.deb
Code: Select all
xnview &
Result:
xnview created new /home/Home folder just after its installation
xnview could not see any files and folders in user's folder
Later I've noticed the next:
xnview somehow moved all user's files and directories from `/home/user` to `/home/Home` folder
xnview changed ownership of `/home` folder to username I've used to install xnview with `sudo`:
Code: Select all
$ ls -ailh /home/
total 60K
2 drwxr-xr-x 8 spacer spacer 4.0K Apr 23 12:40 .
2 drwxr-xr-x 20 root root 4.0K Mar 13 01:00 ..
6815745 drwxr-xr-x 16 spacer spacer 4.0K Apr 20 22:47 admin
3276801 drwxr-xr-x 4 spacer spacer 4.0K Feb 12 01:42 boot
12 lrwxrwxrwx 1 spacer spacer 44 Mar 1 22:56 .directory -> /etc/kubuntu-default-settings/directory-home
524289 drwxr-xr-x 240 spacer spacer 12K Apr 23 12:32 Home
11 drwx------ 2 spacer spacer 16K Feb 12 00:22 lost+found
4063233 drwxr-xr-x 3 spacer spacer 4.0K Mar 12 01:48 sofa
4194305 drwx------ 205 spacer spacer 12K Apr 23 13:28 spacer
I assume that It could happen because of I tried to solve the issue:
xnview could not see almost all files and folders in both /home/user and /home/Home folders.
So I've set **Base path of your pictures** to /home/spacer (Catalog section in Preferences)
Changed **Use .ini file in folder**, **Folder for Catalog (.db)**, **Folder for other files** from **User (System)** to **Program (XnView)**
My
Code: Select all
history
Code: Select all
2023 sudo apt install ./XnViewMP-linux-x64.deb
2024 xnview &
2025 vim.tiny ../.config/xnviewmp/xnview.ini
2026 rm -r ../.config/xnviewmp
2027 xnview &
2028 rm -r ../.config/xnviewmp
2029 sudo apt purge xnview
2030 sudo apt install ./XnViewMP-linux-x64.deb
2031 xnview &
2032 ls -ailh ../
2033 cat /etc/passwd | grep xnview
2034 sudo apt install libopenal1
2035 xnview &
2036 man xnview
2037 xnview --help
2038 vim.tiny /usr/share/applications/XnView.desktop
2039 cd /opt
2040 ls
2041 ls -ailh
2042 sudo chown -R spacer:spacer XnView
2043 xnview &
2044 ls
2045 ls -ailh
2046 cd XnView/
2047 ls -ailh
2048 vim.tiny qt.conf
2049 ls lib/
2050 cd ..
2051 ls
2052 sudo apt purge xnview
2053 ls
2054 rm -fr XnView
2055 sudo rm -r XnView
2056 sudo rm -r ~/.config/xnviewmp
2057 nautilus &
2058 nemo
2059 cd ~/
2060 ls
2061 ls -ailh
2062 su
244 ls -ailh
245 cd ..
246 ls
247 ls Home/
248 mv -r Home/* spacer/
249 cp -fr Home/* spacer/
250 ls
251 cd spacer/
252 ls -ailh
253 chown -R spacer:spacer *
254 ls -ailh
255 exit
256 history
2063 ls
2064 nautilus &
2065 sudo cp -fr /etc/skel/* ~/
2066 sudo cp -fr /etc/skel/.* /home/spacer/
2067 echo $HOME
2068 nautilus &
2069 ls -ailh /home/Home/
2070 ls -ailh /home/
2071 ls -ailh /
2072 pwd
2073 ls -ailh /
2074 ls -ailh /home/
2075 sudo chown -R sofa:sofa /home/sofa
2076 sudo chown -R admin:admin /home/admin