SUMMARY: Question about login-shell field in /etc/passwd

From: Detlev Habicht (
Date: Fri Apr 14 2000 - 04:00:00 CDT

Hi all,

this was my questions:

> for a demo i need an acount running only the Netscape browser.
> I try to change the login-shell field in /etc/passwd with path
> to the Netscape browser. Well, it does not work - X11 don't start.
> Okay, this is the wrong way:
> demo:xxx:007:11:Demo:/home/demo:/appl/communicator/netscape
> So any idea, what to do? (I am running 2.5.1/Openwin, but i don't
> a windowmanager, i need only a X11 window).

Well, i have do it with the dot files (login-shell in passwd is now /bin/csh again).
So i put the standard .cshrc, .login und .xinitrc in the home dir and
have to change it a little:


umask 022
set path=(/bin /usr/bin /usr/ucb /etc .)
if ( $?prompt ) then
        set history=32
setenv XINITRC ~/.xinitrc


stty -istrip
if ( `tty` == "/dev/console" ) then

        if ( $TERM == "sun" || $TERM == "AT386" ) then

                if ( ${?OPENWINHOME} == 0 ) then
                        setenv OPENWINHOME /usr/openwin
                clear # get rid of annoying cursor rectangle
                logout # logout after leaving windows system




xrdb $OPENWINHOME/lib/Xdefaults # Load Default X11 resource database
if [ -f $HOME/.Xdefaults ]; then
    xrdb -merge $HOME/.Xdefaults # Load Users X11 resource database

$OPENWINHOME/lib/openwin-sys # OpenWindows system initialization

eval `locale_env -env` # Set Locale Environment

    xsetroot -def # Clear root window
    /appl/communicator/netscape -geometry =1152x900+0+0 & wmpid=$!
    dsdm & # OpenLook Drop Site Database

wait $wmpid # Wait for wm (key client) to exit

You see, i don't start a window manager, i start only netscape. For my job here this
solution is okay. I have then a fullscreen netscape window.

Of course, now i have a new problem: How can i protect netscape preferences, so
that no one can change it (the netscape preferences for the demo account)?

Thanx for all hints to:

Bismark Espinoza <bismark@alta.Jpl.Nasa.Gov>
Ian Erickson <>
David Foster <>
gabriel rosenkoetter <>
Arthur Darren Dunham <>
David Evans <>
"Brandon K. Devlin" <>
John Jamerson <>
"Halverson, Mark" <>
"Salehi, Michael E" <>
Igor Kolker <>
Nikolay V Panin <>


 Detlev  | Institut fuer Mikroelektronische Systeme, Uni Hannover
 Habicht | D-30167 Hannover +49 511 76219662
 --------+-------- Handy    +49 172 5415752  ---------------------------

This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:14:06 CDT