Bug 31427 - mount.davfs "из коробки" не работает от рута
Summary: mount.davfs "из коробки" не работает от рута
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: davfs2 (show other bugs)
Version: unstable
Hardware: all Linux
: P3 minor
Assignee: Anton Farygin
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-02 14:42 MSK by Michael Shigorin
Modified: 2022-11-18 18:43 MSK (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Shigorin 2015-11-02 14:42:03 MSK
# mount -t davfs https://webdav.cloud.mail.ru/ /mnt
/sbin/mount.davfs: user davfs2 does not exist

Потребовалось
# useradd -r -s /bin/false -d / -g davfs2 davfs2

Свежепоставленный davfs2-1.4.7-alt2.
Comment 1 elf-psih 2017-05-16 19:43:07 MSK
До сих пор актуально.
Comment 2 gBopHuk 2018-01-21 22:30:41 MSK
davfs2-1.4.7-alt2
Проблема всё ещё актуальна
Comment 3 elf-psih 2018-11-27 12:07:39 MSK
Уже три года багу, всё еще актуально.
Comment 4 Sergei Naumov 2020-01-29 15:14:20 MSK
До сих пор актуально... :-(
Comment 5 Alexander Makeenkov 2022-05-16 22:06:36 MSK
Версия пакета:
davfs2-1.6.1-alt1

Ошибка воспроизводится:
# mount -t davfs https://webdav.yandex.ru /media/yandex
.........
/sbin/mount.davfs: user davfs2 does not exist

Добавление пользователя, как описано в первом комментарии, решает проблему.
Comment 6 Repository Robot 2022-11-18 10:33:49 MSK
davfs2-1.7.0-alt2 -> sisyphus:

 Fri Nov 18 2022 Anton Farygin <rider@altlinux.ru> 1.7.0-alt2
 - restored symlinks from /sbin to /usr/sbin for mount/umount tools (closes: #44299)
 - added the creation of user davfs2 from post-script (closes: #31427)
Comment 7 Andrew Vasilyev 2022-11-18 15:45:39 MSK
  Чтобы не ругался в консоль на наличие пользователя, нужно в /dev/null
  перенаправлять, как при groupadd:

%_sbindir/groupadd -r -f davfs2 2>/dev/null || :
-%_sbindir/useradd -r -s /bin/false -d / -g davfs2 davfs2 ||:
+%_sbindir/useradd -r -s /bin/false -d / -g davfs2 davfs2 2>/dev/null ||:
Comment 8 Anton Farygin 2022-11-18 18:43:28 MSK
теперь в следующей сборке, спасибо за внимательность