LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 07-01-2003, 08:43 AM   #1
carbonnb
LQ Newbie
 
Registered: Jun 2003
Location: Toronto, Ontario, Canada
Distribution: Mandrake 9.1
Posts: 2

Rep: Reputation: 0
User Specific Startup scripts


I have just finished installing Mandrake 9.1 and I was wondering.....

Is it possible to have user specific login scripts?

Basically what I want to do is have the users login with the CLI login prompt, then depending on the user, run startx.

I want root and my user account to NOT start X, but the other 2 start x automatically after logging in.

Is this possible?

Any guidance for this Linux newbie will be greatly accepted
 
Old 07-01-2003, 01:57 PM   #2
0x4B
Member
 
Registered: May 2003
Location: Nashville TN, USA
Distribution: Debian (I'm unstable)
Posts: 117

Rep: Reputation: 15
there are a number of user specific startup scripts, depending on the shell the user has. for example, bash uses the ~/.bashrc file. ~/.profile is also used. if you look at the man page for the shell, it should mention what file (and in what order) are read.
 
Old 07-02-2003, 07:33 PM   #3
carbonnb
LQ Newbie
 
Registered: Jun 2003
Location: Toronto, Ontario, Canada
Distribution: Mandrake 9.1
Posts: 2

Original Poster
Rep: Reputation: 0
Perfect!!

I just edited the ~/.bash_profile script and now my two users pop right into X, while root and my login start with the CLI.

Thanks much. I appreciate it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
startup scripts iomari SUSE / openSUSE 2 10-19-2005 02:38 AM
Startup Scripts jhartney Linux - Newbie 3 01-07-2005 02:35 AM
Startup scripts celticselph Slackware 5 04-08-2004 08:23 AM
Help Needed: Looking for specific php software/scripts flamesrock Linux - Software 5 01-19-2004 04:42 PM
X Startup Scripts JHuizingh Linux - General 1 09-18-2001 02:02 PM


All times are GMT -5. The time now is 06:30 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration