<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: CDE - no command line in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cde-no-command-line/m-p/2438024#M6044</link>
    <description>Antoanetta,&lt;BR /&gt;&lt;BR /&gt;Your idea is interesting. &lt;BR /&gt;&lt;BR /&gt;However, I cannot locate the /etc/shells.&lt;BR /&gt;&lt;BR /&gt;Can U explain to me further ?&lt;BR /&gt;&lt;BR /&gt;Thks</description>
    <pubDate>Tue, 22 Aug 2000 04:30:28 GMT</pubDate>
    <dc:creator>Dorothy Lim</dc:creator>
    <dc:date>2000-08-22T04:30:28Z</dc:date>
    <item>
      <title>CDE - no command line</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cde-no-command-line/m-p/2438018#M6038</link>
      <description>My establishment does not allow common line login for some staff.&lt;BR /&gt;&lt;BR /&gt;Does any one know how to set up, such that when this group of staff log in thru'  CDE,&lt;BR /&gt;they will be given a menu ?&lt;BR /&gt;&lt;BR /&gt;Any other suggestions ?&lt;BR /&gt;Thks&lt;BR /&gt;</description>
      <pubDate>Mon, 21 Aug 2000 04:52:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cde-no-command-line/m-p/2438018#M6038</guid>
      <dc:creator>Dorothy Lim</dc:creator>
      <dc:date>2000-08-21T04:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: CDE - no command line</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cde-no-command-line/m-p/2438019#M6039</link>
      <description>I'm not sure the exact functionality you are after ie are they are given only a menu or are they are given a customised menu in addition to CDE's normal functions etc ?&lt;BR /&gt;&lt;BR /&gt;However : The following ITRC WEB DOCUMENT I found doing a search for "workspace menu and cde" may help ?&lt;BR /&gt;&lt;BR /&gt;Configuring the workspace (root) menu in CDE &lt;BR /&gt;Configuring the workspace (root) menu in CDE &lt;BR /&gt; DocId:&lt;BR /&gt;       KBRC00000005&lt;BR /&gt;                      &lt;BR /&gt;                     Updated:&lt;BR /&gt;                             10/7/99 3:45:59 PM&lt;BR /&gt;&lt;BR /&gt;PROBLEM&lt;BR /&gt;&lt;BR /&gt;How can I add my own actions to the menu that pops up when pressing mouse&lt;BR /&gt;button 3 in the root window?&lt;BR /&gt;&lt;BR /&gt;LIST OF TOPICS&lt;BR /&gt;Example of a Workspace Menu Customization&lt;BR /&gt;Single User Customization&lt;BR /&gt;System-Wide Customization&lt;BR /&gt;&lt;BR /&gt;FURTHER READING&lt;BR /&gt;CDE OnLine Help (via front panel icon)&lt;BR /&gt; Man pages: dtwm&lt;BR /&gt;CDE 1.0 Advanced User's &amp;amp; System Administrator's Guide  B1171-90102&lt;BR /&gt;Configuring CDE     ISBN  0-13-102724-7&lt;BR /&gt;&lt;BR /&gt;RESOLUTION&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;  Example of a Workspace Menu Customization&lt;BR /&gt;&lt;BR /&gt;An example workspace menu that adds a new action and a pop-up menu:&lt;BR /&gt;&lt;BR /&gt;Menu DtRootMenu&lt;BR /&gt;{&lt;BR /&gt;    "Workspace Menu"                    f.title&lt;BR /&gt;    "Shuffle Up"                        f.circle_up&lt;BR /&gt;    "Shuffle Down"                      f.circle_down&lt;BR /&gt;    "Refresh"                           f.refresh&lt;BR /&gt;    "Minimize/Restore Front Panel"      f.toggle_frontpanel&lt;BR /&gt;     no-label                           f.separator&lt;BR /&gt;    "hpterm"                        f.exec /usr/bin/X11/hpterm&lt;BR /&gt;     no-label                           f.separator&lt;BR /&gt;    "Editors"                           f.menu EditorMenu&lt;BR /&gt;     no-label                           f.separator&lt;BR /&gt;    "Restart Workspace Manager..."      f.restart&lt;BR /&gt;     no-label                           f.separator&lt;BR /&gt;    "Log out..."                        f.action ExitSession&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;Menu EditorMenu&lt;BR /&gt;{&lt;BR /&gt;    "vi"                                f.exec "/usr/bin/X11/hpterm -e vi"&lt;BR /&gt;    "dtpad"                             f.exec dtpad&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;For the Workspace Menu, f.circle_up, f.circle_down, etc. are predefined so that CDE&lt;BR /&gt;takes a particular action when they are called. &lt;BR /&gt;&lt;BR /&gt;Entries can then be added using f.exec followed by the command string that would be required&lt;BR /&gt;to start the desired application (include the full path). If there are spaces in the command line as&lt;BR /&gt;with the vi example above, enclose the command string in double quotes. &lt;BR /&gt;&lt;BR /&gt;Menu items can use f.action to call any of the actions that are already part of CDE or that have&lt;BR /&gt;been created with Create Action. The output from /usr/dt/bin/dttypes -db ACTION will give a&lt;BR /&gt;listing of the available actions. &lt;BR /&gt;&lt;BR /&gt;Sub-menus like Editors in the above example can also be added. f.menu is followed by the&lt;BR /&gt;desired name for the new sub-menu and then the sub- menu must be defined. (See Menu&lt;BR /&gt;EditorMenu in the example). &lt;BR /&gt;&lt;BR /&gt;Single User Customizations &lt;BR /&gt;&lt;BR /&gt;The default system definition for the Workspace Menu is located in&lt;BR /&gt;/usr/dt/config/C/sys.dtwmrc. This file should not be edited as it will be overwritten with&lt;BR /&gt;subsequent patching and is the only system default copy. &lt;BR /&gt;&lt;BR /&gt;For a single user customization, copy /usr/dt/config/C/sys.dtwmrc to&lt;BR /&gt;$HOME/.dt/dtwmrc and make any changes there. &lt;BR /&gt;&lt;BR /&gt;If the user for whom the changes are being made is logged in to CDE, from the root window&lt;BR /&gt;menu (button 3), select Restart Workspace Manager.... This will rebuild the workspace&lt;BR /&gt;menu to include the changes. &lt;BR /&gt;&lt;BR /&gt;System-wide Customizations &lt;BR /&gt;&lt;BR /&gt;For a system-wide customization, copy /usr/dt/config/C/sys.dtwmrc to&lt;BR /&gt;/etc/dt/config/C/sys.dtwmrc and make any changes there. &lt;BR /&gt;&lt;BR /&gt;Again, if the users for whom the changes are being made is logged in to CDE, from the root&lt;BR /&gt;window menu (button 3), select Restart Workspace Manager.... This will rebuild the&lt;BR /&gt;workspace menu to include changes.</description>
      <pubDate>Mon, 21 Aug 2000 06:09:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cde-no-command-line/m-p/2438019#M6039</guid>
      <dc:creator>Alex Glennie</dc:creator>
      <dc:date>2000-08-21T06:09:31Z</dc:date>
    </item>
    <item>
      <title>Re: CDE - no command line</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cde-no-command-line/m-p/2438020#M6040</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;To stop CDE users getting command line access you could change the execute permissions or use access control lists (see man pages for chmod, chacl and lsacl)on all terminal emulation commands that run under Xwindows and CDE.&lt;BR /&gt;&lt;BR /&gt;These would be &lt;BR /&gt;/usr/bin/X11/xterm&lt;BR /&gt;/usr/contrib/bin/X11/xterm&lt;BR /&gt;/usr/bin/X11/hpterm &lt;BR /&gt;/usr/bin/X11/dtterm&lt;BR /&gt;&lt;BR /&gt;Regards, Trevor</description>
      <pubDate>Mon, 21 Aug 2000 09:03:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cde-no-command-line/m-p/2438020#M6040</guid>
      <dc:creator>Trevor Dyson</dc:creator>
      <dc:date>2000-08-21T09:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: CDE - no command line</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cde-no-command-line/m-p/2438021#M6041</link>
      <description>If what you are looking for are captive menus for the users, modification of the dtprofile and the standard $HOME/.profile should accomplish this. The dtprofile will be set so that the .profile will be read. Within the .profile you have the standard assortment of traps, etc. that put a user into a captive menu. There have been previous posts regarding the dtprofile and .profile interaction.</description>
      <pubDate>Mon, 21 Aug 2000 12:07:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cde-no-command-line/m-p/2438021#M6041</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2000-08-21T12:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: CDE - no command line</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cde-no-command-line/m-p/2438022#M6042</link>
      <description>Thks guys for all the suggestions &amp;amp; ideas.&lt;BR /&gt;&lt;BR /&gt;To answer Alex's question -  The group of staff will be given a customised menu without the CDE's normal fuctions.&lt;BR /&gt;&lt;BR /&gt;I am to provide them a set of menu that is sufficient for the normal function.&lt;BR /&gt;&lt;BR /&gt;In this menu, there will be a function that allows to export the display on the screen or console, to that netscape function may be performed.&lt;BR /&gt;&lt;BR /&gt;Thks</description>
      <pubDate>Tue, 22 Aug 2000 03:40:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cde-no-command-line/m-p/2438022#M6042</guid>
      <dc:creator>Dorothy Lim</dc:creator>
      <dc:date>2000-08-22T03:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: CDE - no command line</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cde-no-command-line/m-p/2438023#M6043</link>
      <description>To send a user directly to an application, is a very easy way: in /etc/password replace the shell with the specific script, application, and add it to /etc/shells. I guess is working with CDE as well.</description>
      <pubDate>Tue, 22 Aug 2000 03:53:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cde-no-command-line/m-p/2438023#M6043</guid>
      <dc:creator>Antoanetta Naghiu</dc:creator>
      <dc:date>2000-08-22T03:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: CDE - no command line</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cde-no-command-line/m-p/2438024#M6044</link>
      <description>Antoanetta,&lt;BR /&gt;&lt;BR /&gt;Your idea is interesting. &lt;BR /&gt;&lt;BR /&gt;However, I cannot locate the /etc/shells.&lt;BR /&gt;&lt;BR /&gt;Can U explain to me further ?&lt;BR /&gt;&lt;BR /&gt;Thks</description>
      <pubDate>Tue, 22 Aug 2000 04:30:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cde-no-command-line/m-p/2438024#M6044</guid>
      <dc:creator>Dorothy Lim</dc:creator>
      <dc:date>2000-08-22T04:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: CDE - no command line</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cde-no-command-line/m-p/2438025#M6045</link>
      <description>I think I know what you're after, basically a customised, very basic X windows session where a user has only access to say your in-house application and a terminal window or similar (to exit). If this is the case xdm a window manager with basic functionality maybe what you are after. (It comes with CDE) and should be capable of running most Xapplications (standard &amp;amp; non standard). It's basically a failsafe session as also  seen by selecting the option from the CDE login panel screen options menu.&lt;BR /&gt;&lt;BR /&gt;Man xdm and man dtlogin are useful references.&lt;BR /&gt;&lt;BR /&gt;Xwindows: How to start an XDM session from the CDE login &lt;BR /&gt;&lt;BR /&gt;Use these steps to start an XDM session from the CDE login:&lt;BR /&gt;&lt;BR /&gt;1. If the file /etc/dt/config/Xconfig does not exist, copy it over&lt;BR /&gt;   from the directory /usr/dt/config.&lt;BR /&gt;&lt;BR /&gt;   cp /usr/dt/config/Xconfig /etc/dt/config/Xconfig&lt;BR /&gt;&lt;BR /&gt;   Important: Never apply a change to the files in the /usr/dt/...&lt;BR /&gt;              directories.&lt;BR /&gt;&lt;BR /&gt;2. Edit the file /etc/dt/config/Xconfig to add the following lines:&lt;BR /&gt;&lt;BR /&gt;   Dtlogin*xdmMode: True&lt;BR /&gt;   Dtlogin*dtlite: True&lt;BR /&gt;&lt;BR /&gt;   Note: Ensure that there are no blanks in front of the new entries.&lt;BR /&gt;&lt;BR /&gt;   Note: If you only need to start an XDM session on specific&lt;BR /&gt;         systems then, you can use this syntax:&lt;BR /&gt;&lt;BR /&gt;         Dtlogin*&lt;DISPLAYNAME&gt;*dtlite: True&lt;BR /&gt;&lt;BR /&gt;         The variable &lt;DISPLAYNAME&gt; is the full&lt;BR /&gt;         Displayname described in the follow format:&lt;BR /&gt;&lt;BR /&gt;         host_subdomain_domain_0&lt;BR /&gt;&lt;BR /&gt;         Example:&lt;BR /&gt;&lt;BR /&gt;         Dtlogin*summit_hp_com_0*dtlite: True&lt;BR /&gt;&lt;BR /&gt;         The above setting describe the Xterminal (summit.hp.com)&lt;BR /&gt;         with the DISPLAY setting to summit.hp.com:0&lt;BR /&gt;&lt;BR /&gt;3. Modify the file /etc/dt/bin/Xsession by adding the following&lt;BR /&gt;   lines at the top of this script or before the first reference to&lt;BR /&gt;   the variable $SESSIONTYPE:&lt;BR /&gt;&lt;BR /&gt;         if [ "$SESSIONTYPE" = &amp;amp;quotdtlite" ];&lt;BR /&gt;         then&lt;BR /&gt;            SESSIONTYPE=xdm&lt;BR /&gt;         fi&lt;BR /&gt;&lt;BR /&gt;   Note: If the file does not exist, copy it over from the&lt;BR /&gt;         /usr/dt/config directory.&lt;BR /&gt;&lt;BR /&gt;4. Use chmod 555 to ensure that the startup script for the XDB&lt;BR /&gt;   session is executable:&lt;BR /&gt;&lt;BR /&gt;   $HOME/.xsession&lt;BR /&gt;&lt;BR /&gt;   or&lt;BR /&gt;&lt;BR /&gt;   /usr/lib/X11/xdm/sys.xsession&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Example Script&lt;BR /&gt;--------------&lt;BR /&gt;&lt;BR /&gt;The following shell script is an example for a $HOME/.xsession or&lt;BR /&gt;/usr/lib/X11/xdm/sys.xsession file.&lt;BR /&gt;&lt;BR /&gt;Note: There is a similiar script with the name&lt;BR /&gt;      /usr/contrib/lib/X11/sys.x11start on each system.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;     if (cat /dev/null &amp;gt;$HOME/.x11startlog)&lt;BR /&gt;     then&lt;BR /&gt;     exec &amp;gt;$HOME/.x11startlog 2&amp;gt;$HOME/.x11startlog&lt;BR /&gt;     else&lt;BR /&gt;     exec &amp;gt;/dev/null 2&amp;gt;/dev/null&lt;BR /&gt;     fi&lt;BR /&gt;     # If there is not a Xdefaults. file in the user's home&lt;BR /&gt;     # directory then use xrdb.&lt;BR /&gt;     export doxrdb&lt;BR /&gt;     doxrdb=&lt;BR /&gt;     if [ -n "$HOME" ]&lt;BR /&gt;     then&lt;BR /&gt;     if [ ! ( -s $HOME/.Xdefaults ) ]&lt;BR /&gt;     then&lt;BR /&gt;     if [ -r /usr/contrib/lib/X11/sys.Xdefaults ]&lt;BR /&gt;     then&lt;BR /&gt;     if [ -s /usr/contrib/lib/X11/sys.Xdefaults]&lt;BR /&gt;     then&lt;BR /&gt;     doxrdb='xrdb -nocpp -load /usr/contrib/lib/X11/sys.Xdefaults'&lt;BR /&gt;     fi&lt;BR /&gt;     fi&lt;BR /&gt;     fi&lt;BR /&gt;     fi&lt;BR /&gt;     $doxrdb&lt;BR /&gt;     unset doxrdb&lt;BR /&gt;     mwm $@ &amp;amp; # Start the Motif-based Window Manager.&lt;BR /&gt;     sleep 5 # Allow time for initializing mwm before starting other&lt;BR /&gt;     clients.&lt;BR /&gt;     hpterm -C -geometry 80x24+1+1 $@ &amp;amp;&lt;BR /&gt;     wait&lt;BR /&gt;     exec sleep 2000000000&lt;BR /&gt;&lt;BR /&gt;&lt;/DISPLAYNAME&gt;&lt;/DISPLAYNAME&gt;</description>
      <pubDate>Tue, 22 Aug 2000 06:26:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cde-no-command-line/m-p/2438025#M6045</guid>
      <dc:creator>Alex Glennie</dc:creator>
      <dc:date>2000-08-22T06:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: CDE - no command line</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cde-no-command-line/m-p/2438026#M6046</link>
      <description>Ok.&lt;BR /&gt;If you create a user call today and have the following line in the /etc/passwd:&lt;BR /&gt;user_name:incrypted_password:UID:GID:comments:/home_directory:/command&lt;BR /&gt;&lt;BR /&gt;today:wrev34rfs:115:20:exec_of_date_command:/home/today:/usr/bin/date&lt;BR /&gt;&lt;BR /&gt;if someone try to login as today user, provide the password, instead of a login shell, the command date is executing and after that the user is logout.&lt;BR /&gt;I suppose your application can work like that. &lt;BR /&gt;&lt;BR /&gt;/etc/shell is the file that tells you the shells allowed on the system. You can create it with touch command and edit it after.  Try without it, first.&lt;BR /&gt;</description>
      <pubDate>Tue, 22 Aug 2000 13:33:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cde-no-command-line/m-p/2438026#M6046</guid>
      <dc:creator>Antoanetta Naghiu</dc:creator>
      <dc:date>2000-08-22T13:33:50Z</dc:date>
    </item>
  </channel>
</rss>

