Folder Lock App guide me!

Hy! i’m developing a folder lock app. in this app i can pic images from phone storage and store in app and then i’ll lock the app because no One can get access to my personal pics… the problem is that i don’t know what method should i use to move “images from gallery to app” and which method/technology i can use to “store pics on app” means will i use sql data base or something other Guide me

E: Could not get lock /var/lib/dpkg/lock – open…blah blah blah…continued

In terminal, entered $ sudo apt install gnuradio, got error as in title.

Waited for potential “other processes” to end….tried again, same error.

Tried $ sudo killall apt apt-get…got apt: no process found, apt-get: no process found…tried to install again, same error.

Tried sudo rm /var/lib/apt/lists/lock, rm /var/cache/apt/archives/lock, rm /var/lib/dpkg/lock*, then sudo dpkg — configure -a (all the above as in previous answer to the titular error)…got dpkg; error: dpkg status database is locked by another process.

So, now what???

Returning from lock randomly takes too long in 18.04

When unlocking the computer it sometimes takes too long (1:30 minutes) to arrive to the desktop. This is happening more than one time a day.

Setup:

  • Ubuntu 18.04 with Unity 7 + Lightdm (but issue can be reproduced with Gnome3 with Gdm3 too)
  • uname -a: Linux adamhostname 4.15.0-54-generic #58-Ubuntu SMP Mon Jun 24 10:55:24 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
  • Login is through Active Directory using Kerberos and Sssd

Logs of journalctl -f when login is fast (Login took place from 12:21:46 to 12:21:49 – 3 seconds)

jul 04 12:19:52 adamhostname systemd[2263]: Started Backing Service for the Unity Panel in Lockscreen mode. jul 04 12:19:52 adamhostname systemd[2263]: Reached target A target that, when running, represents the screen being locked. jul 04 12:20:05 adamhostname gnome-session[2579]: gnome-session-binary[2579]: WARNING: Could not get session path for session. Check that logind is properly installed and pam_systemd is getting used at login. jul 04 12:20:05 adamhostname gnome-session-binary[2579]: WARNING: Could not get session path for session. Check that logind is properly installed and pam_systemd is getting used at login. jul 04 12:20:05 adamhostname unity-settings-[2556]: failed to turn the kbd backlight off: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface 'org.freedesktop.UPower.KbdBacklight' on object at path /org/freedesktop/UPower/KbdBacklight jul 04 12:21:46 adamhostname kernel: [drm] Reducing the compressed framebuffer size. This may lead to less power savings than a non-reduced-size. Try to increase stolen memory size if available in BIOS. jul 04 12:21:46 adamhostname gnome-session[2579]: gnome-session-binary[2579]: WARNING: Could not get session path for session. Check that logind is properly installed and pam_systemd is getting used at login. jul 04 12:21:46 adamhostname gnome-session-binary[2579]: WARNING: Could not get session path for session. Check that logind is properly installed and pam_systemd is getting used at login. jul 04 12:21:48 adamhostname compiz[2673]: pam_unix(unity:auth): authentication failure; logname= uid=1099222340 euid=1099222340 tty= ruser= rhost=  user=adamn jul 04 12:21:48 adamhostname audit[24081]: AVC apparmor="ALLOWED" operation="open" profile="/usr/sbin/sssd" name="/run/systemd/users/1099222340" pid=24081 comm="krb5_child" requested_mask="r" denied_mask="r" fsuid=0 ouid=0 jul 04 12:21:48 adamhostname kernel: audit: type=1400 audit(1562235708.330:8086): apparmor="ALLOWED" operation="open" profile="/usr/sbin/sssd" name="/run/systemd/users/1099222340" pid=24081 comm="krb5_child" requested_mask="r" denied_mask="r" fsuid=0 ouid=0 jul 04 12:21:48 adamhostname audit[24081]: AVC apparmor="ALLOWED" operation="file_mmap" profile="/usr/sbin/sssd" name="/usr/lib/x86_64-linux-gnu/krb5/plugins/authdata/sssd_pac_plugin.so" pid=24081 comm="krb5_child" requested_mask="m" denied_mask="m" fsuid=1099222340 ouid=0 jul 04 12:21:48 adamhostname kernel: audit: type=1400 audit(1562235708.354:8087): apparmor="ALLOWED" operation="file_mmap" profile="/usr/sbin/sssd" name="/usr/lib/x86_64-linux-gnu/krb5/plugins/authdata/sssd_pac_plugin.so" pid=24081 comm="krb5_child" requested_mask="m" denied_mask="m" fsuid=1099222340 ouid=0 jul 04 12:21:48 adamhostname compiz[2673]: pam_sss(unity:auth): authentication success; logname= uid=1099222340 euid=1099222340 tty= ruser= rhost= user=adamn jul 04 12:21:48 adamhostname compiz[2673]: gkr-pam: unlocked login keyring jul 04 12:21:48 adamhostname audit[24083]: AVC apparmor="ALLOWED" operation="open" profile="/usr/sbin/sssd" name="/var/cache/samba/gencache.tdb" pid=24083 comm="gpo_child" requested_mask="wrc" denied_mask="wrc" fsuid=0 ouid=0 jul 04 12:21:48 adamhostname audit[24083]: AVC apparmor="ALLOWED" operation="file_lock" profile="/usr/sbin/sssd" name="/var/cache/samba/gencache.tdb" pid=24083 comm="gpo_child" requested_mask="wk" denied_mask="wk" fsuid=0 ouid=0 jul 04 12:21:48 adamhostname kernel: audit: type=1400 audit(1562235708.466:8088): apparmor="ALLOWED" operation="open" profile="/usr/sbin/sssd" name="/var/cache/samba/gencache.tdb" pid=24083 comm="gpo_child" requested_mask="wrc" denied_mask="wrc" fsuid=0 ouid=0 jul 04 12:21:48 adamhostname kernel: audit: type=1400 audit(1562235708.466:8089): apparmor="ALLOWED" operation="file_lock" profile="/usr/sbin/sssd" name="/var/cache/samba/gencache.tdb" pid=24083 comm="gpo_child" requested_mask="wk" denied_mask="wk" fsuid=0 ouid=0 jul 04 12:21:48 adamhostname audit[24083]: AVC apparmor="ALLOWED" operation="open" profile="/usr/sbin/sssd" name="/run/samba/gencache_notrans.tdb" pid=24083 comm="gpo_child" requested_mask="wrc" denied_mask="wrc" fsuid=0 ouid=0 jul 04 12:21:48 adamhostname audit[24083]: AVC apparmor="ALLOWED" operation="file_lock" profile="/usr/sbin/sssd" name="/run/samba/gencache_notrans.tdb" pid=24083 comm="gpo_child" requested_mask="wk" denied_mask="wk" fsuid=0 ouid=0 jul 04 12:21:48 adamhostname audit[24083]: AVC apparmor="ALLOWED" operation="truncate" profile="/usr/sbin/sssd" name="/run/samba/gencache_notrans.tdb" pid=24083 comm="gpo_child" requested_mask="w" denied_mask="w" fsuid=0 ouid=0 jul 04 12:21:48 adamhostname audit[24083]: AVC apparmor="ALLOWED" operation="truncate" profile="/usr/sbin/sssd" name="/run/samba/gencache_notrans.tdb" pid=24083 comm="gpo_child" requested_mask="w" denied_mask="w" fsuid=0 ouid=0 jul 04 12:21:48 adamhostname kernel: audit: type=1400 audit(1562235708.470:8090): apparmor="ALLOWED" operation="open" profile="/usr/sbin/sssd" name="/run/samba/gencache_notrans.tdb" pid=24083 comm="gpo_child" requested_mask="wrc" denied_mask="wrc" fsuid=0 ouid=0 jul 04 12:21:48 adamhostname kernel: audit: type=1400 audit(1562235708.470:8091): apparmor="ALLOWED" operation="file_lock" profile="/usr/sbin/sssd" name="/run/samba/gencache_notrans.tdb" pid=24083 comm="gpo_child" requested_mask="wk" denied_mask="wk" fsuid=0 ouid=0 jul 04 12:21:48 adamhostname kernel: audit: type=1400 audit(1562235708.470:8092): apparmor="ALLOWED" operation="truncate" profile="/usr/sbin/sssd" name="/run/samba/gencache_notrans.tdb" pid=24083 comm="gpo_child" requested_mask="w" denied_mask="w" fsuid=0 ouid=0 jul 04 12:21:48 adamhostname kernel: audit: type=1400 audit(1562235708.470:8093): apparmor="ALLOWED" operation="truncate" profile="/usr/sbin/sssd" name="/run/samba/gencache_notrans.tdb" pid=24083 comm="gpo_child" requested_mask="w" denied_mask="w" fsuid=0 ouid=0 jul 04 12:21:48 adamhostname audit[24083]: AVC apparmor="ALLOWED" operation="file_mmap" profile="/usr/sbin/sssd" name="/usr/lib/x86_64-linux-gnu/samba/gensec/krb5.so" pid=24083 comm="gpo_child" requested_mask="m" denied_mask="m" fsuid=0 ouid=0 jul 04 12:21:48 adamhostname kernel: audit: type=1400 audit(1562235708.482:8094): apparmor="ALLOWED" operation="file_mmap" profile="/usr/sbin/sssd" name="/usr/lib/x86_64-linux-gnu/samba/gensec/krb5.so" pid=24083 comm="gpo_child" requested_mask="m" denied_mask="m" fsuid=0 ouid=0 jul 04 12:21:48 adamhostname systemd-resolved[1041]: Server returned error NXDOMAIN, mitigating potential DNS violation DVE-2018-0001, retrying transaction with reduced feature level UDP. jul 04 12:21:48 adamhostname systemd-resolved[1041]: Server returned error NXDOMAIN, mitigating potential DNS violation DVE-2018-0001, retrying transaction with reduced feature level UDP. jul 04 12:21:48 adamhostname systemd-resolved[1041]: Server returned error NXDOMAIN, mitigating potential DNS violation DVE-2018-0001, retrying transaction with reduced feature level UDP. jul 04 12:21:48 adamhostname kernel: audit: type=1400 audit(1562235708.506:8095): apparmor="ALLOWED" operation="open" profile="/usr/sbin/sssd" name="/dev/urandom" pid=24083 comm="gpo_child" requested_mask="wc" denied_mask="wc" fsuid=0 ouid=0 jul 04 12:21:48 adamhostname audit[24083]: AVC apparmor="ALLOWED" operation="open" profile="/usr/sbin/sssd" name="/dev/urandom" pid=24083 comm="gpo_child" requested_mask="wc" denied_mask="wc" fsuid=0 ouid=0 jul 04 12:21:48 adamhostname audit[24083]: AVC apparmor="ALLOWED" operation="mknod" profile="/usr/sbin/sssd" name="/var/lib/sss/gpo_cache/domain.local/Policies/{31B2F340-016D-11D2-945F-00C04FB984F9}/GPT.INIRNrUek" pid=24083 comm="gpo_child" requested_mask="c" denied_mask="c" fsuid=0 ouid=0 jul 04 12:21:48 adamhostname audit[24083]: AVC apparmor="ALLOWED" operation="open" profile="/usr/sbin/sssd" name="/var/lib/sss/gpo_cache/domain.local/Policies/{31B2F340-016D-11D2-945F-00C04FB984F9}/GPT.INIRNrUek" pid=24083 comm="gpo_child" requested_mask="wrc" denied_mask="wrc" fsuid=0 ouid=0 jul 04 12:21:48 adamhostname audit[24083]: AVC apparmor="ALLOWED" operation="chmod" profile="/usr/sbin/sssd" name="/var/lib/sss/gpo_cache/domain.local/Policies/{31B2F340-016D-11D2-945F-00C04FB984F9}/GPT.INIRNrUek" pid=24083 comm="gpo_child" requested_mask="w" denied_mask="w" fsuid=0 ouid=0 jul 04 12:21:48 adamhostname audit[24083]: AVC apparmor="ALLOWED" operation="rename_src" profile="/usr/sbin/sssd" name="/var/lib/sss/gpo_cache/domain.local/Policies/{31B2F340-016D-11D2-945F-00C04FB984F9}/GPT.INIRNrUek" pid=24083 comm="gpo_child" requested_mask="wrd" denied_mask="wrd" fsuid=0 ouid=0 jul 04 12:21:48 adamhostname audit[24083]: AVC apparmor="ALLOWED" operation="rename_dest" profile="/usr/sbin/sssd" name="/var/lib/sss/gpo_cache/domain.local/Policies/{31B2F340-016D-11D2-945F-00C04FB984F9}/GPT.INI" pid=24083 comm="gpo_child" requested_mask="wc" denied_mask="wc" fsuid=0 ouid=0 jul 04 12:21:48 adamhostname audit[24083]: AVC apparmor="ALLOWED" operation="open" profile="/usr/sbin/sssd" name="/var/lib/sss/gpo_cache/domain.local/Policies/{31B2F340-016D-11D2-945F-00C04FB984F9}/GPT.INI" pid=24083 comm="gpo_child" requested_mask="r" denied_mask="r" fsuid=0 ouid=0 jul 04 12:21:48 adamhostname audit[1614]: AVC apparmor="ALLOWED" operation="open" profile="/usr/sbin/sssd" name=2F7661722F6C69622F7373732F67706F5F63616368652F7469732E6C6F63616C2F506F6C69636965732F7B33314232463334302D303136442D313144322D393435462D3030433034464239383446397D2F4D616368696E652F4D6963726F736F66742F57696E646F7773204E542F536563456469742F477074546D706C2E696E66 pid=1614 comm="sssd_be" requested_mask="r" denied_mask="r" fsuid=0 ouid=0 jul 04 12:21:49 adamhostname unity-panel-ser[2681]: menus_destroyed: assertion 'IS_WINDOW_MENU(wm)' failed jul 04 12:21:49 adamhostname unity-panel-ser[2681]: menus_destroyed: assertion 'IS_WINDOW_MENU(wm)' failed jul 04 12:21:49 adamhostname compiz[2673]: WARN  2019-07-04 12:21:49 unity.glib.dbus.proxy GLibDBusProxy.cpp:487 Calling method "EmitEvent" on object path: "/com/ubuntu/Upstart" failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name com.canonical.Unity.Test.Upstart was not provided by any .service files jul 04 12:21:49 adamhostname systemd[2263]: Stopped target A target that, when running, represents the screen being locked. jul 04 12:21:49 adamhostname systemd[2263]: Stopping Backing Service for the Unity Panel in Lockscreen mode... jul 04 12:21:51 adamhostname unity-panel-ser[24048]: Source ID 4294967295 was not found when attempting to remove it jul 04 12:21:51 adamhostname systemd[2263]: Stopped Backing Service for the Unity Panel in Lockscreen mode. jul 04 12:21:51 adamhostname compiz[2673]: ERROR 2019-07-04 12:21:51 unity.decoration.shape DecorationsShape.cpp:73 Failed to get shape rectangles jul 04 12:21:51 adamhostname compiz[2673]: ERROR 2019-07-04 12:21:51 unity.decoration.shape DecorationsShape.cpp:73 Failed to get shape rectangles ... 

Logs of journalctl -f when login is slow (Login credentials entered at: 14:31:38 Actual login succeeded at: 14:33:06 – a bit more than 1 minute 30 seconds)

... jul 04 14:17:01 adamhostname CRON[26960]: pam_unix(cron:session): session opened for user root by (uid=0) jul 04 14:17:01 adamhostname CRON[26961]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly) jul 04 14:17:01 adamhostname CRON[26960]: pam_unix(cron:session): session closed for user root jul 04 14:20:42 adamhostname kernel: perf: interrupt took too long (4011 > 3997), lowering kernel.perf_event_max_sample_rate to 49750 jul 04 14:22:09 adamhostname systemd-resolved[1041]: Server returned error NXDOMAIN, mitigating potential DNS violation DVE-2018-0001, retrying transaction with reduced feature level UDP. jul 04 14:22:09 adamhostname systemd-resolved[1041]: Server returned error NXDOMAIN, mitigating potential DNS violation DVE-2018-0001, retrying transaction with reduced feature level UDP. jul 04 14:22:09 adamhostname systemd-resolved[1041]: Server returned error NXDOMAIN, mitigating potential DNS violation DVE-2018-0001, retrying transaction with reduced feature level UDP. jul 04 14:22:09 adamhostname systemd-resolved[1041]: Server returned error NXDOMAIN, mitigating potential DNS violation DVE-2018-0001, retrying transaction with reduced feature level UDP. jul 04 14:29:45 adamhostname kernel: CIFS VFS: Free previous auth_key.response = 00000000d051e350 jul 04 14:31:32 adamhostname kernel: usb 1-4: new high-speed USB device number 10 using xhci_hcd jul 04 14:31:32 adamhostname kernel: usb 1-4: New USB device found, idVendor=05ac, idProduct=12a8 jul 04 14:31:32 adamhostname kernel: usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3 jul 04 14:31:32 adamhostname kernel: usb 1-4: Product: iPhone jul 04 14:31:32 adamhostname kernel: usb 1-4: Manufacturer: Apple Inc. jul 04 14:31:32 adamhostname kernel: usb 1-4: SerialNumber: a3f06c9dc81e21861c818fa61646c5f3af7638ad jul 04 14:31:32 adamhostname mtp-probe[27190]: checking bus 1, device 10: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-4" jul 04 14:31:32 adamhostname mtp-probe[27190]: bus: 1, device: 10 was not an MTP device jul 04 14:31:32 adamhostname fwupd[4335]: failed to add USB device 05ac:12a8: 05ac:12a8 is not supported: USB error on device 05ac:12a8 : Entity not found [-5] jul 04 14:31:32 adamhostname systemd[1]: Started Socket daemon for the usbmux protocol used by Apple devices. jul 04 14:31:32 adamhostname upowerd[2143]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb1/1-4 jul 04 14:31:32 adamhostname usbmuxd[27196]: [14:31:32.772][3] usbmuxd v1.1.0 starting up jul 04 14:31:32 adamhostname unity-settings-[2556]: failed to connect to device: Failed to connect to missing device /org/freedesktop/ColorManager/devices/sysfs__null_ jul 04 14:31:32 adamhostname unity-settings-[2556]: failed to connect to device: Failed to connect to missing device /org/freedesktop/ColorManager/devices/sysfs__null_ jul 04 14:31:32 adamhostname compiz[2673]: 14:31:32.780-warning default unknown@0 # UdevQt: unhandled device action "bind" jul 04 14:31:32 adamhostname usbmuxd[27196]: [14:31:32.804][3] Successfully dropped privileges to 'usbmux' jul 04 14:31:32 adamhostname usbmuxd[27196]: [14:31:32.807][3] Could not get old configuration descriptor for device 1-10: -5 jul 04 14:31:32 adamhostname usbmuxd[27196]: [14:31:32.810][3] Connecting to new device on location 0x1000a as ID 1 jul 04 14:31:32 adamhostname usbmuxd[27196]: [14:31:32.810][3] Initialization complete jul 04 14:31:32 adamhostname usbmuxd[27196]: [14:31:32.810][3] Enabled exit on SIGUSR1 if no devices are attached. Start a new instance with "--exit" to trigger. jul 04 14:31:32 adamhostname usbmuxd[27196]: [14:31:32.810][3] Connected to v2.0 device 1 on location 0x1000a with serial number a3f06c9dc81e21861c818fa61646c5f3af7638ad jul 04 14:31:32 adamhostname kernel: ipheth 1-4:4.2: Apple iPhone USB Ethernet device attached jul 04 14:31:32 adamhostname NetworkManager[1314]: <info>  [1562243492.8116] manager: (eth0): new Ethernet device (/org/freedesktop/NetworkManager/Devices/10) jul 04 14:31:32 adamhostname colord[1748]: CdMain: failed to emit DeviceAdded: failed to register object: An object is already exported for the interface org.freedesktop.ColorManager.Device at /org/freedesktop/ColorManager/devices/sysfs__null_ jul 04 14:31:32 adamhostname compiz[2673]: 14:31:32.814-warning default unknown@0 # UdevQt: unhandled device action "bind" jul 04 14:31:32 adamhostname colord[1748]: CdMain: failed to emit DeviceAdded: failed to register object: An object is already exported for the interface org.freedesktop.ColorManager.Device at /org/freedesktop/ColorManager/devices/sysfs__null_ jul 04 14:31:32 adamhostname nm-applet[2802]: gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed jul 04 14:31:32 adamhostname nm-applet[2802]: gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed jul 04 14:31:32 adamhostname systemd-udevd[27219]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable. jul 04 14:31:32 adamhostname kernel: ipheth 1-4:4.2 enp0s20f0u4c4i2: renamed from eth0 jul 04 14:31:32 adamhostname nm-applet[2802]: Can't set a parent on widget which has a parent jul 04 14:31:32 adamhostname upowerd[2143]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4:4.1 jul 04 14:31:32 adamhostname NetworkManager[1314]: <info>  [1562243492.8387] devices added (path: /sys/devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4:4.2/net/enp0s20f0u4c4i2, iface: enp0s20f0u4c4i2) jul 04 14:31:32 adamhostname NetworkManager[1314]: <info>  [1562243492.8387] device added (path: /sys/devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4:4.2/net/enp0s20f0u4c4i2, iface: enp0s20f0u4c4i2): no ifupdown configuration found. jul 04 14:31:32 adamhostname NetworkManager[1314]: <info>  [1562243492.8392] device (enp0s20f0u4c4i2): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'external') jul 04 14:31:32 adamhostname upowerd[2143]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4:4.2 jul 04 14:31:32 adamhostname NetworkManager[1314]: <info>  [1562243492.8411] keyfile: add connection in-memory (2c58623b-fb52-3aad-b209-8cd1f0746a30,"Wired connection 1") jul 04 14:31:32 adamhostname kernel: IPv6: ADDRCONF(NETDEV_UP): enp0s20f0u4c4i2: link is not ready jul 04 14:31:32 adamhostname kernel: IPv6: ADDRCONF(NETDEV_UP): enp0s20f0u4c4i2: link is not ready jul 04 14:31:32 adamhostname compiz[2673]: 14:31:32.841-warning default unknown@0 # UdevQt: unhandled device action "bind" jul 04 14:31:32 adamhostname NetworkManager[1314]: <info>  [1562243492.8416] settings: (enp0s20f0u4c4i2): created default wired connection 'Wired connection 1' jul 04 14:31:32 adamhostname nm-applet[2802]: gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed jul 04 14:31:32 adamhostname nm-applet[2802]: gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed jul 04 14:31:32 adamhostname compiz[2673]: 14:31:32.843-warning default unknown@0 # UdevQt: unhandled device action "move" jul 04 14:31:32 adamhostname nm-applet[2802]: Can't set a parent on widget which has a parent jul 04 14:31:32 adamhostname nm-applet[2802]: gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed jul 04 14:31:32 adamhostname nm-applet[2802]: gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed jul 04 14:31:32 adamhostname nm-applet[2802]: Can't set a parent on widget which has a parent jul 04 14:31:33 adamhostname gvfs-afc-volume-monitor[3669]: creating volume for device uuid 'a3f06c9dc81e21861c818fa61646c5f3af7638ad' jul 04 14:31:35 adamhostname ModemManager[1329]: <info>  Couldn't check support for device '/sys/devices/pci0000:00/0000:00:14.0/usb1/1-4': not supported by any plugin jul 04 14:31:35 adamhostname kernel: [drm] Reducing the compressed framebuffer size. This may lead to less power savings than a non-reduced-size. Try to increase stolen memory size if available in BIOS. jul 04 14:31:36 adamhostname gnome-session[2579]: gnome-session-binary[2579]: WARNING: Could not get session path for session. Check that logind is properly installed and pam_systemd is getting used at login. jul 04 14:31:36 adamhostname gnome-session-binary[2579]: WARNING: Could not get session path for session. Check that logind is properly installed and pam_systemd is getting used at login. jul 04 14:31:38 adamhostname compiz[2673]: pam_unix(unity:auth): authentication failure; logname= uid=1099222340 euid=1099222340 tty= ruser= rhost=  user=adamn jul 04 14:31:38 adamhostname audit[27245]: AVC apparmor="ALLOWED" operation="open" profile="/usr/sbin/sssd" name="/run/systemd/users/1099222340" pid=27245 comm="krb5_child" requested_mask="r" denied_mask="r" fsuid=0 ouid=0 jul 04 14:31:38 adamhostname kernel: kauditd_printk_skb: 7 callbacks suppressed jul 04 14:31:38 adamhostname kernel: audit: type=1400 audit(1562243498.125:8120): apparmor="ALLOWED" operation="open" profile="/usr/sbin/sssd" name="/run/systemd/users/1099222340" pid=27245 comm="krb5_child" requested_mask="r" denied_mask="r" fsuid=0 ouid=0 jul 04 14:31:38 adamhostname audit[27245]: AVC apparmor="ALLOWED" operation="file_mmap" profile="/usr/sbin/sssd" name="/usr/lib/x86_64-linux-gnu/krb5/plugins/authdata/sssd_pac_plugin.so" pid=27245 comm="krb5_child" requested_mask="m" denied_mask="m" fsuid=1099222340 ouid=0 jul 04 14:31:38 adamhostname kernel: audit: type=1400 audit(1562243498.153:8121): apparmor="ALLOWED" operation="file_mmap" profile="/usr/sbin/sssd" name="/usr/lib/x86_64-linux-gnu/krb5/plugins/authdata/sssd_pac_plugin.so" pid=27245 comm="krb5_child" requested_mask="m" denied_mask="m" fsuid=1099222340 ouid=0 jul 04 14:31:38 adamhostname compiz[2673]: pam_sss(unity:auth): authentication success; logname= uid=1099222340 euid=1099222340 tty= ruser= rhost= user=adamn jul 04 14:31:38 adamhostname compiz[2673]: gkr-pam: unlocked login keyring jul 04 14:31:38 adamhostname audit[27248]: AVC apparmor="ALLOWED" operation="open" profile="/usr/sbin/sssd" name="/var/cache/samba/gencache.tdb" pid=27248 comm="gpo_child" requested_mask="wrc" denied_mask="wrc" fsuid=0 ouid=0 jul 04 14:31:38 adamhostname audit[27248]: AVC apparmor="ALLOWED" operation="file_lock" profile="/usr/sbin/sssd" name="/var/cache/samba/gencache.tdb" pid=27248 comm="gpo_child" requested_mask="wk" denied_mask="wk" fsuid=0 ouid=0 jul 04 14:31:38 adamhostname kernel: audit: type=1400 audit(1562243498.273:8122): apparmor="ALLOWED" operation="open" profile="/usr/sbin/sssd" name="/var/cache/samba/gencache.tdb" pid=27248 comm="gpo_child" requested_mask="wrc" denied_mask="wrc" fsuid=0 ouid=0 jul 04 14:31:38 adamhostname kernel: audit: type=1400 audit(1562243498.273:8123): apparmor="ALLOWED" operation="file_lock" profile="/usr/sbin/sssd" name="/var/cache/samba/gencache.tdb" pid=27248 comm="gpo_child" requested_mask="wk" denied_mask="wk" fsuid=0 ouid=0 jul 04 14:31:38 adamhostname audit[27248]: AVC apparmor="ALLOWED" operation="open" profile="/usr/sbin/sssd" name="/run/samba/gencache_notrans.tdb" pid=27248 comm="gpo_child" requested_mask="wrc" denied_mask="wrc" fsuid=0 ouid=0 jul 04 14:31:38 adamhostname audit[27248]: AVC apparmor="ALLOWED" operation="file_lock" profile="/usr/sbin/sssd" name="/run/samba/gencache_notrans.tdb" pid=27248 comm="gpo_child" requested_mask="wk" denied_mask="wk" fsuid=0 ouid=0 jul 04 14:31:38 adamhostname audit[27248]: AVC apparmor="ALLOWED" operation="truncate" profile="/usr/sbin/sssd" name="/run/samba/gencache_notrans.tdb" pid=27248 comm="gpo_child" requested_mask="w" denied_mask="w" fsuid=0 ouid=0 jul 04 14:31:38 adamhostname audit[27248]: AVC apparmor="ALLOWED" operation="truncate" profile="/usr/sbin/sssd" name="/run/samba/gencache_notrans.tdb" pid=27248 comm="gpo_child" requested_mask="w" denied_mask="w" fsuid=0 ouid=0 jul 04 14:31:38 adamhostname kernel: audit: type=1400 audit(1562243498.277:8124): apparmor="ALLOWED" operation="open" profile="/usr/sbin/sssd" name="/run/samba/gencache_notrans.tdb" pid=27248 comm="gpo_child" requested_mask="wrc" denied_mask="wrc" fsuid=0 ouid=0 jul 04 14:31:38 adamhostname kernel: audit: type=1400 audit(1562243498.277:8125): apparmor="ALLOWED" operation="file_lock" profile="/usr/sbin/sssd" name="/run/samba/gencache_notrans.tdb" pid=27248 comm="gpo_child" requested_mask="wk" denied_mask="wk" fsuid=0 ouid=0 jul 04 14:31:38 adamhostname kernel: audit: type=1400 audit(1562243498.277:8126): apparmor="ALLOWED" operation="truncate" profile="/usr/sbin/sssd" name="/run/samba/gencache_notrans.tdb" pid=27248 comm="gpo_child" requested_mask="w" denied_mask="w" fsuid=0 ouid=0 jul 04 14:31:38 adamhostname kernel: audit: type=1400 audit(1562243498.277:8127): apparmor="ALLOWED" operation="truncate" profile="/usr/sbin/sssd" name="/run/samba/gencache_notrans.tdb" pid=27248 comm="gpo_child" requested_mask="w" denied_mask="w" fsuid=0 ouid=0 jul 04 14:31:38 adamhostname audit[27248]: AVC apparmor="ALLOWED" operation="file_mmap" profile="/usr/sbin/sssd" name="/usr/lib/x86_64-linux-gnu/samba/gensec/krb5.so" pid=27248 comm="gpo_child" requested_mask="m" denied_mask="m" fsuid=0 ouid=0 jul 04 14:31:38 adamhostname kernel: audit: type=1400 audit(1562243498.293:8128): apparmor="ALLOWED" operation="file_mmap" profile="/usr/sbin/sssd" name="/usr/lib/x86_64-linux-gnu/samba/gensec/krb5.so" pid=27248 comm="gpo_child" requested_mask="m" denied_mask="m" fsuid=0 ouid=0 jul 04 14:31:38 adamhostname systemd-resolved[1041]: Server returned error NXDOMAIN, mitigating potential DNS violation DVE-2018-0001, retrying transaction with reduced feature level UDP. jul 04 14:31:38 adamhostname systemd-resolved[1041]: Server returned error NXDOMAIN, mitigating potential DNS violation DVE-2018-0001, retrying transaction with reduced feature level UDP. jul 04 14:31:38 adamhostname systemd-resolved[1041]: Server returned error NXDOMAIN, mitigating potential DNS violation DVE-2018-0001, retrying transaction with reduced feature level UDP. jul 04 14:31:38 adamhostname audit[27248]: AVC apparmor="ALLOWED" operation="open" profile="/usr/sbin/sssd" name="/dev/urandom" pid=27248 comm="gpo_child" requested_mask="wc" denied_mask="wc" fsuid=0 ouid=0 jul 04 14:31:38 adamhostname kernel: audit: type=1400 audit(1562243498.313:8129): apparmor="ALLOWED" operation="open" profile="/usr/sbin/sssd" name="/dev/urandom" pid=27248 comm="gpo_child" requested_mask="wc" denied_mask="wc" fsuid=0 ouid=0 jul 04 14:33:08 adamhostname unity-panel-ser[2681]: menus_destroyed: assertion 'IS_WINDOW_MENU(wm)' failed jul 04 14:33:08 adamhostname unity-panel-ser[2681]: menus_destroyed: assertion 'IS_WINDOW_MENU(wm)' failed jul 04 14:33:08 adamhostname compiz[2673]: WARN  2019-07-04 14:33:08 unity.glib.dbus.proxy GLibDBusProxy.cpp:487 Calling method "EmitEvent" on object path: "/com/ubuntu/Upstart" failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name com.canonical.Unity.Test.Upstart was not provided by any .service files jul 04 14:33:08 adamhostname systemd[2263]: Stopped target A target that, when running, represents the screen being locked. jul 04 14:33:08 adamhostname systemd[2263]: Stopping Backing Service for the Unity Panel in Lockscreen mode... jul 04 14:33:08 adamhostname unity-fallback-[2824]: GtkDialog mapped without a transient parent. This is discouraged. jul 04 14:33:08 adamhostname hud-service[3779]: void DBusMenuImporter::slotGetLayoutFinished(QDBusPendingCallWatcher*): "No such interface 'com.canonical.dbusmenu' on object at path /org/ayatana/bamf/window/31458319" jul 04 14:33:10 adamhostname unity-panel-ser[25760]: Source ID 4294967295 was not found when attempting to remove it jul 04 14:33:10 adamhostname systemd[2263]: Stopped Backing Service for the Unity Panel in Lockscreen mode. 

Based on this: New alert keeps showing up: Server returned error NXDOMAIN, mitigating potential DNS violation DVE-2018-0001 the NXDOMAIN issue seems irrelevant.

How to enable/disable lock screen from shell script when a special wifi SSID is present?

My Java skills are low, but I’m mastering shell.

Is use LineageOS 14.1 (forked from cyanogenmod).

I would like to create a shell script on a rooted devive to enable/disable lockscreen (PIN).

I would like to unlock my screen at home when a special SSID is present.

I’m able to discover my known network by running :

#!/bin/bash  iw dev wlan0 scan | grep MY_SSID 

Now, is there a command line to disable/enable the PIN based lock screen depending of the output of this command please ?

Maybe something based on

am <something> <stop|start> 

Tried to make a diff from ps with and without lockscreen, but I only have cyanogenmod.snap as diff, tried to kill the process, but still the lockscreen.

Any hint please ?

Cannot add user because /etc/group.5: lock file already used

I am trying to add a new user when first installing Ubuntu 18.04 LTS and I get this:

Enter new UNIX username: rob groupadd: /etc/group.5: lock file already used groupadd: cannot lock /etc/group; try again later. adduser: `/usr/sbin/groupadd -g 1000 rob' returned error code 10. Exiting. 

It is very similar to this question, however I don’t think the problem is precisely the same as I get this right after download and launch. I have been doing everything as the root user and I know this is bad practice.

Amazon RDS Postgres denies LOCK TABLE permissions

We are attempting to perform the following SQL statements:

LOCK TABLE "public"."custom-table" IN SHARE UPDATE EXCLUSIVE MODE; ...  LOCK TABLE "postgis"."spatial_ref_sys" IN SHARE UPDATE EXCLUSIVE MODE; 

These statements all succeed up to the point where we attempt to lock spatial_ref_sys and the statement throws an error, permission denied for relation spatial_ref_sys.

Is there something special I must do in order to allow this on Amazon RDS? I haven’t ran into this problem with local docker image installations of postgres.