Here are instructions on how to get the pware Samba running on AIX 5.3.
1. Install these packages from the AIX installation CD:
– ldap.client.rte
– ldap.client.adt
2. Download these packages:
1 2 3 4 |
server:root><strong>mkdir pware-samba</strong> server:root><strong>cd pware-samba</strong> server:root><strong>xargs wget -nd <<EOF http://pware.hvcc.edu/download/aix53-64/pware53-64.samba.3.4.2.0.bff.gz http://pware.hvcc.edu/download/aix53-64/pware53-64.base.5.3.0.0.bff.gz http://pware.hvcc.edu/download/aix53-64/pware53-64.cyrus-sasl.2.1.22.0.bff.gz http://pware.hvcc.edu/download/aix53-64/pware53-64.gettext.0.17.0.0.bff.gz http://pware.hvcc.edu/download/aix53-64/pware53-64.krb5.1.6.3.0.bff.gz http://pware.hvcc.edu/download/aix53-64/pware53-64.libiconv.1.13.1.0.bff.gz http://pware.hvcc.edu/download/aix53-64/pware53-64.ncurses.5.7.0.1.bff.gz http://pware.hvcc.edu/download/aix53-64/pware53-64.openldap.2.4.19.0.bff.gz http://pware.hvcc.edu/download/aix53-64/pware53-64.openssl.0.9.8.11.bff.gz http://pware.hvcc.edu/download/aix53-64/pware53-64.popt.1.10.4.0.bff.gz http://pware.hvcc.edu/download/aix53-64/pware53-64.bdb.4.7.25.4.bff.gz http://pware.hvcc.edu/download/aix53-64/pware53-64.rsync.3.0.6.0.bff.gz http://pware.hvcc.edu/download/aix53-64/pware53-64.zlib.1.2.3.0.bff.gz EOF</strong> server:root><strong>for i in *.gz; do gunzip $i; done</strong> |
From: http://pware.hvcc.edu/download/aix53-64/
3. Install the packages.
The installed files go under /opt/pware64
Samba configuration file is /opt/pware64/lib/smb.conf
4. Extremely simple Samba configuration file:
1 2 3 4 5 6 7 8 9 10 11 |
[global] workgroup = MYGROUP log file = /var/log/%m.log max log size = 500 [myshare] comment = Sample share path = /tmp/myshare public = yes writable = yes browseable = yes |
5. Enable POSIX Asynchronous IO if needed:
1 2 3 4 |
server:root><strong>mkdev -l posix_aio0</strong> posix_aio0 Available server:root><strong>lsdev -Cc posix_aio</strong> posix_aio0 Available Posix Asynchronous I/O |
The posix_aio device is needed, otherwise all binaries will complain somewhat like this:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
exec(): 0509-036 Cannot load program ./smbclient because of the following errors: 0509-130 Symbol resolution failed for /usr/lib/libc.a[posix_aio_64.o] because: 0509-136 Symbol _posix_kaio_rdwr64 (number 2) is not exported from dependent module /unix. 0509-136 Symbol _posix_listio64 (number 3) is not exported from dependent module /unix. 0509-136 Symbol _posix_acancel64 (number 4) is not exported from dependent module /unix. 0509-136 Symbol _posix_iosuspend64 (number 5) is not exported from dependent module /unix. 0509-136 Symbol _posix_aio_nwait (number 6) is not exported from dependent module /unix. 0509-136 Symbol _posix_aio_nwait64 (number 7) is not exported from dependent module /unix. 0509-136 Symbol _posix_aio_nwait_timeout (number 8) is not exported from dependent module /unix. 0509-136 Symbol _posix_aio_nwait_timeout64 (number 9) is not exported from dependent module /unix. 0509-136 Symbol _posix_iofsync64 (number 10) is not exported from dependent module /unix. 0509-026 System error: Error 0 0509-192 Examine .loader section symbols with the 'dump -Tv' command. |
So if you run into this error message, create the POSIX AIO device.
6. Run samba
1 2 |
server:root><strong>/opt/pware64/sbin/smbd</strong> server:root><strong>/opt/pware64/sbin/nmbd</strong> |
7. Add to inittab for automatic start at boot time
1 2 |
server:root><strong>mkitab nmbd:2:once:/opt/pware64/sbin/nmbd</strong> server:root><strong>mkitab smbd:2:once:/opt/pware64/sbin/smbd</strong> |
Links
http://pware.hvcc.edu/
http://pware.hvcc.edu/AIX-Samba.pdf
http://pware.hvcc.edu/download/
http://www.ibm.com/developerworks/aix/library/au-aix_samba/index.html
All the http://pware.hvcc.edu/ links are broken/defunct – Nov-2017