> kena kasus nih...
> OS mail server RH9, waktu itu system crash, mount /proc failed,
> ngembalikan via Linux Rescue g berkutik, data account email di folder
> /home tak backup (*.tgz), trus install ulang, dan BODOH-nya, file
> password account yang di /etc/shadow g ke backup. Trus? gmn solusi
> terbaik nih ngembalikan data email nya, berhubung CUMA data /home/user
> aja yang ke backup, masak harus useradd + passwd satu-satu?
> sumpek dah!!
bikin file text yang menyimpan data nama user (diambil dari nama direktori)
# cat ls > dirlist.txt
bikin shell script otomatisasi pembuatan user
|#!/bin/bash
cat dirlist.txt |
while read dir;
do
echo "Create User:$dir --> Password: $dir"
# create user
useradd $dir
# create password
echo "$dir:$dir" | chpasswd
# change owner
chown -R "$dir:$dir" $dir
done
exit 0
simpan dengan nama (misal) create_user.sh
jalankan scriptnya
# ./create_user.sh
jret!! beresss!!!
cerita lebih lengkap baca disini
http://sandynata.wordpress.com/2007/01/05/mail-server-yang-merepotkan-itu-akhirnya/
|
--
Best Regards,
Sandy Suryadinata
--------------------------------------------
Department of UTI (Unit Teknologi Informasi)
2nd Floor, J - Building,
Malangkucecwara School of Economics
Phone : +62 341 491813 - Ext. 125, 127
http://www.stie-mce.ac.id
--------------------------------------------
blog + http://sandynata.wordpress.com
[Non-text portions of this message have been removed]
================> HAPUS IKLAN DIATAS DAN FOOTER INI JIKA ME-REPLY
<================
Posting : [email protected]
Archive : http://www.mail-archive.com/[email protected]/
www.mitek.unibraw.ac.id || himamitek.brawijaya.ac.id
************************************************************************************
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/mitek/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/mitek/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/