Nooh Pulakkal
2015-10-15 15:00:49 UTC
Hi all,
I have came across a situation to save my *iptables* configuration using
normal user without touching sudoers file.
Deeper:
I want to run '*sudo iptables -I INPUT -p tcp --dport 1950 -j ACCEPT;sudo
iptables-save > /etc/sysconfig/iptables.log*' logged in as normal user.
*(*I am able to run* sudo runuser -l root -c '**iptables-save >
/etc/sysconfig/iptables.log'*) //to explain that I(with sudo) have all
write permissions
Is there anyway to run iptables-save and append to new log file
/etc/sysconfig.log without touching sudoers ?
I dont have runuser installed on my target VMs, and I have huge number of
target VMs which is making me lazy to login to each servers. Stuck in
between a script.. :(
Any helps appreciated please..!
Great Thanks in advance..!!
--
With Regards,
Nooh P P
+919633195109
--
--
You received this message because you are subscribed to the "MES-FSUG" group.
To post to this group, send email to mes-***@googlegroups.com
To unsubscribe from this group, send email to mes-fsug-***@googlegroups.com
For more options, visit this group at http://groups.google.com/group/mes-fsug?hl=en
Our IRC channel #mes-fsug at irc.freenode.net. Webpage for GNULabs @ MESCE is at http://gnulabs.org/mesce/
---
You received this message because you are subscribed to the Google Groups "MES-FSUG" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mes-fsug+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I have came across a situation to save my *iptables* configuration using
normal user without touching sudoers file.
Deeper:
I want to run '*sudo iptables -I INPUT -p tcp --dport 1950 -j ACCEPT;sudo
iptables-save > /etc/sysconfig/iptables.log*' logged in as normal user.
*(*I am able to run* sudo runuser -l root -c '**iptables-save >
/etc/sysconfig/iptables.log'*) //to explain that I(with sudo) have all
write permissions
Is there anyway to run iptables-save and append to new log file
/etc/sysconfig.log without touching sudoers ?
I dont have runuser installed on my target VMs, and I have huge number of
target VMs which is making me lazy to login to each servers. Stuck in
between a script.. :(
Any helps appreciated please..!
Great Thanks in advance..!!
--
With Regards,
Nooh P P
+919633195109
--
--
You received this message because you are subscribed to the "MES-FSUG" group.
To post to this group, send email to mes-***@googlegroups.com
To unsubscribe from this group, send email to mes-fsug-***@googlegroups.com
For more options, visit this group at http://groups.google.com/group/mes-fsug?hl=en
Our IRC channel #mes-fsug at irc.freenode.net. Webpage for GNULabs @ MESCE is at http://gnulabs.org/mesce/
---
You received this message because you are subscribed to the Google Groups "MES-FSUG" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mes-fsug+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.