Ask Your Question
0

Samba/CIFS authentication?

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

Rob D. gravatar image

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

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

Comments

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 -0500 )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 -0500 )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 -0500 )edit

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

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

1 Answer

Sort by » oldest newest most voted
-1

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

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

Comments

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 -0500 )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

Stats

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

Seen: 265 times

Last updated: Apr 12 '15