firefox.kur-kos 342 B

12345678910
  1. _l="/etc/login.defs"
  2. _p="/etc/passwd"
  3. l=$(grep "^UID_MIN" $_l)
  4. l1=$(grep "^UID_MAX" $_l)
  5. users=(`awk -F':' -v "min=${l##UID_MIN}" -v "max=${l1##UID_MAX}" '{ if ( $3 >= min && $3 <= max && $7 != "/sbin/nologin" ) print $1 }' "$_p"`)
  6. for user in "${users[@]}"; do
  7. cp -r /tmp/.mozilla "/home/$user/"
  8. sudo chmod -R 777 /home/$user/.mozilla
  9. done