puppet-accounts icon indicating copy to clipboard operation
puppet-accounts copied to clipboard

home_mode is not supported ?

Open durga1983 opened this issue 7 years ago • 2 comments

I am unable to use home_mode which can set custom rwx permissions to the home directory. It gives an error " unsupported variable"

durga1983 avatar Sep 13 '17 12:09 durga1983

Could you post some code example?

You're probably looking for home_permissions parameter

accounts::users:
  john:
    home_permissions: '0740'
    groups: ["sudo", "users"]
    shell: "/bin/bash"

deric avatar Sep 14 '17 14:09 deric

Yes sir, I am trying to find the right variable for setting permissions like what you have mentioned.

Example

accounts::users:
   durgaprasad:
    ensure: present
    home_permissions: '0740'
    groups: sudo
    managehome: true
    shell: /bin/bash
    ssh_authorized_keys:
      durgaprasad_keys:
        type: 'ssh-rsa'
        key: ''

durga1983 avatar Sep 15 '17 10:09 durga1983