8000 comtrya/docs/src/user.md at main · DominicD/comtrya · GitHub
[go: up one dir, main page]

Skip to content

Latest commit

 

History

History
57 lines (43 loc) · 1.29 KB

user.md

File metadata and controls

57 lines (43 loc) · 1.29 KB

User

  • user.add
  • user.group

user.add

Adds a user to the system.

Key Type Ooptional Description
action string no user.add
fullname string no full name of user
home_dir string no home directory of user
username string no username of user
shell string yes shell for user
group list yes groups to add new user to

Example

- action: user.add
  fullname: testuser
  home_dir: /home/test
  username: test
  shell: sh
  
## Add user while also adding to groups
- action: user.add
  fullname: testuser
  home_dir: /home/test
  username: test
  shell: sh
  group:
  - testgroup

user.group

Adds an already created user to a group.

Key Type Optional Description
action string no user.group
username string no username of user to add to group
group list no groups to add user to

Example

- action: user.group
  username: test
  group:
  - wheel
0