Help for this page

Select Code to Download


  1. or download this
    $uid = 99;
    # $> = 0
    $gid = "99 2 99";
    # $) = "0 1 0"
    
  2. or download this
    $> = $uid;
    $) = $gid;
    ...
    # Current values are now:
    # $> = 99
    # $) = "0 1 0"
    
  3. or download this
    $) = $gid;
    $> = $uid;
    ...
    # $> = 99
    # $) = "99 2 99"
    # Which is the desired outcome
    
  4. or download this
    ($>, $)) = ($uid, $gid;)
    
    ...
    # $) = "0 99 2"
    # The other groups section has been successfully changed,
    # but the actual effective gid has not.