LinuxQuestions.org
Register a domain and help support LQ
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 02-07-2011, 02:19 PM   #1
Ribo01
Member
 
Registered: Aug 2010
Posts: 103

Rep: Reputation: 5
terminal control


Hello y'all hope your day has been very full of fun. I kinda of need help Cntrl ma teeninal and start up environment. Basically, I share my box with couple of people and I wnt restriction to my terminal. Have written couple of scripts and drop in ~bashrc. All o want is the terminal shld request for a password anytime the terminal is started. I have tried using the "if"& "while" script but none seems to work. Would be very greatful if I get help. Thanks a whole lot.
 
Old 02-07-2011, 02:40 PM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
I can't make any sense of what you are trying to ask here.
 
Old 02-07-2011, 02:52 PM   #3
goossen
Member
 
Registered: May 2006
Location: Bayern, Germany
Distribution: Many
Posts: 224

Rep: Reputation: 41
Check vlock.
 
Old 02-07-2011, 02:53 PM   #4
icqraid
LQ Newbie
 
Registered: Jan 2011
Location: Oregon USA
Distribution: Slackware13.1 Ubuntu10.10
Posts: 25

Rep: Reputation: 0
I think I can decipher the message. He/she is not the only one that accesses the computer. They want to restrict terminal access. If a terminal opens up, Ribo01 wants the user that requested the terminal to enter a password (basically logging them in and I assume to maybe create an auth.log of users?)

Ribo01 is this correct?
Are other users going to use a graphical interface at any point?
 
Old 02-07-2011, 05:29 PM   #5
Ribo01
Member
 
Registered: Aug 2010
Posts: 103

Original Poster
Rep: Reputation: 5
Icgrad sure got me right so how can u be of help and how do I create auto log off ?
 
Old 02-08-2011, 11:20 AM   #6
icqraid
LQ Newbie
 
Registered: Jan 2011
Location: Oregon USA
Distribution: Slackware13.1 Ubuntu10.10
Posts: 25

Rep: Reputation: 0
Are these other people physically sitting at the computer and logging in to their own user accounts which you set up on the computer or are there using ssh, telnet or something else to remotely log in?


If there are physically sitting there, I am not sure of any programs out there and I can't think of any scripts to make that they couldn't bypass.

I think we need more information.
 
Old 02-08-2011, 12:41 PM   #7
Ribo01
Member
 
Registered: Aug 2010
Posts: 103

Original Poster
Rep: Reputation: 5
Thanks icgraid. I knew its wasn't possible too. Hw about let say someone happens to get my password and logs in as me, do u have any Idea of a script I can write to place into my ~/bashrc file requesting for a word or maybe a number, and if the write number is supplied my prompts comes up . As in /home/user > hope u understand and straight forward enough.
 
Old 02-08-2011, 12:50 PM   #8
icqraid
LQ Newbie
 
Registered: Jan 2011
Location: Oregon USA
Distribution: Slackware13.1 Ubuntu10.10
Posts: 25

Rep: Reputation: 0
What linux distribution do you have?
 
Old 02-08-2011, 04:07 PM   #9
Ribo01
Member
 
Registered: Aug 2010
Posts: 103

Original Poster
Rep: Reputation: 5
Hello icgraid. Thanks for takin time out for nu really do appreciate it . My distro is redhat linux. Hope to read from you real soon cheers
 
Old 02-08-2011, 08:35 PM   #10
icqraid
LQ Newbie
 
Registered: Jan 2011
Location: Oregon USA
Distribution: Slackware13.1 Ubuntu10.10
Posts: 25

Rep: Reputation: 0
And are your roomates using your computer with your user account or do they have a separate account?
 
Old 02-09-2011, 01:27 AM   #11
Ribo01
Member
 
Registered: Aug 2010
Posts: 103

Original Poster
Rep: Reputation: 5
Hello again icgraid. Let say we are all using the same user account. So help with a script that can be put in my ~/bashrc to request for maybe a number or a word before my prompt comes up. Have tried writing but can't seem to Get it right? Thanks redhat Linux is my distro
 
Old 02-09-2011, 09:02 AM   #12
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720
Could you try to write better and not skip random letters? It's vary hard to read.
 
1 members found this post helpful.
Old 02-09-2011, 02:21 PM   #13
icqraid
LQ Newbie
 
Registered: Jan 2011
Location: Oregon USA
Distribution: Slackware13.1 Ubuntu10.10
Posts: 25

Rep: Reputation: 0
To be perfectly honest Ribo01 I see no reason to write a bash script for you.
I can see the mechanics of the code using an if while script with a counter that would wait for input from the user (maybe scanf) then compare it to a file stored elsewhere in your user account. Frankly though it is a horrible security feature. Eventually some will figure out the word you type in and get to the console.
Besides this there are lots of other things in your system that can make your user account or possible entire system vulnerable. Since you mentioned terminal and not console, I assume you are in a graphical environment. This would give your roommates access to your browser and the ability to download and possible run some programs within the graphical environment.
I think you should read this link from the suse forum on your very topic here

And you should think about making a separate account your roommates can log into. It keeps there stuff separate from your stuff. Its your computer so as root, you can always see there files.
The console is not that dangerous as some say it is. If your roommates are able to gain root root access and compromise your system with a console, then a password script won't stop them.
 
Old 02-09-2011, 03:55 PM   #14
Ribo01
Member
 
Registered: Aug 2010
Posts: 103

Original Poster
Rep: Reputation: 5
Hello icgraid, u are the best. Thanks for all your effort, I actually have an idea on how my scrip would be, really greatful . Really hope to catch up with you more often. You really understood me. Well thanks again. Enjoy the rest of the day.cheers.
 
  


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
Terminal shows unicode squares for control characters ghostknife Linux - Software 5 12-30-2009 06:46 AM
control backslash in gnome-terminal using vnc tibbitts Linux - Software 0 04-09-2008 05:34 PM
transfering control to a terminal? shamgar03 Linux - General 2 08-10-2006 12:29 PM
Diassociating process from control terminal beginner16 Programming 0 01-18-2004 10:02 AM
Big Problem! display and terminal control (!~CoW~!) Linux - General 2 11-17-2003 10:55 PM


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