• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to automate linux/freefsd useradd/usermod/userdel?  RSS feed

 
Siegfried Heintze
Ranch Hand
Posts: 417
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where can I download the jar files that implement an API for automating useradd/userdel/usermod operations? What is the name of the API?

I'd like to write a groovy script to be run by a cron job once a day that will add, delete and modify user accounts on a FreeBSD system based on an XML file of user names that comes from a windows system.
Thanks,
siegfried
 
Rob Spoor
Sheriff
Posts: 21135
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know of any such API. However, you can use ProcessBuilder to execute the command. Just make sure to read When Runtime.exec() won't.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!