- Files:
-
- /devel/dploy-pxe (added)
- /devel/dploy-pxe/bin (added)
- /devel/dploy-pxe/bin/dploy-add2pxe (added)
- /devel/dploy-dhcp (added)
- /devel/dploy-dhcp/bin (added)
- /devel/dploy-dhcp/bin/dploy-add2dhcp (added)
- /devel/dploy/bin/add2pxe (deleted)
- /devel/pbconf (added)
- /devel/pbconf/dploy-dhcp (added)
- /devel/pbconf/dploy-dhcp/pbfilter (added)
- /devel/pbconf/dploy-dhcp/deb (added)
- /devel/pbconf/dploy-dhcp/deb/control (added)
- /devel/pbconf/dploy-dhcp/deb/compat (added)
- /devel/pbconf/dploy-dhcp/deb/dploy-dhcp.dirs (added)
- /devel/pbconf/dploy-dhcp/deb/changelog (added)
- /devel/pbconf/dploy-dhcp/deb/copyright (added)
- /devel/pbconf/dploy-dhcp/deb/dploy-dhcp.docs (added)
- /devel/pbconf/dploy-dhcp/deb/rules (added)
- /devel/pbconf/dploy-dhcp/rpm (added)
- /devel/pbconf/dploy-dhcp/rpm/dploy-dhcp.spec (added)
- /devel/pbconf/dploy.pb (added)
- /devel/pbconf/pbfilter (added)
- /devel/pbconf/pbfilter/deb.pbf (added)
- /devel/pbconf/pbfilter/rpm.pbf (added)
- /devel/pbconf/pbfilter/novell.pbf (added)
- /devel/pbconf/pbfilter/md.pbf (added)
- /devel/pbconf/pbfilter/all.pbf (added)
- /devel/dploy-doc/concepts.odp (modified) (previous)
- /devel/sshgw/lib/SSHGWUser.pm (modified) (6 diffs)
- /devel/sshgw/bin/userrights (added)
- /devel/sshgw/bin/delsys (added)
- /devel/sshgw/bin/createrootskel (modified) (2 diffs)
- /devel/sshgw/bin/testsshuserage (added)
- /devel/sshgw/bin/delenv (added)
- /devel/sshgw/bin/usersys (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
/devel/sshgw/lib/SSHGWUser.pm
r11 r26 189 189 my $email = shift ; 190 190 my $emailcc = shift ; 191 my $defaultcc = "grenoble.hpisc\@hp.com,pingouin\@hp.com ,adrien.polaert\@hp.com";191 my $defaultcc = "grenoble.hpisc\@hp.com,pingouin\@hp.com"; 192 192 my $bcc; 193 193 … … 206 206 print "Sending keys to $email\n" ; 207 207 print " and Bcc to $bcc\n" ; 208 my $mutt = new FileHandle "| /usr/bin/mutt -a /etc/ssh/keys/$self->{USERNAME} -a /etc/ssh/keys/$self->{USERNAME}.pub - s 'Your new ssh keys for the HP INTEL Solution Center' -b $bcc $email" || return 0;208 my $mutt = new FileHandle "| /usr/bin/mutt -a /etc/ssh/keys/$self->{USERNAME} -a /etc/ssh/keys/$self->{USERNAME}.pub -a /usr/local/share/pdf/HOWTO_SSH_Gateway_-_Using_Putty_to_access_HPISC_resources_-_v0.1.pdf -s 'Your new ssh keys for the HP INTEL Solution Center' -b $bcc $email" || return 1 ; 209 209 210 210 print $mutt <<EOF ; … … 215 215 216 216 WARNING: ensure to save '$self->{USERNAME}' file without extension (like invisible .txt under Windows). This could prevent your client to open the SSH connection. 217 218 You will find also attached the documentation to go through the steps to connect to servers via the SSH GW using the Putty utility. See below some alternative choices. 217 219 218 220 Windows users may use various tools to interact with our SSH gateway. … … 424 426 $self->{USERENV} = "DONE" ; 425 427 426 rename ("/home/chroot/$self->{USERNAME}/home/ user", "/home/chroot/$self->{USERNAME}/home/$self->{USERNAME}") || $self->_cleanup ("cannot rename user's dir") && return 0 ;428 rename ("/home/chroot/$self->{USERNAME}/home/chroot", "/home/chroot/$self->{USERNAME}/home/$self->{USERNAME}") || $self->_cleanup ("cannot rename user's dir") && return 0 ; 427 429 428 430 (open (EP, ">>/home/chroot/$self->{USERNAME}/etc/passwd" )) || return 0; #|| $self->_cleanup("cannot update user's passwd file") && return 0 ; … … 458 460 459 461 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 ;462 ( system { "/etc/sysconfig/iptables" } ( "/etc/sysconfig/iptables", "" ) ) && $self->_cleanup("cannot renew iptables") && return 0 ; 461 463 462 464 return 1 ; … … 502 504 return 0 if -f "/etc/sysconfig/iptables.users/$self->{USERNAME}" ; 503 505 504 return 0 if system "/etc/ init.d/iptables restart" ;506 return 0 if system "/etc/sysconfig/iptables" ; 505 507 506 508 return 1 ; /devel/sshgw/bin/createrootskel
r17 r24 29 29 # Adds binaries 30 30 sbins="/bin/bash /bin/cp /bin/ls /bin/mkdir /bin/mv /bin/rm /bin/rmdir /bin/grep" 31 ubins="/usr/bin/ rdesktop /usr/bin/scp /usr/bin/sftp /usr/bin/ssh /usr/bin/xauth"31 ubins="/usr/bin/scp /usr/bin/sftp /usr/bin/ssh /usr/bin/xauth" 32 32 # Obsolete in 2007.1 33 33 #xbins="/usr/X11R6/bin/xauth" … … 107 107 108 108 rm -rf $d/lib $d/usr 109 mkdir -p $d/lib $d/usr/lib $d/usr/bin $d/usr/lib/ssh $d/usr/share/rdesktop/keymaps#$d/usr/X11R6/bin $d/usr/X11R6/lib109 mkdir -p $d/lib $d/usr/lib $d/usr/bin $d/usr/lib/ssh #$d/usr/X11R6/bin $d/usr/X11R6/lib 110 110 cp -a $ubins $d/usr/bin 111 111 (cd $d/usr/bin ; ln -sf ssh slogin) 112 112 cp -a $lbins $d/usr/lib/ssh 113 cp -a /usr/share/rdesktop/keymaps/* $d/usr/share/rdesktop/keymaps114 113 #cp -a $xbins $d/usr/X11R6/bin 115 114
