Difference between revisions of "Dirty Tools"
From SME Server
Jump to navigationJump to searchm (Removed duplicate page name) |
|||
Line 12: | Line 12: | ||
=== Scripts=== | === Scripts=== | ||
==== dt-rename-account ==== | ==== dt-rename-account ==== | ||
+ | '''Synopsis'''<br> | ||
+ | <code>dt-rename-account OLD_ACCCOUNT NEW_ACCOUNT</code><br> | ||
+ | |||
+ | '''Description'''<br> | ||
+ | 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 ==== | ==== dt-passwords-sync ==== | ||
==== dt-datasync ==== | ==== dt-datasync ==== |
Revision as of 12:42, 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