Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 02 Sep 2014, 20:38
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
Password-Protected login
Moderators: deshlab, Flash, GuestToo, Ian, JohnMurga, Lobster
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [17 Posts]   Goto page: 1, 2 Next
Author Message
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Fri 30 Sep 2005, 06:57    Post subject:  Password-Protected login  



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
minixdm.pup
Description 
pup

 Download 
Filename  minixdm.pup 
Filesize  33.4 KB 
Downloaded  733 Time(s) 

Last edited by MU on Thu 13 Oct 2005, 22:28; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
gliezl


Joined: 06 Aug 2005
Posts: 322
Location: Manila

PostPosted: Wed 05 Oct 2005, 00:03    Post subject:  

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?
_________________
"If you have knowledge, let others light their candles in it."
~Margaret Fuller

Back to top
View user's profile Send private message 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Wed 05 Oct 2005, 00:09    Post subject:  

Oh.. I think this is not possible with Xdialog (that PuppyBasic uses here). Rolling Eyes
Back to top
View user's profile Send private message Visit poster's website 
gliezl


Joined: 06 Aug 2005
Posts: 322
Location: Manila

PostPosted: Sun 09 Oct 2005, 23:32    Post subject: replace win98 with puppy  

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! Smile

_________________
"If you have knowledge, let others light their candles in it."
~Margaret Fuller

Back to top
View user's profile Send private message 
John Doe

Joined: 01 Aug 2005
Posts: 1689
Location: Michigan, US

PostPosted: Wed 12 Oct 2005, 21:48    Post subject:  

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?
Back to top
View user's profile Send private message 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Wed 12 Oct 2005, 22:34    Post subject:  

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
Back to top
View user's profile Send private message Visit poster's website 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 11034
Location: Arizona USA

PostPosted: Wed 12 Oct 2005, 23:00    Post subject:  

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.
Back to top
View user's profile Send private message 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Thu 13 Oct 2005, 22:32    Post subject:  

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
Back to top
View user's profile Send private message Visit poster's website 
John Doe

Joined: 01 Aug 2005
Posts: 1689
Location: Michigan, US

PostPosted: Thu 13 Oct 2005, 23:27    Post subject:  

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.
Back to top
View user's profile Send private message 
gliezl


Joined: 06 Aug 2005
Posts: 322
Location: Manila

PostPosted: Fri 14 Oct 2005, 01:19    Post subject: enhanced script  

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? Smile

_________________
"If you have knowledge, let others light their candles in it."
~Margaret Fuller

Back to top
View user's profile Send private message 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Fri 14 Oct 2005, 03:29    Post subject:  

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
lock.jpg
 Description   
 Filesize   24.51 KB
 Viewed   2680 Time(s)

lock.jpg

lockstation.pup
Description 
pup

 Download 
Filename  lockstation.pup 
Filesize  5.93 KB 
Downloaded  572 Time(s) 

Last edited by MU on Fri 14 Oct 2005, 05:02; edited 4 times in total
Back to top
View user's profile Send private message Visit poster's website 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Fri 14 Oct 2005, 03:32    Post subject: Re: enhanced script  

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
Back to top
View user's profile Send private message Visit poster's website 
John Doe

Joined: 01 Aug 2005
Posts: 1689
Location: Michigan, US

PostPosted: Fri 14 Oct 2005, 04:03    Post subject: Re: enhanced script  

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? Smile


hmmm.. I'm only a beginner in mind reading. Anyone else got a degree?
Back to top
View user's profile Send private message 
Guest
Guest


PostPosted: Fri 14 Oct 2005, 04:27    Post subject:  

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.
Back to top
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Fri 14 Oct 2005, 04:41    Post subject:  

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
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 2 [17 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0870s ][ Queries: 12 (0.0093s) ][ GZIP on ]