Node:Changing an existing account, Next:, Previous:Adding a new account, Up:WebPublish Accounts



Changing an existing account

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
The account name
-w or --website
The local directory containing the website.
-s or --server
The FTP server to transfer the website too.
-u or --user
The user name to use when logging into the server.
-p or --password
The password to use when logging into the server.
-d or --directory
An optional subdirectory on the server to publish the website too.

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 /