Node:Changing an existing account, Next:Removing an existing account, Previous:Adding a new account, Up:WebPublish Accounts
To change an account's record, you must change the DATA in
an existing record in the account
database file. You can use
the -change command line option to change the DATA in an
account's record. The following DATA options can be used to change
an account:
-a or --account
-w or --website
-s or --server
-u or --user
-p or --password
-d or --directory
To change one or more DATA items in an account's record, specify
the name of the account to be changed, along with the DATA options
that are to be changed. If a DATA option is specified on the command
line then the DATA option's new value will overwrite the account's
DATA. If a DATA option is not specified on the command line then
the account's original DATA will remain unchanged. The only
exception to this is the -directory DATA option. To clear the
directory entry in an account's record, the --directory
DATA
option must contain the value /
.
NOTE: You cannot change an account's name. If you need to change the name of an account, you must create a new account with the new name. Then you can remove the account with the old name.
The following example will change the user name and the password
for the account personal
. The example will also clear the
--directory
DATA item in the account's record.
webpublish --change -F account -a personal -u name -p pass -d /