Skip to content

PSA: Latest (kernel) updates might break your samba config if ',' is in your credentials

Just upgraded to 5.11-1 and was welcomed by parts of my samba password being printed before login (cifs: Unknown parameter PARTS_OF_PASSWORD). I store my password in /etc/samba/credentials/Servername but some update broke parsing this file.

I guess this is caused by my password containing one comma. I yet have to find a way to escape characters in this file...

Also change your password if this happened to you as it is forever stored in the journal from now on.

EDIT: Relevant Bug Report on kernel.org

Edited 17 Mar 2021. We only hold this version.

27 points5 comments
Open on Reddit
About this post
Posted
Archived
Edited
Score
27 · 89% up
Kind
Text
ID
lrabo3

Author

10
posts
31
comments
4
media
View profile

5 comments

This should be the problem: https://github.com/torvalds/linux/commit/24e0a1eff9e2b9835a6e7c17039dfb6ecfd81f1f

cifs switched to using the default option parser instead of its homegrown solution. In the process, the escaping of commas as double commas was lost.

the mount helper reads the credential file and duplicates all commas: https://git.samba.org/?p=cifs-utils.git;a=blob;f=mount.cifs.c;h=7f898bbd215ab97a01a65a1c5a13378245eacce4;hb=HEAD#l328

14 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.