LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 08-11-2019, 12:35 PM   #1
ronnyr7
LQ Newbie
 
Registered: Aug 2019
Posts: 3

Rep: Reputation: Disabled
logging in using a one time sms code


Dear Linux community,

I volunteer in a public library, and we have 5 linux computers.
We want to limit the usage time of the users to 30 minutes per day.
There is only one username and password and it is publicly known.

I thought about trying to combine a one time sms code to create this limitation:
that users will type their mobile number or send an sms message to a number we give them,
receive a code via sms
and be able to use it in order to use the computer for 30 minutes.
something like this?

Transaction authentication number - Wikipedia
en.wikipedia.org en.wikipedia.org

Maybe you have a better idea, or an idea on how to implement such a thing?
it can also be without an sms, as long as it is done in a way that does not require assistance from the volunteers [since some of them are old and not digital].

I saw this one as well:
www.makeuseof.com

but can it be applied to my situation?

Thanks!
 
Old 08-11-2019, 06:43 PM   #2
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,738

Rep: Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222
Folks who are using the ‘puters in the library have sms capability? Always?

Given there’s only one user and everyone knows the password, and your concern about “old” volunteers, I’d recommend sign-up sheets and kitchen timers.
 
Old 08-11-2019, 10:43 PM   #3
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Why is it so hard to give each user a unique user name? Off the cuff, I don't know a mechanism to limit session time, but I would be surprised if there weren't any.

Also, what did you see on makeuseof? The link goes to the top page.
 
Old 08-12-2019, 01:29 AM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
It would seem logical to log in with your library card number, no?

Libraries have Linux computers and they do implement this somehow; have you searched?
 
Old 08-12-2019, 01:55 AM   #5
ronnyr7
LQ Newbie
 
Registered: Aug 2019
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thanks guys

Thanks,

But as it is a community center and a library, we have no library cards.

Might be an idea though - I will consider it. The thing is, if it can be done using solely the computer it would be much better. This is why I thought about the sms idea - we use it here to login to the bank website so everyone knows it.

This is the link I saw:
https://www.makeuseof.com/tag/ubuntu...ternet-access/

And yes, they have mobile phones.

Have a good day,
Ronny
 
Old 08-12-2019, 02:10 AM   #6
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,996

Rep: Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338
there is a thing called one-time-password, here is an implementation: https://www.onelogin.com/product/one-time-password
is this (or something similar) what you need?
 
Old 08-12-2019, 03:20 AM   #7
ronnyr7
LQ Newbie
 
Registered: Aug 2019
Posts: 3

Original Poster
Rep: Reputation: Disabled
not exactly

I need something that can be also suitable for people with no smartphone
and very simple to implement for them.
This is why I thought about them typing their mobile number, receiving an sms with a password/code,
and then the system can remember their mobile number for the day and they can only login once using this code.
It needs to be something they can operate easily and in a way preventing them from sitting all day behind the computer.

Thanks
 
Old 08-12-2019, 11:25 AM   #8
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,378

Rep: Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757
This shows a list of people still logged in after 30 minutes.
Code:
last -t $(date +%Y%m%d%H%M%S --date='-30 min') | grep "still logged in"
It could be combined with code to kill the users session in a script run regularly as a root cron job.
 
1 members found this post helpful.
  


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
LXer: Ztorg malware hid in Google Play to send premium-rate SMS texts, delete incoming SMS messages LXer Syndicated Linux News 0 06-22-2017 10:21 AM
LXer: How to install kannel sms gateway on Debian Linux for nagios SMS notificationsSMS LXer Syndicated Linux News 0 01-01-2017 04:24 PM
[SOLVED] Logging time from wget using time Byenary Linux - Newbie 2 07-14-2016 03:31 PM
GSM device for sending SMS messages: Siemens TC35 SMS Wireless Module UART/232 bicpen Linux - Hardware 1 01-12-2012 07:42 AM
How to send sms with sms-pl ? frenchn00b Linux - Software 0 10-01-2007 02:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 05:21 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
Open Source Consulting | Domain Registration