Changeset 21
- Timestamp:
- 09/21/07 18:05:03 (4 years ago)
- Location:
- devel/sshgw
- Files:
-
- 5 added
- 1 edited
-
bin/delenv (added)
-
bin/delsys (added)
-
bin/testsshuserage (added)
-
bin/userrights (added)
-
bin/usersys (added)
-
lib/SSHGWUser.pm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
devel/sshgw/lib/SSHGWUser.pm
r11 r21 458 458 459 459 chmod(0755, "/etc/sysconfig/iptables.users/$self->{USERNAME}") || $self->_cleanup("cannot change mod of iptables file") && return 0 ; 460 ( system { "/etc/ init.d/iptables" } ( "/etc/init.d/iptables", "restart" ) ) && $self->_cleanup("cannot renew iptables") && return 0 ;460 ( system { "/etc/sysconfig/iptables" } ( "/etc/sysconfig/iptables", "" ) ) && $self->_cleanup("cannot renew iptables") && return 0 ; 461 461 462 462 return 1 ; … … 502 502 return 0 if -f "/etc/sysconfig/iptables.users/$self->{USERNAME}" ; 503 503 504 return 0 if system "/etc/ init.d/iptables restart" ;504 return 0 if system "/etc/sysconfig/iptables" ; 505 505 506 506 return 1 ;
Note: See TracChangeset
for help on using the changeset viewer.
