LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-29-2004, 06:20 AM   #1
gtasefir
LQ Newbie
 
Registered: Jul 2003
Posts: 6

Rep: Reputation: 0
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!!
 
Old 03-29-2004, 06:35 AM   #2
iluvatar
Member
 
Registered: Jul 2003
Location: netherlands
Distribution: debian
Posts: 403

Rep: Reputation: 30
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
 
Old 03-30-2004, 10:31 AM   #3
gtasefir
LQ Newbie
 
Registered: Jul 2003
Posts: 6

Original Poster
Rep: Reputation: 0
The machines are slow and runing just xinit is much faster then run kdm
 
Old 03-31-2004, 02:31 AM   #4
iluvatar
Member
 
Registered: Jul 2003
Location: netherlands
Distribution: debian
Posts: 403

Rep: Reputation: 30
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 =-
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
N-Force 2 mobo trackrat Linux - Software 3 04-26-2004 09:47 AM
Force user login with different account rte Linux - Newbie 1 04-01-2004 09:09 AM
Force user ust Linux - General 1 10-09-2003 11:03 AM
redhat pre 7.2 had login.def to force standard user to sign on first ForumKid Linux - General 1 08-14-2003 04:32 PM
force half_duplex Jr27 Linux - Networking 0 09-03-2001 09:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration