-1
사용자가 CIFS 공유를 마운트 할 수있게 해주는 systemd 서비스를 설정하려고합니다. 이것은 내가 가진 것입니다 :Systemd service ask password
mount_cifs @
[Unit]
Description=Mount CIFS share by %i
After=network-online.target
Wants=network-online.target
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStartPre=/bin/mkdir -p /mnt/dir
ExecStart=/bin/mount -t cifs //remote/path /mnt/dir -o username=%i
ExecStop=/bin/umount /mnt/dir
ExecStopPost=/bin/rmdir /mnt/dir
그러나
, 내가 systemctl start [email protected]
실행할 때, 나는 다음과 같은 메시지가 .service :
Password for [email protected]//remote/path:
Broadcast message from [email protected] (Wed 2016-10-26 21:24:56 CEST):
Password entry required for 'Password for [email protected]//remote/path:' (PID 5677).
Please enter password with the systemd-tty-ask-password-agent tool!
내가 사용하기로하고 정확히 어떻게
이 도구?
systemd-tty-ask-password-agent 도구에 대한 설명서를 찾은 후 사용 방법에 대해 추가 질문이 있습니까? –
[documentation] (https://www.freedesktop.org/software/systemd/man/systemd-tty-ask-password-agent.html)을 읽었으나 어느 명령을 사용해야하는지 이해하지 못합니다. 유저에게 패스워드를 요구한다. 'systemd-tty-ask-password-agent' (+ 옵션)를 입력해도 많은 일이 발생하지 않습니다 ... – gncs
[systemd 및 암호 프롬프트에 관한 네트워크상의 관련 질의 응답] (http://stackexchange.com/search ? q = systemd + passwords), 특히이 [시스템 부팅시 암호를 요구하는 시스템] (http://unix.stackexchange.com/questions/77769/prompt-for-password-during-boot-with-systemd-service)) –