Use su -m instead of just su to avoid reading the users login profile
This commit is contained in:
parent
d5aa12349f
commit
cd63d8618f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=66422
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user