Difference between revisions of "Dirty Tools"
Line 52: | Line 52: | ||
==== dt-send-key ==== | ==== dt-send-key ==== | ||
+ | '''Synopsis'''<br> | ||
+ | <code>dt-send-key [--port=PORT] REMOTEHOST</code><br> | ||
+ | <code>dt-send-key [--revoke] [--port=PORT] REMOTEHOST</code><br> | ||
+ | |||
+ | '''Description'''<br> | ||
+ | Sends the public DSA key to REMOTEHOST. | ||
+ | |||
+ | |||
[[Category: Incomplete]] | [[Category: Incomplete]] | ||
---- | ---- |
Revision as of 14:04, 12 August 2007
Maintainer
Michael Weinberger
Introduction
These scripts work well for the author, but may not on your system. You may need to modify them to fulfill your requirements.
Download
smeserver-dirty-tools-0.0.3-0.noarch.rpm
Scripts
dt-rename-account
Synopsis
dt-rename-account OLD_ACCCOUNT NEW_ACCOUNT
Description
The script does the following:
- checks the new account name for maximum length and bad characters
- checks whether the new account already exists
- renames the account record key in the accounts database
- renames all occurrences of account name in pseudonym und group records in the accounts database
- renames the account in /etc/samba/smbpasswd
- renames the account in /etc/passwd and /etc/shadow
- renames the home directory path in /etc/passwd
- renames the account in /etc/group
- renames the home directory
dt-passwords-sync
Synopsis
dt-passwords-sync [--dry-run] --all SOURCESERVER
dt-passwords-sync [--dry-run] SOURCESERVER ACCOUNT
dt-passwords-sync [--dry-run] --ibays --all SOURCESERVER
dt-passwords-sync [--dry-run] --ibays SOURCESERVER IBAY
Description
The script sets the encrypted password string in /etc/shadow and the NT-Hash and Lanman-Hash in /etc/samba/smbpasswd with the values retrieved from server SOURCESERVER. For ibays only the encrypted password string in /etc/shadow is set.
The 'PasswordSet' property of the account/ibay record is set to 'no', if the encrypted password string start with two exclamation marks.
dt-datasync
Synopsis
dt-datasync [--dry-run] [--compress] SOURCESERVER ACCOUNT
dt-datasync [--dry-run] [--compress] --ibay SOURCESERVER IBAY
Description
Synchronizes the data of ACCOUNT or IBAY with the SOURCESERVER.
Path synchronized for accounts: /home/e-smith/files/users/ACCOUNT
Path synchronized for ibays: /home/e-smith/files/ibays/IBAY
dt-send-key
Synopsis
dt-send-key [--port=PORT] REMOTEHOST
dt-send-key [--revoke] [--port=PORT] REMOTEHOST
Description
Sends the public DSA key to REMOTEHOST.