Ask Your Question

Samba/CIFS authentication?

asked 2015-04-11 18:37:35 -0600

Rob D. gravatar image

updated 2015-04-12 10:53:33 -0600

What's the best way to authenticate Samba/CIFS users using Puppet (ubuntu trusty x86_64)? I'd rather not leave passwords in cleartext in an auto.smb.credentials file.

edit retag flag offensive close merge delete


You want what to do what? su <username>?
Where (on a node or on the master)? Y (exec resource)?

Kai Burghardt gravatar imageKai Burghardt ( 2015-04-11 19:17:00 -0600 )edit

I want to puppetize sharing a folder on a small mixed Linux/OSX network, but I want the share to require some kind of authentication. Manually, I can use a tool like `smbpasswd`, but I don't know how to manage authentication using Puppet.

Rob D. gravatar imageRob D. ( 2015-04-12 13:58:19 -0600 )edit

By „sharing a folder“ you mean a network mount? Mounting data from a central fileserver on the clients? Or do you mean copying data with file-resources? So the files got only copied, if the users authenticates as himself? The latter one won't be possible as puppet is not interactive(agent daemonizd)

Kai Burghardt gravatar imageKai Burghardt ( 2015-04-12 23:11:23 -0600 )edit

Yes, a network mount is what I'm after.

Rob D. gravatar imageRob D. ( 2015-04-13 12:31:37 -0600 )edit

1 Answer

Sort by » oldest newest most voted

answered 2015-04-12 08:30:49 -0600

YevgenyT gravatar image

Does the target machine is a member of AD? In this case you can use Kerberos authentication without supplying credentials in clear case (if at all).

edit flag offensive delete link more


No, I haven't got AD set up. This network is not big enough (yet) to need AD.

Rob D. gravatar imageRob D. ( 2015-04-12 10:50:30 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2015-04-11 18:37:35 -0600

Seen: 334 times

Last updated: Apr 12 '15