как запустить оболочку, которая будет отображать логин / приглашение пароля?

No he usado fdisken mucho tiempo. Uso gdisk, y con gdiskpuede eliminar /dev/sda5, y luego eliminar /dev/sda4, y luego crear sda4 nuevamente con el mismo desplazamiento inicial (, tenga cuidado)como antes, pero con el tamaño establecido en lo que quieres que sea. Una vez hecho esto, guarde y salga. Es posible que deba ejecutarpartprobe(desdeparted)para actualizar el /proc/partitions. Una vez que /proc/partitionsse actualiza con el tamaño actualizado de /dev/sda4y /dev/sda5desaparece, ejecute resize2fs /dev/sda4para cambiar su tamaño. También en fdiskantes de realizar cualquier cambio, asegúrese de configurar las unidades de visualización en sectores (usando el comando u).

1
25.06.2019, 17:13
1 ответ

Команда login— это то, что мне нужно, чтобы отобразить обычное приглашение для входа/пароля. Хитрость заключается в том, чтобы запустить команду с помощьюexec

The login program is used to establish a new session with the system. It is normally invoked automatically by responding to the "login:" prompt on the user's terminal. login may be special to the shell and may not be invoked as a sub-process. When called from a shell, login should be executed as exec login which will cause the user to exit from the current shell (and thus will prevent the new logged in user to return to the session of the caller). Attempting to execute login from any shell but the login shell will produce an error message.

Источник:https://www.computerhope.com/unix/ulogin.htm

-2
28.01.2020, 02:12

Теги

Похожие вопросы