Hi
I need to compare shadow file sizes with their real file counterparts. If the shadow file size differs form the realfile size then it must send a mail. My problem is that our system has over 1600 shadowfiles in different directories, with different names. the only consistancy is the .sh file... (4 Replies)
Hi Gurus,
I am new to unix.
I have a requirement where i need to delete some files in a folder twice a week.
Suppose i have a folder AAA. In that i have files from 01/04/2008 to 10/04/2008
I want to remove all the files except last 3 days i.e., 10,9th & 8th.
Every week twice we want to... (2 Replies)
Hi Friends,
I am new to this , I am working on AIX system and my scenario is to retrive the files from remote system and remove the files from the remote system after retreving files. I can able to retrieve the files but Can't remove files in remote system. Please check my code and help me out... (3 Replies)
I've two files with data like below:
file1.txt:
AAA,Apples,123
BBB,Bananas,124
CCC,Carrot,125
file2.txt:
Store1|AAA|123|11
Store2|BBB|124|23
Store3|CCC|125|57
Store4|DDD|126|38
So,the field separator in file1.txt is a comma and in file2.txt,it is |
Now,the output should be... (2 Replies)
Hi Guys ,
we have one directory ...in that directory all files will be set on each day..
files must have header ,contents ,footer..
i wants to compare the header,contents,footer ..if its same means display an error message as 'files contents same' (7 Replies)
I hope I can explain this correctly. I am using Bash-4.2 for my shell.
I have a group of file names held in an array. I want to compare the names in this array against the names of files currently present in a directory. If the file does not exist in the directory, that is not a problem.... (5 Replies)
#!/bin/bash
#
name=$1
type=$2
number=1
for file in ./**
do
if
then
filenumber=00$number
elif
then
filenumber=0$number
fi
tempname="$name""$filenumber"."$type"
if (4 Replies)
I'm trying to write a script in a directory that goes through the column the user specifies of 4 files that are inside the directory and calculates the min and the max values. This means that if the user specifies column 5, the script will go through column 5 of all 4 files and all that should give... (2 Replies)
I have two file as given below which shows the ACL permissions of each file. I need to compare the source file with target file and list down the difference as specified below in required output. Can someone help me on this ?
Source File
*************
# file: /local/test_1
# owner: own
#... (4 Replies)
Discussion started by: sarathy_a35
4 Replies
LEARN ABOUT CENTOS
k5srvutil
K5SRVUTIL(1) MIT Kerberos K5SRVUTIL(1)NAME
k5srvutil - host key table (keytab) manipulation utility
SYNOPSIS
k5srvutil operation [-i] [-f filename]
DESCRIPTION
k5srvutil allows an administrator to list or change keys currently in a keytab or to add new keys to the keytab.
operation must be one of the following:
list Lists the keys in a keytab showing version number and principal name.
change Uses the kadmin protocol to update the keys in the Kerberos database to new randomly-generated keys, and updates the keys in the
keytab to match. If a key's version number doesn't match the version number stored in the Kerberos server's database, then the
operation will fail. Old keys are retained in the keytab so that existing tickets continue to work. If the -i flag is given,
k5srvutil will prompt for confirmation before changing each key. If the -k option is given, the old and new keys will be displayed.
delold Deletes keys that are not the most recent version from the keytab. This operation should be used some time after a change operation
to remove old keys, after existing tickets issued for the service have expired. If the -i flag is given, then k5srvutil will prompt
for confirmation for each principal.
delete Deletes particular keys in the keytab, interactively prompting for each key.
In all cases, the default keytab is used unless this is overridden by the -f option.
k5srvutil uses the kadmin(1) program to edit the keytab in place.
SEE ALSO kadmin(1), ktutil(1)AUTHOR
MIT
COPYRIGHT
1985-2013, MIT
1.11.3K5SRVUTIL(1)