Вы можете использовать find
для этого:
find / -type d -group web -exec chmod g+rx {} +
Это немного неэффективно, так как оно также установит для группы значение rw для тех, у кого они уже установлены. Вы также можете указать find
проверить некоторые биты разрешений с помощью -perm / mode
и отменить это совпадение.
El usuario raíz no necesita autenticarse para sudo y, como tal, no es necesario que ingrese una contraseña para ejecutar un comando como otro usuario.
De sudoers
página de manual:
User Authentication
The sudoers security policy requires that most users authenticate themselves
before they can use sudo. A password is not required if the invoking user is root,
if the target user is the same as the invoking user, or if the policy has disabled
authentication for the user or command. (...)
root
es superusuario en Linux. Por defecto root
tiene todos los privilegios. No tiene que configurar explícitamente root
como sudoers
.
Solo piense, si no existe tal superusuario, ¿cómo y quién puede controlar los privilegios de acceso para otros?