diff options
author | Stig Thormodsrud <stig@vyatta.com> | 2009-04-26 18:51:04 -0700 |
---|---|---|
committer | Stig Thormodsrud <stig@vyatta.com> | 2009-04-26 18:51:04 -0700 |
commit | f8e69a9cd0110168e270a1b95813ce0b4adfe283 (patch) | |
tree | ac8dca73b1d387ec67df7a297b544ba0c048f2b9 /debian | |
parent | 1fc94205234401e347613b9996d71698f98f1dd1 (diff) | |
download | vyatta-cfg-quagga-f8e69a9cd0110168e270a1b95813ce0b4adfe283.tar.gz vyatta-cfg-quagga-f8e69a9cd0110168e270a1b95813ce0b4adfe283.zip |
Add configurable login banners.
Diffstat (limited to 'debian')
-rw-r--r-- | debian/vyatta-cfg-system.postinst.in | 3 |
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 |