Changes in / [20:30]

Show
Ignore:
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • /devel/sshgw/lib/SSHGWUser.pm

    r11 r26  
    189189    my $email = shift ; 
    190190    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"; 
    192192    my $bcc; 
    193193 
     
    206206    print "Sending keys to $email\n" ; 
    207207    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
    209209 
    210210    print $mutt <<EOF ; 
     
    215215 
    216216WARNING: ensure to save '$self->{USERNAME}' file without extension (like invisible .txt under Windows). This could prevent your client to open the SSH connection. 
     217 
     218You 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. 
    217219 
    218220Windows users may use various tools to interact with our SSH gateway.  
     
    424426    $self->{USERENV} = "DONE" ; 
    425427 
    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 ; 
    427429     
    428430    (open (EP, ">>/home/chroot/$self->{USERNAME}/etc/passwd" )) || return 0; #|| $self->_cleanup("cannot update user's passwd file") && return 0 ; 
     
    458460 
    459461    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 ; 
    461463 
    462464    return 1 ; 
     
    502504    return 0 if -f "/etc/sysconfig/iptables.users/$self->{USERNAME}" ; 
    503505 
    504     return 0 if system "/etc/init.d/iptables restart" ; 
     506    return 0 if system "/etc/sysconfig/iptables" ; 
    505507 
    506508    return 1 ; 
  • /devel/sshgw/bin/createrootskel

    r17 r24  
    2929# Adds binaries 
    3030sbins="/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" 
     31ubins="/usr/bin/scp /usr/bin/sftp /usr/bin/ssh /usr/bin/xauth" 
    3232# Obsolete in 2007.1 
    3333#xbins="/usr/X11R6/bin/xauth" 
     
    107107 
    108108    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/lib 
     109    mkdir -p $d/lib $d/usr/lib $d/usr/bin $d/usr/lib/ssh #$d/usr/X11R6/bin $d/usr/X11R6/lib 
    110110    cp -a $ubins $d/usr/bin 
    111111    (cd $d/usr/bin ; ln -sf ssh slogin) 
    112112    cp -a $lbins $d/usr/lib/ssh 
    113     cp -a /usr/share/rdesktop/keymaps/* $d/usr/share/rdesktop/keymaps 
    114113    #cp -a $xbins $d/usr/X11R6/bin 
    115114