Skip to content

vmoveuserdir.1

Manvendra Bhangui edited this page Oct 1, 2024 · 3 revisions

NAME

vmoveuserdir - move homedir of a virtual user to a new path

SYNOPSYS

vmoveuserdir email_addr new_homedir

DESCRIPTION

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.

POST HANDLE

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.

OPTIONS

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

RETURN VALUES

0 for success, 1 for any failure.

SEE ALSO

vrenameuser(1)

Clone this wiki locally