How To
Summary
Methods to remove or disable CDE
Objective
The Common Desktop Environment (CDE) often triggers security scanning warnings.
Common issues include:
- ToolTalk Database Server
- Common Desktop Environment (CDE)applications might use a ToolTalk database server to create and send messages between recipients. Most security hardening guidance recommends disabling this service if it is not required.
- XDMCP
- In the Common Desktop Environment (CDE), a remote display can query a login screen (dtgreet) from the AIX host, by using 'X -query hostname' through X Display Manager Control Protocol (XDMCP) on UDP Port 177. XDMCP lacks encryption across the internet, and is not considered secure by many modern standards. Security scanners might report this configuration as a vulnerability.
- The best way to enforce X11 traffic security is to disable remote CDE logins, and use X11 tunneling or port forwarding through Secure Shell (SSH).
- In the Common Desktop Environment (CDE), a remote display can query a login screen (dtgreet) from the AIX host, by using 'X -query hostname' through X Display Manager Control Protocol (XDMCP) on UDP Port 177. XDMCP lacks encryption across the internet, and is not considered secure by many modern standards. Security scanners might report this configuration as a vulnerability.
Steps
| # installp -gup X11.Dt |
A.2) If you accept the removal, run the command again:
| # installp -e /var/adm/installp.X11Dt.log -gu X11.Dt |
|
# stopsrc -s dtsrc
# /usr/dt/bin/dtconfig -kill
# ps -ef | grep dtlogin | grep -v grep
# kill -KILL <dtlogin's PID>
Make sure that no dtlogin processes remain open.
# ps -ef | grep dtlogin | grep -v grep
|
|
# rm /var/dt/Xpid
# mv /var/dd/Xerrors /var/dt/Xerrors.old
|
| # /usr/dt/bin/dtconfig -d |
| # ps -aef | grep rpc.ttdbserverd | grep -v grep # kill -KILL <rpc.ttdbserverd's PID> |
|
# vi /etc/inetd.conf
Comment out the following line (use '#'):
#ttdbserver sunrpc_tcp tcp wait root /usr/dt/bin/rpc.ttdbserver rpc.ttdbserver 100083 1
|
| # refresh -s inetd |
|
Check for an existing CDE global customized Xsession file:
# ls -al /etc/dt/bin/Xsession
Make a copy, if it does not exist:
# mkdir -p /etc/dt/bin
# cp /usr/dt/bin/Xsession /etc/dt/bin/Xession
Edit the customized Xsession to disable the ToolTalk server:
# vi /etc/dt/bin/Xsession
Change the ttsession string:
- dtstart_ttsession="$DT_BINPATH/ttsession -s"
+ dtstart_ttsession="NULL" Change permissions for the new /etc/dt directories and files:
# chmod -R 555 /etc/dt
# chown -R bin.bin /etc/dt
|
|
Check for an existing CDE global customized Xconfig file:
# ls -al /etc/dt/config/Xconfig
Make a copy, if it does not exist:
# mkdir -p /etc/dt/config
# cp /usr/dt/config/Xconfig /etc/dt/config/Xconfig
Edit the customized Xconfig file to disable the XDMCP requests:
# vi /etc/dt/config/Xconfig
# To disable listening for XDMCP requests from X-terminals: |
|
# /usr/dt/bin/dtconfig -kill
# ps -ef | grep dtlogin | grep -v grep
# kill -KILL <dtlogin's PID>
# startsrc -s dtsrc
|
Users can launch a CDE Session without a remote login screen:
|
# vi /etc/dt/config/Xconfig
# To reenable listening for XDMCP requests from X-terminals: Enable the CDE login manager:
# /usr/dt/bin/dtconfig -e
Start the CDE login manager:
# startsrc -s dtsrc
|
Additional Information
| SUPPORT |
|---|
|
If you require more assistance, use the following step-by-step instructions to contact IBM to open a case for software with an active and valid support contract. 1. Document (or collect screen captures of) all symptoms, errors, and messages related to your issue. 2. Capture any logs or data relevant to the situation. 3. Contact IBM to open a case: -For electronic support, see the IBM Support Community: 4. Provide a clear, concise description of the issue. - For guidance, see: Working with IBM AIX Support: Describing the problem. 5. If the system is accessible, collect a system snap, and upload all of the details and data for your case. - For guidance, see: Working with IBM AIX Support: Collecting snap data |
Related Information
Was this topic helpful?
Document Information
Modified date:
06 September 2023
UID
ibm10731381