tag:blogger.com,1999:blog-5391325129965939458.post5974556386137707358..comments2024-03-18T01:53:00.753+01:00Comments on AIX for System Administrators: USER - GROUPaixhttp://www.blogger.com/profile/11198511213080760662noreply@blogger.comBlogger20125tag:blogger.com,1999:blog-5391325129965939458.post-5057124681528072102021-01-15T19:54:52.090+01:002021-01-15T19:54:52.090+01:00Hello ,
I need help in creating autoreset failed ...Hello ,<br /><br />I need help in creating autoreset failed attempt script for user dbas. that I can place in cron.<br /><br />parthhttps://www.blogger.com/profile/15291253754223291976noreply@blogger.comtag:blogger.com,1999:blog-5391325129965939458.post-87097583223452966122017-06-29T00:14:53.292+02:002017-06-29T00:14:53.292+02:00chuser "gecos=vio administrator" padmin ...chuser "gecos=vio administrator" padmin will workAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-5391325129965939458.post-48288772530232797252017-06-28T09:45:44.530+02:002017-06-28T09:45:44.530+02:00chuser gecos=vio administrator padmin
Usage: chuse...chuser gecos=vio administrator padmin<br />Usage: chuser [-R load_module] "attr=value" ... user<br /><br />in aix 6.1, can any one help on this issue.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5391325129965939458.post-24220498286155924742015-07-22T16:59:25.517+02:002015-07-22T16:59:25.517+02:00perl -e "print scalar localtime(1223451491)&q...perl -e "print scalar localtime(1223451491)"Anonymoushttps://www.blogger.com/profile/08668920983697689081noreply@blogger.comtag:blogger.com,1999:blog-5391325129965939458.post-89269074497464952912014-06-13T06:55:53.927+02:002014-06-13T06:55:53.927+02:00HISTTIMEFORMAT="%d/%m/%y %T "
Then
h...HISTTIMEFORMAT="%d/%m/%y %T " <br /><br />Then<br /><br />historyRAJIhttps://www.blogger.com/profile/02598792391411484609noreply@blogger.comtag:blogger.com,1999:blog-5391325129965939458.post-88094851165499936462014-06-11T17:52:35.696+02:002014-06-11T17:52:35.696+02:00Hi,
How can i see who all users where logged into...Hi,<br /><br />How can i see who all users where logged into the AIX server at a particular time? I mean the logged in history of the server for last 1 month.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5391325129965939458.post-38710158590082804132014-06-11T04:56:28.481+02:002014-06-11T04:56:28.481+02:00Hi , I am unable to create test user in one of the...Hi , I am unable to create test user in one of the AIX machine and getting error [ 91 Error changing "groups" ] <br />how we can trouble shoot this one ?<br /><br />bash-4.2# mkuser test<br />3004-63004-691 Error changing "groups"<br />bash-4.2# oslevel -s<br />6100-01-09-1015<br /><br />bash-4.2# cat /usr/lib/security/mkuser.default<br /><br />user:<br /> pgrp = staff<br /> groups = staff<br /> shell = /usr/bin/ksh<br /> home = /home/$USER <br /><br />admin:<br /> pgrp = system<br /> groups = system<br /> shell = /usr/bin/ksh<br /> home = /home/$USER <br /><br />bash-4.2# cat /usr/lib/security/mkuser.sys<br />#!/bin/ksh<br /># IBM_PROLOG_BEGIN_TAG <br /># This is an automatically generated prolog. <br /># <br /># bos61V src/bos/usr/lib/security/mkuser.sys.sh 1.12.3.1 <br /># <br /># Licensed Materials - Property of IBM <br /># <br /># COPYRIGHT International Business Machines Corp. 1989,1993 <br /># All Rights Reserved <br /># <br /># US Government Users Restricted Rights - Use, duplication or <br /># disclosure restricted by GSA ADP Schedule Contract with IBM Corp. <br /># <br /># IBM_PROLOG_END_TAG <br /># @(#)18 1.12.3.1 src/bos/usr/lib/security/mkuser.sys.sh, cmdsuser, bos61V, 1209A_61V 2/22/12 10:43:05<br />#<br /># COMPONENT_NAME: CMDSUSER<br />#<br /># FUNCTIONS: <br />#<br /># ORIGINS: 27<br />#<br />#<br /># (C) COPYRIGHT International Business Machines Corp. 1989,1993<br /># All Rights Reserved<br /># Licensed Materials - Property of IBM<br /># US Government Users Restricted Rights - Use, duplication or<br /># disclosure restricted by GSA ADP Schedule Contract with IBM Corp.<br />#<br />#<br /># This file is no longer user customizable. To have a customized mkuser.sys script<br /># create a file /etc/security/mkuser.sys.custom and the /etc/security/mkuser.sys<br /># will run this script instead of the original mkuser.sys script.<br /><br />export PATH=/usr/bin:/usr/sbin:$PATH<br /><br />#<br /># Check the number of arguments first<br />#<br />if [ $# -ne 4 ] <br />then<br /> exit 1<br />fi<br /><br />#<br /># If a customer mkuser.sys.custom script exists<br /># then execute it instead and exit passing all arguments<br /># and returning the return code from mkuser.sys.custom<br />#<br />if [ -x /etc/security/mkuser.sys.custom ]<br />then<br /> /etc/security/mkuser.sys.custom $*<br /> exit $?<br />fi<br /><br /><br />#<br /># Create the named directory if it does not already exist<br /># and set the file ownership and permission<br />#<br />if [ ! -d $1 ]<br />then<br /> last=$1<br /><br /> while [ 1 ]<br /> do<br /> dir=`dirname $last`<br /> <br /> if [ -d $last ]<br /> then<br /> break<br /> elif [ -d $dir ]<br /> then<br /> mkdir -p $1<br /> chown -R bin:bin $last<br /> chmod -R 700 $last<br /> break<br /> else<br /> last=$dir<br /> fi<br /> done <br /> <br /> chgrp "$3" $1<br /> chown $2 $1<br />fi<br /><br />#<br /># Copy the user's default .profile if it does not already<br /># exist and change the file ownership, etc.<br />#<br />if [ `basename $4` != "csh" ] && [ ! -f $1/.profile ]<br />then<br /> cp /etc/security/.profile $1/.profile<br /> chmod u+rwx,go-w $1/.profile<br /> chgrp "$3" $1/.profile<br /> chown $2 $1/.profile<br /><br />else<br /> if [ `basename $4` = "csh" ] && [ ! -f $1/.login ] <br /> then<br /> echo "#!/bin/csh" > "$1"/.login<br /> echo "set path = ( /usr/bin /etc /usr/sbin /usr/ucb \$HOME/bin /usr/bin/X11 /sbin . )" >> "$1"/.login<br /> echo "setenv MAIL \"/var/spool/mail/\$LOGNAME\"" >> "$1"/.login<br /> echo "setenv MAILMSG \"[YOU HAVE NEW MAIL]\"" >> "$1"/.login<br /> echo "if ( -f \"\$MAIL\" && ! -z \"\$MAIL\") then" >> "$1"/.login<br /> echo " echo \"\$MAILMSG\"" >> "$1"/.login<br /> echo "endif" >> "$1"/.login<br /> chmod u+rwx,go-w $1/.login<br /> chgrp "$3" $1/.login<br /> chown $2 $1/.login<br /> fi<br />fi<br />bash-4.2# <br />RAJIhttps://www.blogger.com/profile/02598792391411484609noreply@blogger.comtag:blogger.com,1999:blog-5391325129965939458.post-72211440105470245542014-03-08T09:37:25.323+01:002014-03-08T09:37:25.323+01:00Mar 4 02:05:44 aaaa daemon:err|error ftpd[1651508...Mar 4 02:05:44 aaaa daemon:err|error ftpd[16515082]: failed to write /var/adm/wtmp File too large<br />Mar 4 02:05:44 aaaa daemon:err|error ftpd[16515082]: failed to write /var/adm/wtmp File too large<br />Mar 4 02:05:45 aaaa daemon:err|error ftpd[16515084]: failed to write /var/adm/wtmp File too large<br />Mar 4 02:05:45 aaaa daemon:err|error ftpd[16515084]: failed to write /var/adm/wtmp File too large<br />Mar 4 02:05:47 aaaa daemon:err|error ftpd[53674066]: failed to write /var/adm/wtmp File too large<br /><br />getting the above and wtmp file size is 2GB, will it affect ftp process?Sridhar Kumar Nhttps://www.blogger.com/profile/16299467889842047042noreply@blogger.comtag:blogger.com,1999:blog-5391325129965939458.post-81376526708609043382013-10-24T23:24:22.575+02:002013-10-24T23:24:22.575+02:00Hi admin..
I have recently faced a question in an ...Hi admin..<br />I have recently faced a question in an interview.<br /><br />What is the maximum no of users i can create in AIX.<br /><br />Thank you...Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5391325129965939458.post-73282389724533006092013-10-04T20:57:06.428+02:002013-10-04T20:57:06.428+02:00Hi, those which are mentioned in the "Copying...Hi, those which are mentioned in the "Copying users betwwen AIX systems"aixhttps://www.blogger.com/profile/11198511213080760662noreply@blogger.comtag:blogger.com,1999:blog-5391325129965939458.post-10863310654678234672013-10-04T17:18:56.271+02:002013-10-04T17:18:56.271+02:00Hi....
If you hit mkuser commad what are the file...Hi....<br />If you hit mkuser commad what are the files will get updated...Anonymoushttps://www.blogger.com/profile/11301815741892724936noreply@blogger.comtag:blogger.com,1999:blog-5391325129965939458.post-23416997589401677472013-08-15T18:02:42.878+02:002013-08-15T18:02:42.878+02:00please provide me the syntax to create a user with...please provide me the syntax to create a user with name,home dir, passwd,f size,passwd expiry etcAnonymoushttps://www.blogger.com/profile/15811542522942472604noreply@blogger.comtag:blogger.com,1999:blog-5391325129965939458.post-16523785688435406012012-12-20T10:10:19.418+01:002012-12-20T10:10:19.418+01:00Hi, that script looks OK :)
I did a test with 1 us...Hi, that script looks OK :)<br />I did a test with 1 user and it worked for me, BUT there are few notes:<br /><br />1. When you do the copy, the tar command contains "...cd /home/user1", but that directory does not exist at that moment. It is not a problem, because that command will create the mentioned directory. I just noted here, that not be surprised, when you see some outputs, that direcory not found.<br /><br />2. After I copied the above mentioned files and the user home dir, on the new server I could not do "su - user1 ". This happened because /etc/security/user file was different on the servers:<br /><br />old server:<br />default:<br />admin = false<br />login = true<br />su = true <--<br /><br /><br />new server:<br />default:<br />admin = false<br />login = true<br />su = false <--<br /><br />After I updated this file on the new server I could do "su - user1 " with the user password, so everything was OK.<br /><br />I just mentioned this because usually this method is workable, but if you have specific user settings, then other files should be checked or copied as well. (/etc/security/limits, /etc/security/environ, /etc/security/user)aixhttps://www.blogger.com/profile/11198511213080760662noreply@blogger.comtag:blogger.com,1999:blog-5391325129965939458.post-77676831230355249422012-12-18T22:52:48.805+01:002012-12-18T22:52:48.805+01:00Hi. I have checked that document but this document...Hi. I have checked that document but this document does not have information about how to migrate /home an folders inside /home.<br /><br />I'm going to try the following scripts. Please your comments:<br /><br />URL: http://www.tek-tips.com/viewthread.cfm?qid=1587110<br /><br />If you're moving to a brand new system with no users created yet you can simply move the following files to the new box from the old box (please create backup files at the destination before the copy):<br /><br />/etc/passwd<br />/etc/group<br />/etc/security/passwd<br />/etc/security/group<br /><br />Then backup their home directories and restore them at the new box.<br />Using SSH it can be this easy:<br /><br /><br /><br />Code:<br />tar cvf - /home/user1 | ssh newserver " ( cd /home/user1 ; tar xvf - ) "<br /><br />Another thing to do once you have moved the files over is run the following commands to clear up any discrepancies:<br /><br />usrck -t ALL<br />pwdck -t ALL<br />grpck -t ALL Anonymoushttps://www.blogger.com/profile/14366379688826832630noreply@blogger.comtag:blogger.com,1999:blog-5391325129965939458.post-66524335282244593052012-12-18T22:34:28.962+01:002012-12-18T22:34:28.962+01:00Hi, IBM published this documentation: http://www-0...Hi, IBM published this documentation: http://www-01.ibm.com/support/docview.wss?uid=isg3T1000231<br />I would follow that, but to make sure please google, some forums are also dicussed this topic.<br />(I'll do some tests and after that I will publish it on this blog.)aixhttps://www.blogger.com/profile/11198511213080760662noreply@blogger.comtag:blogger.com,1999:blog-5391325129965939458.post-65870268009789365002012-12-18T21:41:39.009+01:002012-12-18T21:41:39.009+01:00Hi How can I migrate and copy the /home, users, pa...Hi How can I migrate and copy the /home, users, passwords and groups from one aix server to another. The second aix server is a brand new aix.<br /><br />Thanks for your help.<br />Regards<br />Paul.Anonymoushttps://www.blogger.com/profile/14366379688826832630noreply@blogger.comtag:blogger.com,1999:blog-5391325129965939458.post-35371558202791367302012-01-06T08:47:38.109+01:002012-01-06T08:47:38.109+01:00From your description it looks like multicp is the...From your description it looks like multicp is the name of your script. From the error message it seems to be your shell can't find your script under that location. So, I think you should add to your PATH variable (in your profile or environment file) that directory where your script exists, or make sure your script exists uner that location where something is referring to it.aixhttps://www.blogger.com/profile/11198511213080760662noreply@blogger.comtag:blogger.com,1999:blog-5391325129965939458.post-42970343491823511482012-01-05T23:26:10.765+01:002012-01-05T23:26:10.765+01:00I have an AIX script that copies files for a backu...I have an AIX script that copies files for a backup before over-writing data files that are being replaced. I have one customer that returns "multicp not found". I have tried several diff permissions and still not found. I tried recreating the file on the system and have the same problem. Just one customer, one box?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5391325129965939458.post-37509766925004666852011-12-20T10:29:10.570+01:002011-12-20T10:29:10.570+01:00Please check this link:
http://www.perlmonks.org/?...Please check this link:<br />http://www.perlmonks.org/?node_id=16212aixhttps://www.blogger.com/profile/11198511213080760662noreply@blogger.comtag:blogger.com,1999:blog-5391325129965939458.post-39285264926199047712011-12-13T11:49:06.458+01:002011-12-13T11:49:06.458+01:00How can I format the output of localtime? =
perl -...How can I format the output of localtime? =<br />perl -le 'print scalar localtime 1223451491'Anonymousnoreply@blogger.com