Password file is now in base64, not hex

This commit is contained in:
Gregory Nutt 2016-01-21 16:28:09 -06:00
parent e2838a6118
commit 2f005d9b53
4 changed files with 14 additions and 8 deletions

2
configs/sim/include/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
/etc
/romfs_img

View File

@ -85,7 +85,10 @@ README
Now rebuild the simulation. No login should be required to enter the
shell and you should find the 'useradd', 'userdel', and 'passwd' commands
available in the help summary.
available in the help summary, provided that they are enabled. Make
certain that the 'useradd' command is not disabled:
# CONFIG_NSH_DISABLE_USERADD is not set
Use the NSH 'useradd' command to add new uses with new user passwords like:

Binary file not shown.

View File

@ -1,7 +1,7 @@
const unsigned char romfs_img[] =
{
0x2d, 0x72, 0x6f, 0x6d, 0x31, 0x66, 0x73, 0x2d, 0x00, 0x00, 0x01, 0xa0,
0x83, 0xe9, 0x44, 0x8c, 0x53, 0x69, 0x6d, 0x45, 0x74, 0x63, 0x56, 0x6f,
0x2d, 0x72, 0x6f, 0x6d, 0x31, 0x66, 0x73, 0x2d, 0x00, 0x00, 0x01, 0x90,
0xf3, 0x09, 0x03, 0xc1, 0x53, 0x69, 0x6d, 0x45, 0x74, 0x63, 0x56, 0x6f,
0x6c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x49,
0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0xd1, 0xff, 0xff, 0x97,
0x2e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
@ -28,12 +28,12 @@ const unsigned char romfs_img[] =
0x72, 0x61, 0x6d, 0x32, 0x0a, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x20, 0x2d,
0x74, 0x20, 0x76, 0x66, 0x61, 0x74, 0x20, 0x2f, 0x64, 0x65, 0x76, 0x2f,
0x72, 0x61, 0x6d, 0x32, 0x20, 0x2f, 0x74, 0x6d, 0x70, 0x0a, 0x00, 0x00,
0x00, 0x00, 0x00, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x27,
0x18, 0x3a, 0x8c, 0x5c, 0x70, 0x61, 0x73, 0x73, 0x77, 0x64, 0x00, 0x00,
0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1d,
0x18, 0x3a, 0x8c, 0x6e, 0x70, 0x61, 0x73, 0x73, 0x77, 0x64, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x61, 0x64, 0x6d, 0x69,
0x6e, 0x20, 0x63, 0x37, 0x66, 0x61, 0x66, 0x34, 0x66, 0x63, 0x62, 0x61,
0x37, 0x37, 0x61, 0x65, 0x36, 0x36, 0x62, 0x36, 0x33, 0x34, 0x39, 0x64,
0x37, 0x34, 0x62, 0x30, 0x39, 0x33, 0x34, 0x32, 0x66, 0x33, 0x0a, 0x00,
0x6e, 0x20, 0x38, 0x54, 0x76, 0x2b, 0x48, 0x62, 0x6d, 0x72, 0x33, 0x70,
0x4c, 0x64, 0x64, 0x53, 0x6a, 0x74, 0x7a, 0x4c, 0x30, 0x6b, 0x77, 0x43,
0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
@ -89,3 +89,4 @@ const unsigned char romfs_img[] =
};
const unsigned int romfs_img_len = 1024;