...nearly there. Any awk experts able to shed light light on getting the :: removed rather than the ::: as it does now?
awk ' {
if(match($0,"^[\t ]*(set)*[\t ]*PATH[\t ]*=") != 0){
gsub("PATH[\t ]*=[\t ]*\\::","PATH=");
gsub("PATH[\t ]*=[\t ]*\"\\::","PATH=");
gsub(":\\::",":")...
I knocked this together today but it is not listing all files in the while true FILE loop. I tried two variations, one with the ultimate endgame matching files which are go+w and one without. The idea is to check the files in each users home directory to ensure nothing is go+r.
lsuser -a home...
Hi all,
I inherited this script which does not work on AIX:-
touch a; chmod og-rwx a; ui=($(echo 0027 -n | fold -w1));sys=($(perl -e 'printf "%04o\n",(stat shift)[2] & 07777' a | fold -w1));for (( i=0; i<4; i++ )); do echo -n $(( ${ui[$i]} & ${sys[$i]})); done
Basically, it is supposed to...
Hi all,
On AIX I had some problems with \s+ matching spaces so ended up using [[:blank:]]. But if there are multiple spaces between two words in a file, what is the best way of using [[:blank:]] without typing it more than once? Also the number of space varies per line, so there is no fixed...
Hi all,
I am trying to come up with the simplest way to parse root's path and then examine whether or not each directory is world writable or not. So far this works fine in listing the PATH names:-
for DIR in `su - root -c "echo $PATH"| tr ':' ' '`
do
ls -lLd $DIR
done
This lists:-...
Hi there,
This is giving me a bit of headache. Trying to grep out IP addresses from files, so looking for a "xxx.xxx.xxx.xxx" address format:-
cat /tmp/test |egrep "[0-9]{1,3}\.[0-9]{1,3}\.([0-9]{1,3}"
This is the command I came up with, sort 0-9, 1-3 times followed by a dot. It works but it...
Hi,
Log in as another user and check out the .profile for that user via vi. It sounds like your default profile may be the problem here i.e. there are invalid entries.
Best of luck
PSD
IBM Certified Specialist - AIX V4.3 Systems Support
IBM Certified Specialist - AIX V4 HACMP
Josh,
If you get the PVID of the failed disk just use:
reducevg rootvg <PVID of missing disk>
It seems that you did not remove the original hdisk1 from
the volume group, according to your steps above.
Cheers
PSD
IBM Certified Specialist - AIX V4.3 Systems Support
IBM Certified Specialist -...
amins,
This is a limitation is the native AIX grep command. You will need something like GNU grep to get past this limitation, you can download it for AIX 5.1 at:
http://aixpdslib.seas.ucla.edu/packages/grep.html
Cheers
PSD
IBM Certified Specialist - AIX V4.3 Systems Support
IBM Certified...
Ken,
This is most likely due to the name resolution of the server you are connecting from. Add both the hostname and fully qualified domain name into your .rhosts file to be safe, and of course make sure you can resolve both on the target server.
Cheers
PSD
IBM Certified Specialist - AIX...
David,
I am afraid not. I looked into this myself a couple of years
ago.
Cheers
Paul
PSD
IBM Certified Specialist - AIX V4.3 Systems Support
IBM Certified Specialist - AIX V4 HACMP
Simply:
#!/bin/ksh
if [ -o $2 ];
then
echo "Not enough arguments - you must specify a user id and username"
exit 1
fi
/usr/bin/mkuser id=$1 pgrp=staff groups=staff,security,system $2
Then you have to specify a user id and username and change the mkuser command to specify the standard...
David,
Simple answer: you need 5.2 and the commands to open and close the cdrom drive are, cdeject and cdutil -l respectively.
Cheers
PSD
IBM Certified Specialist - AIX V4.3 Systems Support
IBM Certified Specialist - AIX V4 HACMP
unixfreak,
There is no fileset containing the password dictionary, it's use is controlled by a parameter in /etc/security/user i.e.:
dictionlist = /etc/security/dictionary
Create a file called dictionary, or whatever you want to call it, owned by root with 600 permissions and add in any words...
Hi,
There is a full set of AIX 5.2 Cdroms' available on Ebay for a bargain buy it now price of £40.
I know that a number of people are after a copy.
Best of luck
PSD
IBM Certified Specialist - AIX V4.3 Systems Support
IBM Certified Specialist - AIX V4 HACMP
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.