Solved

Set a password in DOS

Posted on 2009-06-29
18
616 Views
Last Modified: 2012-05-07
Can you please tell me the easiest way to set up a start up password on a DOS system?  I tried in the BIOS, but that was only protecting the BIOS settings.  Thanks for your help.
0
Comment
Question by:scoobydoowhereru
  • 7
  • 5
  • 4
  • +2
18 Comments
 
LVL 1

Expert Comment

by:annz7117
ID: 24741253
HI:
HERE IS AN EXAMPLE :
Just type NET USER SUSY *
 (do not omit the spaces)

You will get a prompt like ..
Type a password for the user:

Type the desired password and press Enter key. Also note that you wont see *****s as you type but dont worry.
You will again get a prompt like ..
Retype the password to confirm:

Retype the password and press Enter key.

thats it!

0
 
LVL 95

Expert Comment

by:Lee W, MVP
ID: 24741801
Be clear - most people say DOS they MEAN a command prompt - what VERSION of DOS?  

If you mean REAL DOS (as in 6.22, for example), then you can't.  Period.  You may be able to find 3rd party software, but DOS had no concept of security.

If you mean a command prompt in Windows XP/Vista/2000/NT, please clarify what, exactly you want/need here - if you give a CONTEXT, we may be able to help more.
0
 
LVL 3

Expert Comment

by:winstonep
ID: 24744953
Agree that we need further information but have another look at that BIOS password.

Some have an option for setup password. This means simply that if you try to change settings you can't without a password.

Some also allow a password to be required on boot. For example we set all BIOS passwords with a standard users password to get the PC to boot and an administrators password to allow entry to BIOS and change settings.

Realistically if you are talking about preventing access to DOS and not a command prompt then the only hope you have is disc encryption software if you can find any that supports DOS these days. Steganos possibly or Safeguard Easy will do it. Safeguard Easy requires a password after BIOS and if it is not entered the PC will not boot so this may be ideal.
0
 

Author Comment

by:scoobydoowhereru
ID: 24746312
I have DOS 6.22 on an old system and am not accessing DOS through a Windows command prompt.  If it is not possible from this earlier version of DOS then is there a simple third party software that you can recommend that would work with DOS 6.22?  Thanks.

Rich
0
 
LVL 3

Expert Comment

by:winstonep
ID: 24747955
Unlikely to be anything you can buy but the only thing I can think of is something like Stacker if you can find a copy as I believe there was an option to encrypt the compressed disc space so that might work. I don't remember DoubleSpace or whatever it was called in DOS 6.22 can do this but worth checking if there is a way to do it.
0
 
LVL 5

Expert Comment

by:JohnDemerjian
ID: 24748341
How advanced does this need to be?  I can offer a suggestion but it is easily bypassed by pressing F5 in DOS to bypass the autoexec.bat and config.sys...
0
 

Author Comment

by:scoobydoowhereru
ID: 24748785
It does not need to be very sophisticated at all.  I like the autoexec.bat option.  Tell me more.
0
 
LVL 3

Expert Comment

by:winstonep
ID: 24748789
If it's easily bypassed then I wouldn't do it. But of course it's up to you what you want to do. Personally I would use something that pasword protects/compresses the disc so it can't be read. All I can remember is tools like Stacker that may help but then I haven't used it for years.

What is the spec of this PC anyway and why DOS 6.22 out of interest? If a really old PC then you are asking for trouble trying to compress or encrypt due to the overheads on the hardware.
0
 

Author Comment

by:scoobydoowhereru
ID: 24748823
It is used on a piece of industrial equipment and so the PC can not be upgraded nor can the software.  I am stuck with the older system.  I even have to dumb down the speed because if it works too fast then it causes errors.  As for the security, it is really just a quick fix and is not something that is protecting critical data.  
0
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 5

Expert Comment

by:JohnDemerjian
ID: 24748920
give me an idea of how to plan to use it.  so you have a pc that boots to an appliacation but you don't want users to be able to exit the app and get to DOS?  or do you want to launch the app from a DOS-based menu program instead and then when the app exits, return to the menu?
0
 

Author Comment

by:scoobydoowhereru
ID: 24751427
I have customer that just wants a simple password so that someone walking by does not run the equipment.  Nobody would really run it that didn't want to, but it is something that they asked for so I am just trying to come up with an easy password that will give them what they want.  I started out messing with the autoexec.bat file, but I can't remember how to write input$ statements.  It has been some time.  I also went to qbasic, but I am rusty on the syntax.  Anything that is easy would be helpful.  Thanks a lot.

Rich
0
 
LVL 5

Expert Comment

by:JohnDemerjian
ID: 24754339
so if someone walks by the computer and thinks they might like to mess with it, would the computer be sitting at a DOS prompt or would it be sitting in the application itself?  It sounds like it would be sitting in the application, and if so, you'd need a screen saver with a password protection option.  IF that kind of thing can be found for a DOS app, I wouldn't go near it because you'd be getting involved with TSRs that will crash your application.  If it would be at a DOS prompt, you should change that to have the application launch from a menu program instead.  Here is a link to some old DOS menus.  Check out PCMenu.  http://www.resoo.org/docs/dos/free_software/menu.htm

Either way, it is doubtful you can achieve what you want with that PC as it is.
0
 

Author Comment

by:scoobydoowhereru
ID: 24760461
I don't need a password when it is in the application...only when they turn it on in the morning.  As basic and simple as you could imagine.  I am not worried that they could bypass an autoexec.bat file.
0
 

Author Comment

by:scoobydoowhereru
ID: 24770135
Do you have a quick suggestion on how to write an autoexec.bat file with a password or something in Q-basic?
0
 
LVL 3

Expert Comment

by:winstonep
ID: 24774239
without going into code the easiest explanation of a suggestion is:-

1. Write a program that's automatically started in autoexec.bat
2. Program checks a file that contains a password and compares with entered password.
3. If password fails after third attempt then reboot PC.

I am wondering now if this can be done in a batch file after all but this is the simplest description I can think of. I'll have a look for some code tomorrow as I'm sure I have something related to this.
0
 
LVL 5

Expert Comment

by:JohnDemerjian
ID: 24786365
hi - sorry for the delay.  will try to post more later but try this:

you can get user input in DOS with choice.com.  check out this link  http://www.robvanderwoude.com/choice.php

you could do something like -

:TOP
"CHOICE /C:A What is the password?
"
:Loop
goto top
0
 
LVL 5

Assisted Solution

by:JohnDemerjian
JohnDemerjian earned 500 total points
ID: 24786369
sorry ignore the :TOP and :LOOP I was in a rush.  let me know if you make any progress and I'll try to get back to this.
0
 

Accepted Solution

by:
scoobydoowhereru earned 0 total points
ID: 24799357
Thanks John.  I have not had time to experiment, but will try to get to it in a little bit.  
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Extracting computer names from an OU 6 52
Backup solution 14 71
For loop to add numbers 3 29
file size 9 21
The following is a collection of cases for strange behaviour when using advanced techniques in DOS batch files. You should have some basic experience in batch "programming", as I'm assuming some knowledge and not further explain the basics. For some…
Using dates in 'DOS' batch files has always been tricky as it has no built in ways of extracting date information.  There are many tricks using string manipulation to pull out parts of the %date% variable or output of the date /t command but these r…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now