LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 01-19-2004, 03:12 AM   #1
brucebearau
LQ Newbie
 
Registered: Jun 2003
Location: Geelong, Victoria, Australia
Distribution: SUSE, Mandrake
Posts: 2

Rep: Reputation: 0
Running a script at user login?


New to Debian.

I have a user logged on automatically at startup and would like to start a script (for a telnet session) auromatically when this user logs in.

How do i achieve this?

I have modified inittab so tty1 executes exec su - floor at boot through another script (floor is the user)

so how do i run a script whenever this user logs in? or can i simply run the telnet command after this (as the user is already logged in) ?
 
Old 01-19-2004, 04:28 AM   #2
hypexr
Member
 
Registered: Oct 2003
Location: USA Fresno Callifornia
Distribution: Gentoo (workstation), ArchLinux (file/mail server), Freebsd (web server), Ubuntu (laptop)
Posts: 115

Rep: Reputation: 16
Adding the script path and name to the .bash_profile file in the users directory should do it if you use bash.
 
  


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
User Login script? mkim Linux - Software 2 10-21-2005 05:13 PM
Running Scripts at User Login? Setheck Linux - Software 6 09-27-2004 10:24 AM
Running script as user that does not have shell sschueller Linux - General 1 04-24-2004 03:06 PM
vsftpd : process running as user nobody left after login ? markus1982 Linux - Security 4 01-18-2003 02:49 PM
Running a shell script when a user is added. jayakrishnan Linux - General 5 04-29-2002 02:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 03:55 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