username('root') # requires that only root may install the package userExists('youssef') # requires that a username youssef exists userAdd('youssef','physics','/bin/csh','/home/youssef') # creates a user youssef if necessaryIf the installer doesn't have priviledge to perform these operations, Pacman will provide sensible error messages.