You are not logged in.

#1 2021-03-18 09:36:17

khvalera
Member
Registered: 2015-11-17
Posts: 20
Website

Remove prompting for user password when scanning? [SOLVED]

After updating the system, the system began to ask for the user's password when using scanning programs (simple-scan, xsane). How do I clear this password prompt?

Last edited by khvalera (2021-03-31 09:25:03)

Offline

#2 2021-03-19 12:58:28

seth
Member
Registered: 2012-09-03
Posts: 21,243

Re: Remove prompting for user password when scanning? [SOLVED]

Which system, how do you launch those programs, how's your scanner accessed (usb or network) and do you have an active session?

loginctl session-status

Online

#3 2021-03-29 16:10:05

khvalera
Member
Registered: 2015-11-17
Posts: 20
Website

Re: Remove prompting for user password when scanning? [SOLVED]

The graphical environment XFCE4 is used, it was tested on simple-scan and xsane, the behavior is similar. The request for the user's password appeared after the system was updated, there was no such request before the update. The scanner is accessed over the network.

Offline

#4 2021-03-29 17:40:25

khvalera
Member
Registered: 2015-11-17
Posts: 20
Website

Re: Remove prompting for user password when scanning? [SOLVED]

$ loginctl session-status
2 - test (1000)
           Since: Mon 2021-03-29 19:28:12 EEST; 1h 8min ago
          Leader: 592 (sddm-helper)
            Seat: seat0; vc1
         Display: :0
         Service: sddm; type x11; class user
         Desktop: XFCE
           State: active
            Unit: session-2.scope
                  ├─ 592 /usr/lib/sddm/sddm-helper --socket /tmp/sddm-authcc9d58d7-e8c6-4aaa-8143-3de84820f08e --id 1 --start startxfce4 --user test
                  ├─ 606 xfce4-session
                  ├─ 668 /usr/bin/ssh-agent -s
                  ├─ 677 xfwm4
                  ├─ 693 xfsettingsd
                  ├─ 704 xfce4-panel
                  ├─ 708 Thunar --daemon
                  ├─ 713 xfdesktop
                  ├─ 716 /usr/lib/xfce4/panel/wrapper-2.0 /usr/lib/xfce4/panel/plugins/libwhiskermenu.so 28 25165831 whiskermenu Меню Whisker Показывает меню для простого доступа к установл>
                  ├─ 717 /usr/lib/xfce4/panel/wrapper-2.0 /usr/lib/xfce4/panel/plugins/libscreenshooterplugin.so 26 25165832 screenshooter Снимок экрана Выполнить снимок всего экрана, актив>
                  ├─ 720 /usr/lib/xfce4/panel/wrapper-2.0 /usr/lib/xfce4/panel/plugins/libpulseaudio-plugin.so 20 25165833 pulseaudio Модуль PulseAudio Управление громкостью звука системы P>
                  ├─ 721 /usr/lib/xfce4/panel/wrapper-2.0 /usr/lib/xfce4/panel/plugins/libxkb.so 23 25165834 xkb Раскладки клавиатуры Настройка и переключение клавиатурных раскладок
                  ├─ 722 /usr/lib/xfce4/panel/wrapper-2.0 /usr/lib/xfce4/panel/plugins/libsystray.so 6 25165835 systray Модуль статусного трея Предоставляет элементы уведомления о состоянии>
                  ├─ 723 /usr/lib/xfce4/panel/wrapper-2.0 /usr/lib/xfce4/panel/plugins/libdatetime.so 18 25165836 datetime Дата и время Отображает дату и время на панели, содержит простой к>
                  ├─ 728 /usr/lib/xfce4/panel/wrapper-2.0 /usr/lib/xfce4/panel/plugins/libclipman.so 17 25165837 xfce4-clipman-plugin Менеджер буфера обмена Clipman Менеджер буфера обмена
                  ├─ 729 /usr/lib/xfce4/panel/wrapper-2.0 /usr/lib/xfce4/panel/plugins/libnotification-plugin.so 21 25165838 notification-plugin Модуль оповещений Модуль оповещений для пане>
                  ├─ 738 /usr/lib/xfce4/panel/wrapper-2.0 /usr/lib/xfce4/panel/plugins/libxfce4powermanager.so 27 25165839 power-manager-plugin Модуль менеджера питания Показывает уровень з>
                  ├─ 739 /usr/lib/xfce4/panel/wrapper-2.0 /usr/lib/xfce4/panel/plugins/libactions.so 2 25165840 actions Системные действия Завершение сеанса, блокировка экрана или другие си>
                  ├─ 742 /usr/lib/xfce4/panel/wrapper-2.0 /usr/lib/xfce4/panel/plugins/libweather.so 22 25165849 weather Обновление погоды Отображает текущую погоду
                  ├─ 743 /usr/lib/xfce4/panel/wrapper-2.0 /usr/lib/xfce4/panel/plugins/libnotes.so 19 25165850 xfce4-notes-plugin Заметки Средство создания текстовых заметок
                  ├─ 748 /usr/lib/xfce4/panel/wrapper-2.0 /usr/lib/xfce4/panel/plugins/libfsguard.so 24 25165851 fsguard Проверка свободного места Контроль свободного места на диске
                  ├─ 749 /usr/lib/xfce4/panel/wrapper-2.0 /usr/lib/xfce4/panel/plugins/libcpugraph.so 5 25165852 cpugraph График процессора Графическое представление загруженности процессора
                  ├─ 750 /usr/lib/xfce4/panel/wrapper-2.0 /usr/lib/xfce4/panel/plugins/libfsguard.so 9 25165853 fsguard Проверка свободного места Контроль свободного места на диске
                  ├─ 751 /usr/lib/xfce4/panel/wrapper-2.0 /usr/lib/xfce4/panel/plugins/libfsguard.so 10 25165854 fsguard Проверка свободного места Контроль свободного места на диске
                  ├─ 758 /usr/lib/xfce4/panel/wrapper-2.0 /usr/lib/xfce4/panel/plugins/libfsguard.so 11 25165855 fsguard Проверка свободного места Контроль свободного места на диске
                  ├─ 759 viber
                  ├─ 761 /usr/lib/signal-desktop/signal-desktop --use-tray-icon --no-sandbox
                  ├─ 762 /usr/lib/xfce4/panel/wrapper-2.0 /usr/lib/xfce4/panel/plugins/libxfce4dict.so 34 25165856 xfce4-dict-plugin Словарь Модуль для поиска в различных словарях.
                  ├─ 775 pidgin
                  ├─ 812 /usr/bin/octopi-notifier
                  ├─ 815 /usr/bin/python3 /usr/share/system-config-printer/applet.py
                  ├─ 837 /usr/lib/xfce4/notifyd/xfce4-notifyd
                  ├─ 840 /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
                  ├─ 848 xfce4-power-manager
                  ├─ 853 nm-applet
                  ├─ 863 /usr/lib/signal-desktop/signal-desktop --type=zygote --no-zygote-sandbox --no-sandbox
                  ├─ 864 /usr/lib/signal-desktop/signal-desktop --type=zygote --no-sandbox
                  ├─1032 /opt/viber/libexec/QtWebEngineProcess --type=zygote --webengine-schemes=qrc:sLV --lang=ru
                  ├─1034 /opt/viber/libexec/QtWebEngineProcess --type=zygote --webengine-schemes=qrc:sLV --lang=ru
                  ├─1097 /usr/lib/signal-desktop/signal-desktop --type=gpu-process --field-trial-handle=14903817276425045013,7567866156407316186,131072 --enable-features=WebComponentsV0Enab>
                  ├─1100 /usr/lib/signal-desktop/signal-desktop --type=utility --utility-sub-type=network.mojom.NetworkService --field-trial-handle=14903817276425045013,7567866156407316186,>
                  ├─1165 /usr/lib/signal-desktop/signal-desktop --type=renderer --no-sandbox --field-trial-handle=14903817276425045013,7567866156407316186,131072 --enable-features=WebCompon>
                  ├─2558 xfce4-terminal
                  ├─2600 bash
                  ├─2602 loginctl session-status
                  └─2603 less

мар 29 19:28:12 test-x64 systemd[1]: Started Session 2 of user test.
мар 29 19:28:12 test-x64 sddm-helper[606]: Adding cookie to "/home/test/.Xauthority"
мар 29 19:28:14 test-x64 pkexec[991]: pam_unix(polkit-1:session): session opened for user root(uid=0) by (uid=1000)
мар 29 19:28:14 test-x64 pkexec[991]: test: Executing command [USER=root] [TTY=unknown] [CWD=/home/test] [COMMAND=/usr/bin/xfpm-power-backlight-helper --set-brightness-switch 0]

Offline

#5 2021-03-29 21:41:43

seth
Member
Registered: 2012-09-03
Posts: 21,243

Re: Remove prompting for user password when scanning? [SOLVED]

seth wrote:

how do you launch those programs

(The important part here is whether the password is required to launch the program or by the program to access the scanner)

The scanner is accessed over the network.

Scanner model and protocol?

Online

#6 2021-03-29 22:11:39

khvalera
Member
Registered: 2015-11-17
Posts: 20
Website

Re: Remove prompting for user password when scanning? [SOLVED]

seth wrote:

(The important part here is whether the password is required to launch the program or by the program to access the scanner)

the password is requested when searching for a scanning device, and not starting the program.
from the menu and from the console.

Scanner model and protocol?

it appeared on HP printers, different models for example LaserJet MFP M426dw. hplip driver.

Offline

#7 2021-03-30 04:01:38

WFV
Member
From: ☭USSA⛧⭒⭒⭒⭒
Registered: 2013-04-23
Posts: 281

Re: Remove prompting for user password when scanning? [SOLVED]

Had this same problem with a network HP scanner for some time (don't recall when update started it). Removed ~/.cache/simple-scan and that seems to solve.
--desktop --profile LXDE

Last edited by WFV (2021-03-30 04:03:13)


∞ hard times make the strong, the strong make good times, good times make the weak, the weak make hard times ∞

Offline

#8 2021-03-30 07:04:23

seth
Member
Registered: 2012-09-03
Posts: 21,243

Re: Remove prompting for user password when scanning? [SOLVED]

Do you actually have to provide the password or does simply hitting enter allow you to proceed?
Does it ask you if you add yourself to the "scanner" group? (yes, I know what the wiki says, but maybe sane doesn't ;-)

Online

#9 2021-03-30 08:53:38

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 13,037

Re: Remove prompting for user password when scanning? [SOLVED]

If my update logs are anything to go by sane recently added the saned user and group (... and service) so you might have to add your user to the saned group? FWIW I don't get the PW prompts and didn't change anything here, but I don't have my actual scanner in direct vicinity, but the mere process of checking for scanners seems to have worked without a polkit prompt and without my own user being direct part of said group.

Offline

#10 2021-03-30 12:35:58

khvalera
Member
Registered: 2015-11-17
Posts: 20
Website

Re: Remove prompting for user password when scanning? [SOLVED]

seth wrote:

Do you actually have to provide the password or does simply hitting enter allow you to proceed?
Does it ask you if you add yourself to the "scanner" group? (yes, I know what the wiki says, but maybe sane doesn't ;-)

my users are initially in the scanner group

Offline

#11 2021-03-30 12:36:54

khvalera
Member
Registered: 2015-11-17
Posts: 20
Website

Re: Remove prompting for user password when scanning? [SOLVED]

WFV wrote:

Had this same problem with a network HP scanner for some time (don't recall when update started it). Removed ~/.cache/simple-scan and that seems to solve.
--desktop --profile LXDE

thanks, I'll try it in the evening!

Offline

#12 2021-03-30 12:39:03

khvalera
Member
Registered: 2015-11-17
Posts: 20
Website

Re: Remove prompting for user password when scanning? [SOLVED]

V1del wrote:

If my update logs are anything to go by sane recently added the saned user and group (... and service) so you might have to add your user to the saned group? FWIW I don't get the PW prompts and didn't change anything here, but I don't have my actual scanner in direct vicinity, but the mere process of checking for scanners seems to have worked without a polkit prompt and without my own user being direct part of said group.

didn’t notice that there was a new group saned, thanks, I’ll try in the evening!

Offline

#13 2021-03-30 19:11:15

khvalera
Member
Registered: 2015-11-17
Posts: 20
Website

Re: Remove prompting for user password when scanning? [SOLVED]

Removed ~ /.cache/simple-scan added user to saned group and nothing helped.
Here is the output of the program:

simple-scan --debug
[+0,00s] DEBUG: simple-scan.vala:2014: Starting simple-scan 40.0, PID=3095
[+0,00s] DEBUG: unsetenv() is not thread-safe and should not be used after threads are created
[+0,10s] DEBUG: _g_io_module_get_default: Found default implementation dconf (DConfSettingsBackend) for \u2018gsettings-backend\u2019
[+0,16s] DEBUG: app-window.vala:2005: Loading state from /home/olya/.cache/simple-scan/state
[+0,16s] DEBUG: app-window.vala:1984: Restoring window to 600x428 pixels
[+0,16s] DEBUG: app-window.vala:1988: Restoring window to maximized
[+0,19s] DEBUG: scanner.vala:1569: sane_init () -> SANE_STATUS_GOOD
[+0,19s] DEBUG: scanner.vala:1575: SANE version 1.0.32
[+0,19s] DEBUG: scanner.vala:1636: Requesting redetection of scan devices
[+0,19s] DEBUG: scanner.vala:837: Processing request
[+0,29s] DEBUG: app-window.vala:2080: Saving state to /home/olya/.cache/simple-scan/state
[+6,79s] DEBUG: scanner.vala:341: sane_get_devices () -> SANE_STATUS_GOOD
[+6,79s] DEBUG: scanner.vala:353: Device: name="hpaio:/net/HP_LaserJet_MFP_M426fdw?ip=192.168.22.202" vendor="Hewlett-Packard" model="HP_LaserJet_MFP_M426fdw" type="all-in-one"

refers to polkit: org.freedesktop.systemd1.manage-units

Last edited by khvalera (2021-03-30 19:17:19)

Offline

#14 2021-03-30 21:39:49

seth
Member
Registered: 2012-09-03
Posts: 21,243

Re: Remove prompting for user password when scanning? [SOLVED]

refers to polkit: org.freedesktop.systemd1.manage-units

So it wants to start some service? You could list the running services before and after to see which and enable that…

Online

#15 2021-03-31 09:21:30

khvalera
Member
Registered: 2015-11-17
Posts: 20
Website

Re: Remove prompting for user password when scanning? [SOLVED]

seth wrote:

refers to polkit: org.freedesktop.systemd1.manage-units

So it wants to start some service? You could list the running services before and after to see which and enable that…

To avoid prompting for a password when searching for a network scanner, you must first enable:

systemctl enable avahi-daemon.service

all thanks for the help!

Offline

Board footer

Powered by FluxBB