A
A
Anatoly2019-06-24 09:41:25
linux
Anatoly, 2019-06-24 09:41:25

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

4 answer(s)
Сергей, 2019-06-24
@feanor7

у mount нет таких опций насколько я вижу
посмотрите в сторону cli https://yandex.ru/support/disk/cli-clients.html

T
tuwkan, 2019-06-24
@tuwkan

https://serverfault.com/questions/367934/how-do-i-...
по идее как-то так и да, логин и пароль в отдельном файле

S
Sevastoporn, 2019-06-24
@Sevastoporn

попробуй pass=1234
По крайней мере при монтировании cifs указывается так.

ТыжСисАдмин, 2019-06-25
@POS_troi

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 question

Ask a Question

731 491 924 answers to any question