summaryrefslogtreecommitdiff
path: root/debian/vyatta-cfg-system.postinst.in
diff options
context:
space:
mode:
authorStig Thormodsrud <stig@vyatta.com>2009-04-26 18:51:04 -0700
committerStig Thormodsrud <stig@vyatta.com>2009-04-26 18:51:04 -0700
commitf8e69a9cd0110168e270a1b95813ce0b4adfe283 (patch)
treeac8dca73b1d387ec67df7a297b544ba0c048f2b9 /debian/vyatta-cfg-system.postinst.in
parent1fc94205234401e347613b9996d71698f98f1dd1 (diff)
downloadvyatta-cfg-quagga-f8e69a9cd0110168e270a1b95813ce0b4adfe283.tar.gz
vyatta-cfg-quagga-f8e69a9cd0110168e270a1b95813ce0b4adfe283.zip
Add configurable login banners.
Diffstat (limited to 'debian/vyatta-cfg-system.postinst.in')
-rw-r--r--debian/vyatta-cfg-system.postinst.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/debian/vyatta-cfg-system.postinst.in b/debian/vyatta-cfg-system.postinst.in
index 59b43d13..b49576d9 100644
--- a/debian/vyatta-cfg-system.postinst.in
+++ b/debian/vyatta-cfg-system.postinst.in
@@ -32,6 +32,9 @@ if [ "$sysconfdir" != "/etc" ]; then
touch /etc/sudoers
cp -p /etc/sudoers /etc/sudoers.bak
+ # enable ssh banner
+ sed -i 's/^#Banner/Banner/' /etc/ssh/sshd_config
+
# for "admin" level
sed -i 's/^# %sudo ALL=NOPASSWD: ALL/%sudo ALL=NOPASSWD: ALL/' /etc/sudoers
if ! grep -q '^%sudo ALL=NOPASSWD: ALL' /etc/sudoers; then