It should work something like this:
Fill in appropriate information
Then copy the xinit file to the newuser home directory
Code:
bash# cp /etc/X11/xinit/xinit.twm /home/newuser/.xinitrc
Then
Code:
bash# cd /home/newuser/
Then open .xinitrc with your favorite text editor. I use mc so I'll use that as my example
Code:
bash# mcedit .xinitrc
I don't have twm so I'll use blackbox as the example.
Just substiture twm for blackbox
At the bottom you will see this:
Code:
# Start the window manager:
exec /usr/local/bin/blackbox
And add a line like this here
I'm using firefox for my example. Use the full path name for the program you want to start and make sure you put the ampersand in so the program will return control to twm.
Code:
# Start the window manager:
exec /usr/bin/firefox &
exec /usr/local/bin/blackbox
Save it. Then log in as the newuser to make sure everything works.
That will start the program you want when they type 'startx'.
To give mount privilages to a user just do (as root):
Code:
chgrp users /mnt/cdrom
And that should take care of everything.