View Full Version : simple dos boot password
paulbishop
07-25-2001, 10:04 AM
How can i add a bootup password (not bios) in autoexec.bat
Have seen syntax long ago but forgotten. Can choice command be added into autoexec.bat to require a text string? I assume that system will wait until the choice (?) is satisfied before it continues boot sequence. Otherwise could I use call command?
Somebody know the right lines to add please????
Ghost_Hacker
07-25-2001, 11:06 AM
Dr.DOS has a built in "dos" password program, however MS DOS does not. You'll need either to use the BIOS boot password protection or a 3rd party DOS boot password program.
Here's a link that may help.
http://ciac.llnl.gov/ciac/ToolsDOSSystem.html
EDIT: one thing I'm not sure of.... can these programs stop a user from hitting the F5 or F8 key to bypass the processing of the autoexec.bat and config.sys files? If they can't then you'll need to use an older version of DOS that did not have that function. (versions prior to DOS 6 I belive don't have the F5,F8 functions )
Good luck http://www.PCGuide.com/ubb/smile.gif
------------------
Comment heard from a Klingon programmer.
"Our users will know fear and cower before our software! Ship it! Ship it and let them flee like the dogs they are!"
[This message has been edited by Ghost_Hacker (edited 07-25-2001).]
pjungwirth
07-26-2001, 12:58 AM
Um . . . can't you just hit Cntl-C to break out of autoexec.bat? I know you could several years ago (back when I used DOS). I know Unix can trap the signal and prevent a user from breaking out of a script, but does DOS have this functionality? Maybe it would work if you ran a password app right at the beginning of autoexec, but that still seems risky.
--Paul
~{:-)
Paleo Pete
07-26-2001, 02:34 AM
Yes, you can add a command in autoexec.bat to turn the break capability off. I think it's
BREAK=OFF
but I'd have to dig out some books to confirm it. That turns off [Ctrl] + [C].
You would also have to add it before the command to run the password option. Another thing that might be worth looking into is a password program, and simply load it through autoexec.bat. SimTel (http://www.simtel.net/) should have something in the DOS section that should work.
To add the command line just type in the name of the program, and add it to the path statement as well.
PATH=C:\DOS;C:\PASSWD
would be an example of the path statement, which can be much longer depending on how many applicatins need to be in it,
PASSWD
would run PASSWD.EXE, no need to add the extension.
Make sure it's AFTER the command to turn break off so it won't work.
------------------
YOU! Out of the gene pool!
Note: Please post your questions on the forums, not in my email.
Computer Information Links (http://www.geocities.com/paleopete/)
paulbishop
07-26-2001, 05:52 AM
Thanks people ... yep i realise the crtl/break and the F8 thing. Reason for pwd is to stop pre-teen kids getting in and installing games. The pc belongs to a computer illiterate friend, and when it dies ... he cant fix it, so i get the honour http://www.PCGuide.com/ubb/redface.gif) Might have been an old Comm 64 process i once used ... cant remember. Looks like the bios version but this has repercussions if you forget it ... gets messy. Will go for 3rd party thing i think. Tnx agn
vBulletin v3.6.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.