maindavfs2 - Support: sr #110454, mount.davfs2 interactive password...

 
 

sr #110454: mount.davfs2 interactive password prompt in clear text

Submitter:  None
Submitted:  Mon 08 Mar 2021 07:43:05 PM UTC
   
 
Category:  None Priority:  5 - Normal
Severity:  2 - Minor Status:  Done
Privacy:  Public Assigned to:  _71007
Originator Email:  -email is unavailable- Open/Closed:  Open
Operating System:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 09 Mar 2021 10:27:27 AM UTC, comment #1: 

Do not use option "username" this way. The manual explicitely advises against. The option is for use with pam-mount only.

You can

  • not configure any credentials at all and davfs2 will prompt you for username and password
  • configure the username in the secrets file and davfs2 will prompt you for the password
  • configure username and password in the secrets file.


In none of these cases will the password be readable on the terminal.

Werner

P.S.: People who give advise on the internet have not read the original documentation themselves in many cases.

- <_71007>
Mon 08 Mar 2021 07:43:05 PM UTC, original submission:  

Hello when attempting to authenticate to a webdav share like this:

mount -t davfs https://<fqdn_webdav> /mnt/webdav_mount/ -o username=user

I am prompted to enter a password which is shown in clear text at the interactive terminal:

  Password:  this_in_clear_text

Obviously when multiple people are looking at the same shell the password is visible to everyone. I understand secrets can be stored making this prompt not necessary but when we don't want to store passwords in a file providing the password interactively is preferable. Could this be changed to *'s or simply no output?

Cheers

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by _71007 (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-03-09 _71007 StatusNone Done
        Assigned toNone _71007

    Back to the top

    Powered by Savane 3.14-8eb0.
    Corresponding source code