From 6605e8805b82f3969951388debe3ecc0b55d1436 Mon Sep 17 00:00:00 2001 From: brian Date: Thu, 28 Sep 2000 05:43:44 +0000 Subject: Use su -m instead of just su to avoid reading the users login profile --- etc/network.subr | 2 +- etc/rc.d/netoptions | 2 +- etc/rc.d/network1 | 2 +- etc/rc.d/network2 | 2 +- etc/rc.d/network3 | 2 +- etc/rc.d/routing | 2 +- etc/rc.network | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) (limited to 'etc') diff --git a/etc/network.subr b/etc/network.subr index 168f3bd..8e97b44 100644 --- a/etc/network.subr +++ b/etc/network.subr @@ -175,7 +175,7 @@ network_pass1() { ppp_command="${ppp_command} ${ppp_profile}" echo -n "Starting ppp as \"${ppp_user}\"" - su ${ppp_user} -c "exec ${ppp_command}" + su -m ${ppp_user} -c "exec ${ppp_command}" ;; esac diff --git a/etc/rc.d/netoptions b/etc/rc.d/netoptions index 168f3bd..8e97b44 100644 --- a/etc/rc.d/netoptions +++ b/etc/rc.d/netoptions @@ -175,7 +175,7 @@ network_pass1() { ppp_command="${ppp_command} ${ppp_profile}" echo -n "Starting ppp as \"${ppp_user}\"" - su ${ppp_user} -c "exec ${ppp_command}" + su -m ${ppp_user} -c "exec ${ppp_command}" ;; esac diff --git a/etc/rc.d/network1 b/etc/rc.d/network1 index 168f3bd..8e97b44 100644 --- a/etc/rc.d/network1 +++ b/etc/rc.d/network1 @@ -175,7 +175,7 @@ network_pass1() { ppp_command="${ppp_command} ${ppp_profile}" echo -n "Starting ppp as \"${ppp_user}\"" - su ${ppp_user} -c "exec ${ppp_command}" + su -m ${ppp_user} -c "exec ${ppp_command}" ;; esac diff --git a/etc/rc.d/network2 b/etc/rc.d/network2 index 168f3bd..8e97b44 100644 --- a/etc/rc.d/network2 +++ b/etc/rc.d/network2 @@ -175,7 +175,7 @@ network_pass1() { ppp_command="${ppp_command} ${ppp_profile}" echo -n "Starting ppp as \"${ppp_user}\"" - su ${ppp_user} -c "exec ${ppp_command}" + su -m ${ppp_user} -c "exec ${ppp_command}" ;; esac diff --git a/etc/rc.d/network3 b/etc/rc.d/network3 index 168f3bd..8e97b44 100644 --- a/etc/rc.d/network3 +++ b/etc/rc.d/network3 @@ -175,7 +175,7 @@ network_pass1() { ppp_command="${ppp_command} ${ppp_profile}" echo -n "Starting ppp as \"${ppp_user}\"" - su ${ppp_user} -c "exec ${ppp_command}" + su -m ${ppp_user} -c "exec ${ppp_command}" ;; esac diff --git a/etc/rc.d/routing b/etc/rc.d/routing index 168f3bd..8e97b44 100644 --- a/etc/rc.d/routing +++ b/etc/rc.d/routing @@ -175,7 +175,7 @@ network_pass1() { ppp_command="${ppp_command} ${ppp_profile}" echo -n "Starting ppp as \"${ppp_user}\"" - su ${ppp_user} -c "exec ${ppp_command}" + su -m ${ppp_user} -c "exec ${ppp_command}" ;; esac diff --git a/etc/rc.network b/etc/rc.network index 168f3bd..8e97b44 100644 --- a/etc/rc.network +++ b/etc/rc.network @@ -175,7 +175,7 @@ network_pass1() { ppp_command="${ppp_command} ${ppp_profile}" echo -n "Starting ppp as \"${ppp_user}\"" - su ${ppp_user} -c "exec ${ppp_command}" + su -m ${ppp_user} -c "exec ${ppp_command}" ;; esac -- cgit v1.1