Answer the question
In order to leave comments, you need to log in
How to add a password to the mount command?
I connect to yandex disk.
The command looks like this:
mount -t davfs https://webdav.yandex.ru /mnt/yandex/ -o [email protected],password=1234
I get an error:
Unknown option password=1234
How to set a password for webdav in a line ?
PS. I know how to set a password in /etc/davfs2/secrets, and everything works. I need in line.
P.S.S. There is nothing in man.
Answer the question
In order to leave comments, you need to log in
у mount нет таких опций насколько я вижу
посмотрите в сторону cli https://yandex.ru/support/disk/cli-clients.html
https://serverfault.com/questions/367934/how-do-i-...
по идее как-то так и да, логин и пароль в отдельном файле
попробуй pass=1234
По крайней мере при монтировании cifs указывается так.
DavFS does not support password transfer via fstab, only via files in etc or the user's home directory (600) - security
:)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question