LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 01-08-2012, 03:54 AM   #1
jareb9
LQ Newbie
 
Registered: May 2011
Posts: 6

Rep: Reputation: 0
how do you run terminal in the login page?


In ubuntu. Is there any way to do this?
 
Old 01-08-2012, 04:00 AM   #2
fukawi1
Member
 
Registered: Apr 2009
Location: Melbourne
Distribution: Fedora & CentOS
Posts: 854

Rep: Reputation: 190Reputation: 190
IF I am understanding your question correctly, you want to obtain a terminal, from the GDM login screen.

If so, pressing Ctrl + Alt + F1 (to F6) will get you a console.
 
Old 01-08-2012, 04:09 AM   #3
jareb9
LQ Newbie
 
Registered: May 2011
Posts: 6

Original Poster
Rep: Reputation: 0
That would still put me with a terminal that has a login. I need to access the terminal w/o a login name or password.
 
Old 01-08-2012, 04:14 AM   #4
fukawi1
Member
 
Registered: Apr 2009
Location: Melbourne
Distribution: Fedora & CentOS
Posts: 854

Rep: Reputation: 190Reputation: 190
You aren't going to get an answer to that here. What you are asking can be classed as attempting to compromise a system (whether you say it belongs to you or not), and is against the LQ rules. http://www.linuxquestions.org/linux/rules.html
Quote:
Posts containing information about cracking, piracy, warez, fraud or any topic that could be damaging to either LinuxQuestions.org or any third party will be immediately removed.
There are plenty of sites out there that will provide that information to you. Google is your friend.
 
Old 01-08-2012, 05:06 AM   #5
jareb9
LQ Newbie
 
Registered: May 2011
Posts: 6

Original Poster
Rep: Reputation: 0
Ok thanks man. Appreciate it. I don't want you to break the rules or get in trouble.

I didn't know it was against the rules; I just thought it would be good education for programming and it would help me to better understand my computer. I mean, knowledge is power, right? I'll just stick with others writing my programs that I'll need.
But thanks again.
 
Old 01-08-2012, 06:22 PM   #6
segmentation_fault
Member
 
Registered: Sep 2008
Location: Ioannina, Greece
Distribution: Gentoo
Posts: 332

Rep: Reputation: 55
In what way would that be educational in programming?
Programming is taking an algorithm and coding it into a programming language which then can be compiled to run on a computer. I don't see any connection...
 
Old 01-08-2012, 08:16 PM   #7
jareb9
LQ Newbie
 
Registered: May 2011
Posts: 6

Original Poster
Rep: Reputation: 0
I just thought it would help me to better understand batch files.
 
Old 01-08-2012, 09:33 PM   #8
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Well, I'm going to play devil's advocate a little. It seems like there's a lot of assumption going on as to the what is meant by the original question.

If the original question is meant to find a way to circumvent the login process and gain unauthorized access to the computer, then yes, that would violate LQ policy.

If, on the other hand, the question was meant to find out how a computer could display a terminal at the login screen, there are legitimate reasons to do so. As an example, a computer could be set up as a jukebox. The terminal at the login screen could be provided for anyone with access to the computer to issue playback-control commands without the need to login with full credentials. The administrator could create a user id that is "locked down" (e.g. chrooted, restricted permissions, etc.) and spawn the terminal under that user id. This kind of thing would be addressed by creating the restricted user account and modifying the login manager's configuration (e.g gdm) or the login manager's source code itself. Obviously, this solution would be worthless for someone interested in gaining access to the compuer because it requires administrative access to set it up.

The original question made no indication as to the intent behind the terminal.

Last edited by Dark_Helmet; 01-08-2012 at 09:37 PM.
 
Old 01-09-2012, 12:42 AM   #9
jareb9
LQ Newbie
 
Registered: May 2011
Posts: 6

Original Poster
Rep: Reputation: 0
The intent was not to gain unauthorized access. I'm the adminstrator; I have no reasons to try to crack my password that I already know--in fact, anybuddy could guess my password.
My intent was for educational purpose only. I've really have no plans or purpose for it, other than knowledge. I may, if I saw that it would be useful, come up w/ the idea for it in the future.
 
Old 01-09-2012, 12:59 AM   #10
fukawi1
Member
 
Registered: Apr 2009
Location: Melbourne
Distribution: Fedora & CentOS
Posts: 854

Rep: Reputation: 190Reputation: 190
Well for the educational value,
Quote:
in fact, anybuddy could guess my password.
This is a REALLY bad idea.

Also, without access to a terminal, you wont be able to write, or run a shell script ("batch file").

Quote:
The original question made no indication as to the intent behind the terminal.
Fair enough, but the answer to the question WOULD provide a means of circumventing the login, which WOULD be against the rules.

As i said in my original reply, the answer to your question is out there. Google what you seek, and you shall find it.

Last edited by fukawi1; 01-09-2012 at 01:03 AM.
 
Old 01-09-2012, 01:20 AM   #11
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
If all you're really hoping to do is tinker so that you get an auto-login terminal on startup, then you have lots of options. Some login managers have automatic login settings--where a specific user is logged into the system after a specific time expires with no other login request.

Alternatively, since you mention "batch files" in an earlier post, perhaps you're thinking in terms of system startup scripts. If that's the case, then I'd point you to read about the inittab file (man inittab and various websites you can find with Google). It should not be difficult to modify inittab to startup a terminal on one of the virtual consoles (Ctrl-Alt-FX) under a specific user id (e.g. "su -c '/bin/bash' someusername").

If you're interested in what I described earlier (a terminal displayed simultaneously with the username/password request), then I can't help you there--I've never tried it and can only guess where to start (i.e. the login manager's configuration file and/or source code itself).

Quote:
but the answer to the question WOULD provide a means of circumventing the login
I understand the concern, and we could have a robust discussion on it. Though, from my perspective, there's no more danger than when a computer offers a service to the outside world. The service could be (a) full of security exploits or (b) mis-configured allowing (potentially unintended) user-elevation. The same is true with an auto-login terminal. It can be configured/locked-down well or not.

The point of difference appears to be that you're thinking of it as the OP asking for a method to open a terminal on a system that is not configured to provide it. Whereas my perspective on it is giving direction to a solution that requires pre-existing administrative access to provide the terminal. If the OP has administrative access, there's no security problem. If the OP does not have administrative access, then he has no ability to configure the system and the point is moot.

But, if one of the wise and powerful forum mods comes along and passes judgment that this, indeed, runs afoul of LQ policy. Then so be it.
 
1 members found this post helpful.
Old 01-09-2012, 02:13 AM   #12
jareb9
LQ Newbie
 
Registered: May 2011
Posts: 6

Original Poster
Rep: Reputation: 0
Okay, thank you sir for your help. Really do appreciate it. I kind of like your idea for the jukebox. I think I'll pursue it. Who knows? Maybe I will find some more valuable information on programming and computers in this quest.
 
  


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
[SOLVED] Difference between a login terminal & non-login termiinal Soji Antony Linux - Newbie 6 06-26-2011 10:07 AM
how to run linux command from a different user from a jsp page which is run by tomcat etika Linux - Newbie 2 04-27-2011 12:53 PM
View a web page using the terminal. caleb1011 Linux - Newbie 9 01-15-2006 07:38 PM
How to run MP3 file thru Terminal in K.D.E or Terminal itz2000 Linux - Newbie 5 08-04-2005 10:49 PM
Auto login and run firefox at a specific web page eraser Linux - Newbie 4 11-21-2004 06:34 PM


All times are GMT -5. The time now is 04:32 AM.

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