Informix Error -26718: Cannot alter the user (<username>) to add a home directory because the property value already exists. Use the MODIFY option instead of the ADD option. </username>
Cause and resolution
Cannot alter the user (<username>) to add a home directory because the property value already exists. Use the MODIFY option instead of the ADD option. </username>
An ALTER USER operation can only add a home directory if no home directory exists. If you want to modify the home directory, use the MODIFY option in the ALTER statement.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-26718 fires when ALTER USER ... ADD HOMEDIR targets a user that already has a home
directory — per the official guidance.
- The user already has a home directory, and
ADDwas used instead ofMODIFY, per the official guidance — the direct, only cause.
Solutions / Resolution
- Use
MODIFYinstead ofADDto change the home directory, per the official guidance.
Examples
N/A
No specific triggering statement is documented beyond adding a home directory that already exists.
Diagnostic Checks
- Check whether the user already has a home directory, and use
MODIFYinstead ofADDif so.
Related Errors / Related Topics
- -26706 — "Cannot add a password to the user (%s) because a password already
exists. Use the MODIFY option instead of the ADD option." The same class of
ADD-vs-MODIFYrestriction, for the password property rather than home directory.
ALTER USER ... ADD HOMEDIR targeted a user who already has one — use MODIFY instead.