You are not logged in.
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
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..........................
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline