You are not logged in.

#1 2011-01-22 11:17:51

RufusD
Member
Registered: 2010-03-21
Posts: 86

How to safely store my SMB password on the client?

Hi there!
I set up a samba share. On the client, for the time being, I put username=foo and passwd=bar in /etc/fstab. Is there a safer place to store these? I'm aware of the idea of putting credentials=/path/to/file in the fstab, but thas's not my point, since the credentials file, again, has to be readable by the user performing the mount. I'd like to have the credentials in some place readable only by root, or even better have them stored encryptedly.

Any ideas?
Best wishes,
Rufus

Offline

#2 2011-01-22 12:27:14

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,224
Website

Re: How to safely store my SMB password on the client?

I think the credential file can be owned by root and mode 600 since 'mount' is suid to root, so the user wouldn't be able to read it but when they run 'mount' it will still be able to be read by the mount process (running as root).

Still not ideal, but when you're dealing with Windows..........................

Offline

Board footer

Powered by FluxBB