Password-Protected login

Stuff that has yet to be sorted into a category.
Post Reply
Message
Author
User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

Password-Protected login

#1 Post by MU »

Image

minixdm requires PuppyBasic (which is part of Puppy since 1.0.5)
On older Puppys, install this Dotpup:
http://www.murga.org/%7Epuppy/download.php?id=901

to activate minixdm, add this line as SECOND line to /root/.xinitrc (after #!/bin/sh):

/root/minixdm

Edit /root/minixdmpassword to change the password (default: 123)
Edit /root/minixdm to alter text and Backgroundimage (or replace /root/minixdm.jpg with another picture)


Mark
Attachments
minixdm.pup
(33.4 KiB) Downloaded 901 times
Last edited by MU on Fri 14 Oct 2005, 02:28, edited 1 time in total.

User avatar
gliezl
Posts: 322
Joined: Sat 06 Aug 2005, 22:30
Location: Manila

#2 Post by gliezl »

Hi Mark, how will i change the "red X" in the Title bar of LOGIN to a different icon such as a "yellow key", something like that?
[color=blue][i]"If you have knowledge, let others light their candles in it."
~Margaret Fuller[/i][/color]

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#3 Post by MU »

Oh.. I think this is not possible with Xdialog (that PuppyBasic uses here). :roll:

User avatar
gliezl
Posts: 322
Joined: Sat 06 Aug 2005, 22:30
Location: Manila

replace win98 with puppy

#4 Post by gliezl »

Hi Mark, can you create a script of your login manager that will automatically mount a share or network folder in win2000 PDC? And by changing the default user (root) in minixdm & minixdmpasswd file with the ones being used by a certain user to authenticate themselves with the windows fileserver.
I told my friend to change her pirated windows98 to puppy 1.0.4 linux. Would that be cool? is this possible with puppy?

Thanks! :)
[color=blue][i]"If you have knowledge, let others light their candles in it."
~Margaret Fuller[/i][/color]

John Doe
Posts: 1681
Joined: Mon 01 Aug 2005, 04:46
Location: Michigan, US

#5 Post by John Doe »

Great app Mark.

The only trouble I'm having is, I can hit "ok" or "cancel" anytime and get in (regardless of username or password). I'm using ICEWM if that makes a difference.

One question also. Is there anyway to lanch this during a session? I'd like to be able to get things running and then "lock the workstation" (like in xp pro, when you hit the winkey+L). I tried to run it from xterm and got this:

# /root/minixdm
/root/minixdm.jpg is a 1024x768 JPEG image, color space YCbCr, 3 comps., Huffman coding
Zooming image by 125%...done
Clipping image...(Adding border)...done
Building XImage...done

The login box opens, but the big picture doesn't show up.

Thanks again, very cool idea. I had been thinking to myself recently that it would be great to have a single user authentication system.

Any thoughts of hashing the authentication info in the future?

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#6 Post by MU »

A real "lock" is much more complicated.

I will try to get an old and small version of "xlock" working in the next days.

But there still is the problem, Puppy is no real Multiuser-system.

So these login-tools mainly shall have one purpose:

avoid, that the collegue in the bureau can have access (I assume he/she is a windows-user without deeper knowledge of X).

The problems you mentioned with the current login should not happen, but i did not test it intensively. It was more a "how could it be done?". I will have a closer look tomorrow at that.


Mark

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#7 Post by Flash »

I think MU is right. If you want to keep your colleagues from snooping, a login screen is appropriate. If absolute security is what you're after, remove the storage media from the computer. Fortunately, a solution presents itself: multisession Puppy.

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#8 Post by MU »

I uploaded a new version.

New:
- fixed Bug when you could login after "cancel"
- fixed Bug when you could login with any values
- added deactivation of "CTRL", so that you cannot exit X on Login-Screen

Not done yet:
You cannot use this program when your Desktop already started ("lock station").

Please report further bugs you find.

Thanks, Mark

John Doe
Posts: 1681
Joined: Mon 01 Aug 2005, 04:46
Location: Michigan, US

#9 Post by John Doe »

Nice work! I just tried it again. Works great.

Once you get the "lock station" down, this will be a great addition to keeping the nosey people out.

User avatar
gliezl
Posts: 322
Joined: Sat 06 Aug 2005, 22:30
Location: Manila

enhanced script

#10 Post by gliezl »

Hi Mark! Is there a way you can modify your script to accomodate a variable for username & password?
something like $USER and $PASS to be later on be used by SMBMOUNT command inserted into your XDM script. I wish you can make a xdmusers.lst to verify valid users. Modify minixdmpasswd to be used with multiple password like /etc/passwd

smbmount //machine/share /root/my_documents -o username=$USER,password=$PASS

Can your read my mind? :)
[color=blue][i]"If you have knowledge, let others light their candles in it."
~Margaret Fuller[/i][/color]

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#11 Post by MU »

Here is a "lock-station"-Tool.

It uses the passwordfile and backgroundimage of minixdm.

Unfortunately this solution needs wxBasic, which is 2 MB in size compressed: http://www.murga.org/%7Epuppy/viewtopic.php?p=11734

Install, and run it from the Dotpup-Menue.
You also can drag it to your Desktop (/usr/local/lockstation/lock-station).

Attention, your Puppy really is locked then, you have no access without Password! (ok, there is a trick, but I just tell it if you are in trouble).

This tool just works using the mouse, not with the keyboard.


Mark
Attachments
lock.jpg
(24.51 KiB) Downloaded 3078 times
lockstation.pup
(5.93 KiB) Downloaded 721 times
Last edited by MU on Fri 14 Oct 2005, 09:02, edited 4 times in total.

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

Re: enhanced script

#12 Post by MU »

gliezl wrote:Hi Mark! Is there a way you can modify your script to accomodate a variable for username & password?
I can try it this weekend.
I will have to encrypt the passwords then using md5sum, as it currently is clear-text.
So everybody logged in could read the password-list (as everybody is root in Puppy).

But i don't promise i get it running this weekend.

Mark

John Doe
Posts: 1681
Joined: Mon 01 Aug 2005, 04:46
Location: Michigan, US

Re: enhanced script

#13 Post by John Doe »

gliezl wrote:Hi Mark! Is there a way you can modify your script to accomodate a variable for username & password?
something like $USER and $PASS to be later on be used by SMBMOUNT command inserted into your XDM script.
On this shell, Environment Vars can be set like:

LOGNAME=your_value_here

Custom vars are set like:

CUSTOM_VAR=your_value_here
gliezl wrote:I wish you can make a xdmusers.lst to verify valid users. Modify minixdmpasswd to be used with multiple password like /etc/passwd
you're getting kinda tricky here.
gliezl wrote:smbmount //machine/share /root/my_documents -o username=$USER,password=$PASS
you rolling out a network or just trying to mount a share? If it's just for you, you can make a script to do it. If you are rolling out a network, these are great questions.
gliezl wrote:Can your read my mind? :)
hmmm.. I'm only a beginner in mind reading. Anyone else got a degree?

Guest

#14 Post by Guest »

MU wrote:This tool just works using the mouse, not with the keyboard.Mark
That's sort of strange, but ok since it gets the job done. Did you need to do that to make it secure?

It works great over here and does everything we talked about. I can keep the nosey people out of my computer whether I'm sleeping or taking a bathroom/smoke break.

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#15 Post by MU »

I tried several approaches tonight, and had the following problem:

When I turn a normal Window Fullscreen, it is covered by opened Toolbars.
Example is the "blank screen" in the new PuppyBasic-Screensaver.
My Tools like Expose or wxIconbar cover it, so everybody can access the computer by using these programs.

The wxBasic-Solution uses itself a Gtk-Toolbar, simply maximized to the screenwidth and Height (this is different to setting a normal window fullscreen).
This solution covers everything.

Such toolwindows are usually taken to display menues or Bitmap-buttons, but not to add Textentries. So Textentries are not fully functional.
For this reason I had to add the buttons, that can be used with the mouse.

I still plan to have a look at the "xlock" C-Program, but this might take some time.
That one would support the keyboard.

Greets, Mark

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#16 Post by MU »

I updated the lock-station.
It supports A-Z and "." and "-" now.

Mark

User avatar
gliezl
Posts: 322
Joined: Sat 06 Aug 2005, 22:30
Location: Manila

Re: enhanced script

#17 Post by gliezl »

MU wrote: I can try it this weekend.
I will have to encrypt the passwords then using md5sum, as it currently is clear-text.
Wow. That's cool! :D
MU wrote:So everybody logged in could read the password-list (as everybody is root in Puppy).
exactly what I mean.
MU wrote: But i don't promise i get it running this weekend.
You take your time.
John Doe wrote: If you are rolling out a network, these are great questions.
Yes, trying it in a network. Could be the first choice OS in my father's company. Doing some test...
MU wrote: This tool just works using the mouse, not with the keyboard
Perfect! :) It's like those online balance inquiry of your bank account using mouse clicks rather than a keyboard. Someone might install a hardware on your computer (without you knowing ofcourse) which record keystrokes.
[color=blue][i]"If you have knowledge, let others light their candles in it."
~Margaret Fuller[/i][/color]

Post Reply