LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to force login (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-force-login-163690/)

gtasefir 03-29-2004 06:20 AM

How to force login
 
How can I force a user login in to the console and open automatically the xinit and rdesktop and after he close rdesktop go back to the login screen

I know this can be done using passwd but I donīt know how

Can anyone help!!

iluvatar 03-29-2004 06:35 AM

why wouldn't you use kdm / gdm / xdm ? grafics login screen adn when user logs out, the grafics login screen comes up again! change the default runlevel to the grafics (mostly 4) in the /etc/inittab

greetz,
iluvatar

gtasefir 03-30-2004 10:31 AM

The machines are slow and runing just xinit is much faster then run kdm

iluvatar 03-31-2004 02:31 AM

you could put this in the users ~/.profile or ~/.bashrc (depending on the shell used):

# start ~/.profile
startx (or whatever you do to start the enviroment)
logout
# end ~/.profile

this will start the X server and after logging out of X, the user will be logged out.

greetz,
-= iluvatar =-


All times are GMT -5. The time now is 09:17 PM.