Libro donde viven los lobos.
Enviado por loreto12 • 28 de Mayo de 2016 • Tarea • 412 Palabras (2 Páginas) • 110 Visitas
En este ejercicio, vas a agregar usuarios a grupos. Si el grupo que necesitas no existe, vas a tener que crearlo usando el comando groupadd.
In this exercise, you will be adding users to groups. If the group you need does not exist, you will have to make it using the groupadd command. It is very simple and takes only one argument, the name of the group to add.
groupadd nombregrupo
- Usar el comando id, para confirmar la operacion. ** Use the id command at appropriate points to confirm your configuration.
[root@loreto~]# id
- Usando useradd, agregar 3 usuarios: larry3, curly3,moe3 y agregarlos al grupo secundario comedy. ** Using useradd, you are to add three users, larry3, curly3, and moe3, and add them to the secondary group comedy.
Useradd larry3
Useradd curly3
Useradd moe3
Groupadd comedy
Usermod –G comedy larry3
Usermod –G comedy curly3
Usermod –G comedy moe3
- Crear 4 usuarios más: georgeh, paulm, ringos, johnl, y agregarlos a los grupos secundarios music y beatles. ** Create four more users, georgeh, paulm, ringos, and johnl, and add them to both secondary groups music and beatles.
Groupadd music
Groupadd Beatles
Useradd –G music,Beatles georgeh
Useradd –G music,Beatles paulm
Useradd –G music,Beatles ringos
Useradd –G music,Beatles johnl
- Crear un usuario más: weird_al, y agregarlo a los grupos secundarios comedy y music. ** Create one more user, weird_al, and add him to both secondary groups comedy and music.
Useradd –G comedy,music weird_al
- ahora a usar usermod. ** Now you are to make some changes with usermod.
- Tienes problemas para acordarte del apellido de Ringo, así que pones su nombre completo en el campo de comentario de su usuario. **You have trouble remembering how to spell Ringo's last name, so put his full name, Ringo Starr, in his comment field.
Usermod -c “Ringo Starr” ringos
- John fue pillado protestando la guerra, entonces tu administrador te dice que deshabilites su inicio de sesión (login). ** John was caught protesting the war, so your manager says you must disable his login.
Usermod -L johnl
- Agregar Paul al grupo walrus. Debe mantenerse en los grupos beatles y music. ** Add Paul to the walrus group. He should remain a member of the groups beatles and music.
Groupadd walrus
Usermod -G walrus -a Paulm
- Curly nunca supo cómo iniciar sesión, así que hay que borrarle su cuenta y su directorio home, él no se dará cuenta. ** Curly never figured out how to log on, so just delete his account and his home directory; he'll never notice.
Userdel –r curly3
...