Difference between revisions of "Dirty Tools"

From SME Server
Jump to navigationJump to search
Line 8: Line 8:
  
 
=== Download ===
 
=== Download ===
[http://mirror.contribs.org/smeserver/contribs/michaelw/sme7/smeserver-dirty-tools-0.0.4-0.noarch.rpm smeserver-dirty-tools-0.0.4-0.noarch.rpm]
+
[http://mirror.contribs.org/smeserver/contribs/michaelw/sme7/smeserver-dirty-tools-0.0.5-0.noarch.rpm smeserver-dirty-tools-0.0.5-0.noarch.rpm]
  
 
=== Scripts===
 
=== Scripts===
Line 67: Line 67:
 
Sometimes Dovecot index files are corrupted after a restore. It is save to delete them all. Dovecot will rebuild them when the mailbox is accessed.
 
Sometimes Dovecot index files are corrupted after a restore. It is save to delete them all. Dovecot will rebuild them when the mailbox is accessed.
  
 +
==== dt-pw-generate ====
 +
'''Synopsis'''<br>
 +
dt-pw-generate [--number=C][--length=N] [--mixed-case] [--add-consonants]
 +
 +
'''Description'''<br>
 +
Generates a password that passes the SME password strength check and prints it on STDOUT.
 +
Defaults: --number=1 --length=8
  
 
[[Category: Contrib]]
 
[[Category: Contrib]]
 
----
 
----

Revision as of 12:35, 16 August 2007

Maintainer

Michael Weinberger

Introduction

Warning.png Warning:
This package contains a collection of scripts allowing the experienced admin to do things which usually should not be done in that way. Only use them if you know what you are doing. Run a backup before using them.


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.5-0.noarch.rpm

Scripts

dt-rename-account

Synopsis
dt-rename-account OLD_ACCCOUNT NEW_ACCOUNT

Description
The script does the following:

  1. checks the new account name for maximum length and bad characters
  2. checks whether the new account already exists
  3. renames the account record key in the accounts database
  4. renames all occurrences of account name in pseudonym und group records in the accounts database
  5. renames the account in /etc/samba/smbpasswd
  6. renames the account in /etc/passwd and /etc/shadow
  7. renames the home directory path in /etc/passwd
  8. renames the account in /etc/group
  9. 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-data-sync

Synopsis
dt-data-sync [--dry-run] [--compress] SOURCESERVER ACCOUNT
dt-data-sync [--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.


dt-dovecot-indexfiles-delete

Synopsis
dt-dovecot-indexfiles-delete

Description
Sometimes Dovecot index files are corrupted after a restore. It is save to delete them all. Dovecot will rebuild them when the mailbox is accessed.

dt-pw-generate

Synopsis
dt-pw-generate [--number=C][--length=N] [--mixed-case] [--add-consonants]

Description
Generates a password that passes the SME password strength check and prints it on STDOUT. Defaults: --number=1 --length=8