09-18-2003
howto
Dear All ,
Kindly I have some questions , I need hints or answers please .
I have sparc4 , sun solaries 7 , mail server . i have about 5000 users , with no login shell , or home directories for the users .
they only have mail boxes in /var/mail dir .
now , I do not have any type of back up , what is the easiest solution to take back up for my server , or lets say for my 5000 user info. and emails , is there a utility that i can use in order to backup !!
I know /etc/passwd , /etc/shadow and /etc/group files .
any advice ?!?!?
------------------------------------------------------------------------
i was thinking of a silly solution ,,, i do not know if i can apply it ,,, for example if i took ( copy ) , /etc/passwd , /etc/shadow and /etc/group files , then i installed a new server and pasted them again ,,, am i gunna get same users and passwd's ??
thanks
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello ,
I have this RH6.2 box with sendmail8.9.3-20 (configured and running properly )
I have also (procmail3.14-2 , fetchmail5.3.1-1 ) installed but I don't know about them.
(( all installed as rpm packages))
okay ,,, here what I need:
I need to be able to use OUTLOOK or any other... (3 Replies)
Discussion started by: t_zone
3 Replies
2. UNIX for Dummies Questions & Answers
Dear Members,
I was reading a few posts and saw something about installing two Nics so one could use Full Duplex. I remember back in the day of dial up, you could have two modems and use one for upstream and one for downstream. This was called shotgunning. It seems that you can now do the same... (4 Replies)
Discussion started by: Phobos
4 Replies
3. Windows & DOS: Issues & Discussions
Hi all!
How would you do the equivalent of find ! -type f..... under windows?
Meaning, how under a directory could you find all files except those named *.mp3 for example?
the command under linux would be:
find $DIR ! -name "*.mp3" what would be that under windows?
Thanx for any ideas... (3 Replies)
Discussion started by: penguin-friend
3 Replies
4. UNIX for Dummies Questions & Answers
How do you write a command to :
A text line to a file in ./DATA1/archive.log using system () in awk
TodayDate Time scriptname.ksh filename.dat
system(echo `date '+%D %T` scriptname.ksh >> ./DATA/archive.log) --> syntax error +%D
Thanks for your help (0 Replies)
Discussion started by: britney
0 Replies
5. Linux
i have linux bootable cd.
I want similar bootalbe cd with some chnage in the disk. i.e, some file from the old cd has to replaced in newer one.
how do i do it? (3 Replies)
Discussion started by: yogesh_powar
3 Replies
6. Shell Programming and Scripting
Hi folks,
How do we create a file using shell script?
i mean to say that do we use
is it a good approch to do
echo "abc" >file
echo "xxxx" >>file
or is there any better method?
Thanks,
Amit (5 Replies)
Discussion started by: amit4g
5 Replies
7. Solaris
I just skimmed through the Administration Guide about LDAP and CIFS.
Well that's a whole lot of text. Does someone know a tutorial/introduction with some steps to make?
TIA (14 Replies)
Discussion started by: PatrickBaer
14 Replies
8. Shell Programming and Scripting
Hi all ,
i am having a table which contains start date and end date
for ex ..
startdate enddate
12/03/2011 12/04/2012
11/03/2011 20/05/2011
11/04/2011 28/07/2011
how to grep startdate = 12/03/2011
enddate = 28/07/2011
i need output :-
startdate:12/03/2012... (4 Replies)
Discussion started by: Venkatesh1
4 Replies
9. UNIX for Dummies Questions & Answers
Greetings,
I made an extraction on 2 different databases. What I need to do is to compare those extractions to know what is on database1 which is not on database2 and vice versa.
In those files, there are only numbers. So each line is just a number witch should be present on both file. If... (6 Replies)
Discussion started by: Sekullos
6 Replies
10. Shell Programming and Scripting
Hi
on AIX systems (6.x and 7.x) I have ksh scripts redirecting I/O, and running another script script000.ksh ie :
# my script
...
>${LOG}
>${LOGCTRL}
exec >>${LOG} 2>>${LOG}
. ${PROJECT}/.../script000.ksh
# hereafter, restore default I/O
...
Is it possible at the end of the... (2 Replies)
Discussion started by: Fundix
2 Replies
userdel(8) System Manager's Manual userdel(8)
NAME
userdel - delete an user account
SYNOPSIS
userdel [-D binddn] [-P path] [-r[-f]]
[--service service] [--help] [-u] [-v] account
DESCRIPTION
userdel deletes an user account from the local system files or a LDAP database and removes all entries that refer to account from the group
database. Before the account is removed, the USERDEL_PRECMD command as defined in login.defs(5) is called, after removal the
USERDEL_POSTCMD command is called.
OPTIONS
-r, --remove-home
Remove the whole home directory and the mail spool of the specified account. Files located in other directories will have to be
searched for and deleted manually.
-f, --force
This option is used to force the removal of files, even if not owned by the account.
--service service
Add the account to a special directory. The default is files, but ldap is also valid.
-D, --binddn binddn
Use the Distinguished Name binddn to bind to the LDAP directory. The user will be prompted for a password for simple authentica-
tion.
-P, --path path
The passwd and shadow files are located below the specified directory path. chpasswd will use this files, not /etc/passwd and
/etc/shadow.
--help Print a list of valid options with a short description.
-u, --usage
Print a short list of valid options.
-v, --version
Print the version number and exit.
FILES
passwd - user account information
shadow - shadow user account information
group - group information
SEE ALSO
passwd(1), login.defs(5), passwd(5), shadow(5), useradd(8), usermod(8)
AUTHOR
Thorsten Kukuk <kukuk@suse.de>
pwdutils October 2003 userdel(8)