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 Sun 31 Aug 2014, 00:40
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
Does this line suppose to ask for the password or ....
Moderators: Flash, Ian, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
miamuy


Joined: 01 Aug 2005
Posts: 14
Location: Philippines

PostPosted: Mon 12 Sep 2005, 11:12    Post_subject:  Does this line suppose to ask for the password or ....  

hi guys Smile

i'm tinkering with rc.d and find this code.

Code:

echo "$PASSPFILE" | losetup-FULL -e xor /dev/loop1 $HOMEDIR/$NAMEPFILE


my goal is to create a file automatically (like pup001) with password

Code:

 mkdir /part
 dd if=/dev/zero of=/mnt/home/mypup003 bs=1k count=750000
  echo "passwordkoto" | losetup-FULL -e xor /dev/loop2 /mnt/home/mypup003
  mkfs -t ext2 /dev/loop2 750000
  mount -t ext2 /dev/loop2 /part


the script always ask for a password. please correct me. my thought is, "passwordkoto" will be pipped to losetup-FULL to take it as it's password and don't stop to ask me for a password. is there a way i can make a passworded file that does not ask me for a password? is this the correct way?

other than the password thing, it does what it supposed to do... created a passworded mypup003 file (though i don't want the script to ask me for a password)

thanks guys Smile
Back to top
View user's profile Send_private_message 
Flash
Official Dog Handler


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

PostPosted: Mon 12 Sep 2005, 16:33    Post_subject:  

You want the mypup003 file to be password protected, but you want Puppy to automatically supply the password without being prompted? You ask if this is the correct way. I have to ask, what do you want to accomplish?

Assuming you have Puppy installed on a hard drive along with the mypup003, if you want to secure the mypup003 file against unauthorized access I don't think that what you propose will do it. The mypup003 file will be accessible to anyone who boots Puppy on that computer. You could require a password to boot Puppy, but then you would still have the problem of remembering and entering a password so you wouldn't have gained anything.

Your idea might work well for other combinations though. For instance, if the mypup003 file is on a flash drive which you keep separate from the computer where Puppy is installed, the mypup003 file presumably could not be opened on another computer.
Back to top
View user's profile Send_private_message 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: Mon 12 Sep 2005, 22:06    Post_subject:  

Someone else was working on a similar situation and I advised them to investigate
[b]tinylogin[/b - go to Start / help for details.

Not sure if anyone is using this - let us know

_________________
Puppy WIKI
Back to top
View user's profile Send_private_message Visit_website 
miamuy


Joined: 01 Aug 2005
Posts: 14
Location: Philippines

PostPosted: Wed 14 Sep 2005, 00:07    Post_subject:  

thanks guys for the quick reply...

Flash wrote:
You want the mypup003 file to be password protected, but you want Puppy to automatically supply the password without being prompted? You ask if this is the correct way. I have to ask, what do you want to accomplish?


i'm totally new with "bash"/script-programming, so forgive me if i'm asking very newb questions, but i'm trying to learn Smile .

the script in my first post is generated by a 1st script that do ask the password and it's not inserted in rc.d (just another customized script).

what i'm trying to figure-out or accomplish is/are:
1. to enter the password in 1st script,
2. create a 2nd script that includes a password (this password is added with generated characters based on some conditions) for that file &
3. delete that 2nd script.

right now, i'm entering the password in the 1st script, then another password (with the added characters) to the 2nd script.

wheew, i'm having hard time constructing my english heh.

thanks, Smile
miamuy
Back to top
View user's profile Send_private_message 
kamranzaidi

Joined: 01 Oct 2005
Posts: 14
Location: Chicago.IL.US

PostPosted: Sat 01 Oct 2005, 14:28    Post_subject: Chubby puppy 1.0.5 asks password+usb keyboard issue.  

puppy 1.0.5 asks for passward when i use live cd on my laptop (XP) which ias 256 ram but same cd boots fine on my desktop which is has redhat.

i m not sure if my cd has some problem... in both case i am unable to use keyboard. desktop has a usb keyboard... it seems that 1.0.2 puppy did'nt had any kind of usb keyboard problem..
Back to top
View user's profile Send_private_message Visit_website 
Flash
Official Dog Handler


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

PostPosted: Sat 01 Oct 2005, 14:49    Post_subject:  

The standard cause of this problem is Puppy finding a corrupt pup001 file somewhere when it boots. Check your hard drive for a pup001 file that shouldn't be there. Delete it if you find one.
Back to top
View user's profile Send_private_message 
kamranzaidi

Joined: 01 Oct 2005
Posts: 14
Location: Chicago.IL.US

PostPosted: Sat 01 Oct 2005, 20:23    Post_subject:  

On my Win xp laptop, there is'nt any pup001 file as i m booting it very first time with puppy.
Back to top
View user's profile Send_private_message Visit_website 
Flash
Official Dog Handler


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

PostPosted: Sun 02 Oct 2005, 00:26    Post_subject:  

Hmm. Well, just for fun, what happens if you use boot option 3 (I think that's the one to "Choose HD") then choose to boot with no HD?
Back to top
View user's profile Send_private_message 
kamranzaidi

Joined: 01 Oct 2005
Posts: 14
Location: Chicago.IL.US

PostPosted: Sun 02 Oct 2005, 16:09    Post_subject:  

Both option 1 n 3 gives me same "password problem". I tryied option 2 and connected USB drive, it seems, puppy saving data on USB, at the end of boot process, i got error saying .fs file did not mounted properly on /usr.

I am going to copy puppy001 on my hd and will try again. Note same cd is working fine on my desktop.
Back to top
View user's profile Send_private_message Visit_website 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0604s ][ Queries: 11 (0.0062s) ][ GZIP on ]