This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| #Obtener grupos con uidNumber >= 1000 | |
| grep "x:[1-9][0-9][0-9][0-9]:" /etc/group > tmp.txt | |
| #Crear o reiniciar archivo ldif | |
| >tmp.ldif | |
| #Recorrer el archivo tmp.txt con la lista de grupos |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| #Obtener usuarios con uidNumber >= 1000 | |
| grep "x:[1-9][0-9][0-9][0-9]:" /etc/passwd > tmp.txt | |
| #Crear o reiniciar archivo ldif | |
| >tmp.ldif | |
| #Recorrer el archivo tmp.txt con la lista de usuarios |