1

I want to create a user and a directory in his HOME directory.

Unfortunately the HOME directory is not allways directly under /home. On some minions it is under /localhome and some use /users/.

2

You can use the ~USER/ syntax:

fred:
  user.present

dir_in_home:
  file.directory:
    - name: ~fred/foo

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.