-
-
Notifications
You must be signed in to change notification settings - Fork 3
vmoveuserdir.1
vmoveuserdir - move homedir of a virtual user to a new path
vmoveuserdir email_addr new_homedir
vmoveuserdir changes the current homedir to new_homedir, moving all existing files to the new path. vmoveuserdir has setuid bit set and can be run by the root user, by user having uid/gid of the domain in /etc/indimail/users/assign or if the user has the gid of the domain as a supplementary group.
If the environment variable POST_HANDLE is set, vmoveuserdir executes the program defined by the POST_HANDLE environment variable with the uid/gid of the domain in /etc/indimail/users/assign. If POST_HANDLE is not defined, the program /usr/libexec/indimail/vmoveuserdir will be executed with root privileges. The POST_HANDLE progam is run with email_addr, old_homedir and new_homedir as command line arguments. The POST_HANDLE program is executed as the last step after all earlier steps have been successful.
email_addr
Fully qualified email address (username + virtual domain component).
new_homedir
Path to which the homedir of the user needs to be assigned to
0 for success, 1 for any failure.