AIX

Grow /tmp on AIX

Check for space: lsvg rootvg
Grow with 100MB: chfs -a size=+100M /tmp

By WladyX on 26 January, 2012 | AIX | A comment?

Subfolder Limitation

Some time a go i see the same limitations in AIX JFS and JFS2 . As i
know this is functional limitation and you can’t have more that 32765
subdirectories on one level :-(
This is hardcoded limitation of JFS/JFS2 and can’t be avoided
source
By WladyX on | AIX | A comment?

AIX don’t require user to change pass on first logon

Remove the ADMCHG flag for that user from /etc/security/passwd

source

By WladyX on 13 October, 2011 | AIX | A comment?

Sendmail on AIX

To add a mail relay server (smart host) to the Sendmail configuration file, edit the /etc/mail/sendmail.cf file, modify the DS line, and refresh the daemon:

# vi /etc/mail/sendmail.cf
DSsmtpgateway.xyz.com.au
# refresh -s sendmail

To log Sendmail activity, place the following entry in the /etc/syslog.conf file, create the log file, and refresh the syslog daemon:

# grep mail /etc/syslog.conf
mail.debug /var/log/maillog rotate time 7d files 4 compress
# touch /var/log/maillog
# refresh -s syslogd

source
.forward+: world writable directory:

The biggest surprise is likely to come from .forward and :include: files in unsafe directory paths (directory paths which are group or world writable). This is no longer allowed. This would mean that if user joe’s home directory was writable by group staff, sendmail would not use his .forward file. This behavior can be altered, at the possible expense of system security, by setting the DontBlameSendmail option. Items from these unsafe .forward and :include: files will be marked as unsafe addresses – the items can not be deliveries to files or programs. This behavior can also be altered via DontBlameSendmail.

I’ve set:

O DontBlameSendmail=forwardfileinunsafedirpath, forwardfileinunsafedirpathsafe

The first flag allows the forward file to be read, the second allows the items in the file to be marked as safe for file and program delivery.

source

How do I start/stop sendmail on AIX?

To start sendmail:
startsrc -s sendmail -a "-bd -q30m"
To stop sendmail:
stopsrc -s sendmail
To refresh sendmail:
refresh -s sendmail

 source

Purging a sendmail mailqueue on AIX

 

# ps -ef | grep sendmail

# kill -9 SENDMAIL_PIDS

Then, stop sendmail cleanly (the commands depend of your OS. This one works only on IBM AIX).

# stopsrc -s sendmail

You may check the number of messages that are in the queue, which will give you an idea of the time it will take to process the queue:

# sendmail -bp

Check that there are no longer any sendmail processes running:

# ps -ef | grep sendmail

# kill -9 SENDMAIL_PIDS

Rename the current mailqueue to another directory:

# mv /var/spool/mqueue /var/spool/omqueue 

Restart sendmail

# startsrc -s sendmail
0513-059 The sendmail Subsystem has been started. Subsystem PID is 62118
Now process the old queue (may take time, depending upon the number of messages to process):

# /usr/sbin/sendmail -oQ/var/spool/omqueue -q -v

Running /var/spool/omqueue/m7HKkOM60666 (sequence XXXX of XXXXX)
Running /var/spool/omqueue/m7HKkOM60666 (sequence XXXX+1 of XXXXX)...
etc... 

Now, you may safely delete all messages in the old queue:

# rm -rf /var/spool/omqueue

Create a new mailqueue directory.

# mkdir /var/spool/mqueue

Stop and start sendmail:

# stopsrc -s sendmail

# startsrc -s sendmail

source

Kill all sendmail processes

for i in `ps -ef |grep sendmail|awk '{ print $2 }'`; do kill -9 $i; done

By WladyX on 23 September, 2011 | AIX, Mail | A comment?

How to mount ISO images on HP-UX, Solaris and Linux

By WladyX on 6 January, 2010 | AIX, General, HP-UX | A comment?

Rossetta Sone for Unix

By WladyX on 25 May, 2009 | AIX, General, HP-UX | A comment?

Configure AIX syslogd

add to /etc/syslog.conf:
mail.debug      /var/log/mail
user.debug      /var/log/user
kern.debug      /var/log/kern
syslog.debug    /var/log/syslog
daemon.debug    /var/log/daemon
auth.debug      /var/log/secure
local2.debug    /var/log/sudo

restart syslogd:
[root@sys /] refresh -s syslogd
0513-095 The request for subsystem refresh was completed successfully.

Howto configure AIX syslogd (/etc/syslog.conf)

By WladyX on 16 March, 2009 | AIX, General | A comment?