1.5.3 Set Boot Loader Password

Warning! Audit Deprecated

This audit has been deprecated and will be removed in a future update.

View Next Audit Version

Information

Configuration Level : Level-I

Solution

#!/bin/bash
grub-md5-crypt | tee /tmp/$$
x=`tail -1 /tmp/$$`
/bin/rm -f /tmp/$$
ed /etc/grub.conf << END > /dev/null 2>&1
g/^password/d
$
?^#?
a
password --md5 $x
.
w
q
END

See Also

https://workbench.cisecurity.org/files/214

Item Details

Category: SYSTEM AND INFORMATION INTEGRITY

References: 800-53|SI-7(9), CCE|CCE-3818-2

Plugin: Unix

Control ID: 9c06ae45071e45a8dbed33bcd4c1ca7558118e7d2d318e7617e0143b7293c65c