04-22-2008
please search the forums
How to correct this error ? - Had been answered many times
10 More Discussions You Might Find Interesting
1. HP-UX
Hi
I am facing the problem where my HP Unix system date is in accordance with the current date but the logs written by the same is of previous time stamp.
Eg. System Date - Thu Mar 15 18:00:04 IST 2007
Syslogs -
Mar 15 12:30:10 mac@1 ftpd: FTP LOGIN FROM xx.xxx.xxx.xx , main
The ftp... (1 Reply)
Discussion started by: PradeepRed
1 Replies
2. HP-UX
hi everybody,
i m AIX guy....
due 2 some reason i was also askd 2 work in HP-UX
so i think all d concepts r same as AIX....
so i thought it s easy to learn by comparitve study....
if so
then wr can i get the materials????????
thanks in advance........ (1 Reply)
Discussion started by: rrlog
1 Replies
3. Shell Programming and Scripting
Hi,
Can anyone provide me with the Code Review Checklist for Shell scripts ??
Thanks in advance. (2 Replies)
Discussion started by: Shivdatta
2 Replies
4. Shell Programming and Scripting
Task:
Short Description: To find the files in a particular directory for the previous day, sort them by date and time and e-mail it across to a particular id.
And the time is divided into eight fields and based on the time the respective field should be updated with the flag 1.
Eight... (7 Replies)
Discussion started by: venkatesht
7 Replies
5. Shell Programming and Scripting
I have written a script that deletes files:
Requirement: i need to delete the files and to know how many files are deleted i.e the count of files and even i need to display when the started time of deletion and the ending time of deletion. I need to display these two times.
script:
... (2 Replies)
Discussion started by: venkatesht
2 Replies
6. Shell Programming and Scripting
Hi,
I need someone's help in writing a shell script. Since am very new i am stuck .
I have 2 files in the same dir.
==============================================
FileA
Table1~07/07/2009 00:00:00~4
Table1~07/06/2009 00:00:00~41
Table1~07/08/2009 00:00:00~4
... (8 Replies)
Discussion started by: vijayarajvp
8 Replies
7. Shell Programming and Scripting
Hi,
i have a script of following content
#!/usr/bin/sh
'exit 255' USR1
ncm_CheckDir.pl -a
/cnt/mgr/test/working/applog_CheckDir.log -c
/cnt/mgr/test/lib/config/bp_CheckDir.conf -s
/cnt/mgr/test/log/syslog
filename : BC_CheckDir
when i execute ie :
sh BC_CheckDir
i am getting... (11 Replies)
Discussion started by: psthariharan
11 Replies
8. Shell Programming and Scripting
Hi guys,
I am new to shell scripting and I need urgent assistance.
I have an xml like :
<AgreementNumberFull>13-WY-84252</AgreementNumberFull>
<AgreementNumberAbbr>WY84252</AgreementNumberAbbr>
<LineOfBusiness>F</LineOfBusiness>
<CompanyCode>0005</CompanyCode>
<UniqDigit/>
<StateCode/>
... (9 Replies)
Discussion started by: puneetkanchi
9 Replies
9. Shell Programming and Scripting
Hi,
I have a unix file with the following contents
#/usr/bin/sh
cd /ct/mr/prod/bin
ncm_AdjCob.pl -a /ct/mr/prod/wg/applog_AdjDev.log
-c /ct/mr/prod/lib/config/bcmp_AdjDevCob.conf
-s /ct/mr/prod/log/syslog
can anyone explain what it says.
particularly -a ,-c... (5 Replies)
Discussion started by: psthariharan
5 Replies
10. UNIX for Dummies Questions & Answers
hi all,
i have a data sm thg like this
28504 0 abc 148782859 42 101M nhmmmm ilopo abc 2345432
i want to get only the field which is just aftr abc i,e., 148782859, 2345432
i have used grep /abc\t/ filename to get that but its not working can any 1 help me out (5 Replies)
Discussion started by: anurupa777
5 Replies
PWCK(1) General Commands Manual PWCK(1)
NAME
pwck - verify integrity of password files
SYNOPSIS
pwck [-sr] [passwd shadow]
DESCRIPTION
pwck verifies the integrity of the system authentication information. All entries in the /etc/passwd and /etc/shadow are checked to see
that the entry has the proper format and valid data in each field. The user is prompted to delete entries that are improperly formatted or
which have other incorrectable errors.
Checks are made to verify that each entry has
- the correct number of fields
- a unique user name
- a valid user and group identifier
- a valid primary group
- a valid home directory
- a valid login shell
The checks for correct number of fields and unique user name are fatal. If the entry has the wrong number of fields, the user will be
prompted to delete the entire line. If the user does not answer affirmatively, all further checks are bypassed. An entry with a dupli-
cated user name is prompted for deletion, but the remaining checks will still be made. All other errors are warning and the user is
encouraged to run the usermod command to correct the error.
The commands which operate on the /etc/passwd file are not able to alter corrupted or duplicated entries. pwck should be used in those
circumstances to remove the offending entry.
OPTIONS
By default, pwck operates on the files /etc/passwd and /etc/shadow. The user may select alternate files with the passwd and shadow parame-
ters. Additionally, the user may execute the command in read-only mode by specifying the -r flag. This causes all questions regarding
changes to be answered no without user intervention. pwck can also sort entries in /etc/passwd and /etc/shadow by UID. To run it in sort
mode pass it -s flag. No checks are performed then, it just sorts.
FILES
/etc/passwd - user account information
/etc/shadow - encrypted password information
/etc/group - group information
SEE ALSO
group(5), passwd(5), shadow(5), usermod(8)
DIAGNOSTICS
The pwck command exits with the following values:
0 Success
1 Syntax Error
2 One or more bad password entries
3 Cannot open password files
4 Cannot lock password files
5 Cannot update password files
AUTHOR
Julianne Frances Haugh (jockgrrl@ix.netcom.com)
PWCK(1)