Samba on AIX 5.3

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:

server:root>mkdir pware-samba
server:root>cd pware-samba
server:root>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
server:root>for i in *.gz; do gunzip $i; done

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:

[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:

server:root>mkdev -l posix_aio0
posix_aio0 Available
server:root>lsdev -Cc posix_aio
posix_aio0 Available  Posix Asynchronous I/O

The posix_aio device is needed, otherwise all binaries will complain somewhat like this:

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

server:root>/opt/pware64/sbin/smbd
server:root>/opt/pware64/sbin/nmbd

7. Add to inittab for automatic start at boot time

server:root>mkitab nmbd:2:once:/opt/pware64/sbin/nmbd
server:root>mkitab smbd:2:once:/opt/pware64/sbin/smbd

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

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • LinkedIn
  • Technorati
  • Google

Leave a Reply

*
To prove you're a person (not a spam script), type the security word shown in the picture.
Anti-Spam Image