Dirty Tools

From SME Server
Jump to navigationJump to search

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.3-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

dt-datasync

dt-send-key