F5F Stay Refreshed Software Operating Systems Lfs version 11.0 on Ubuntu 21.10 does not allow dropping the controlling terminal.

Lfs version 11.0 on Ubuntu 21.10 does not allow dropping the controlling terminal.

Lfs version 11.0 on Ubuntu 21.10 does not allow dropping the controlling terminal.

U
Ultimatenotch
Member
70
12-15-2023, 04:22 AM
#1
You're encountering an issue where `su tester -c [...]` fails because the system can't drop the controlling terminal. The `tty` output shows `/dev/pts/0`, which suggests a problem with terminal configuration. Try mounting your system's config files or adjusting the `/etc/profile` to allow su to run without dropping the terminal. Also, ensure you're using the correct user context when running commands.
U
Ultimatenotch
12-15-2023, 04:22 AM #1

You're encountering an issue where `su tester -c [...]` fails because the system can't drop the controlling terminal. The `tty` output shows `/dev/pts/0`, which suggests a problem with terminal configuration. Try mounting your system's config files or adjusting the `/etc/profile` to allow su to run without dropping the terminal. Also, ensure you're using the correct user context when running commands.

M
Mr_Fotboll
Member
52
01-02-2024, 01:14 AM
#2
Execute the command from the tester user. Run the path and issue the required commands.
M
Mr_Fotboll
01-02-2024, 01:14 AM #2

Execute the command from the tester user. Run the path and issue the required commands.

P
136
01-02-2024, 01:31 AM
#3
It seems the system blocked /bin/bash due to permission issues. The `/` directory had permissions set to 700 instead of the correct 755. It looks like you might have overlooked this, but it could help others facing similar problems with LFS!
P
Pumpkinhead100
01-02-2024, 01:31 AM #3

It seems the system blocked /bin/bash due to permission issues. The `/` directory had permissions set to 700 instead of the correct 755. It looks like you might have overlooked this, but it could help others facing similar problems with LFS!

S
Sapphire01
Junior Member
7
01-02-2024, 02:50 AM
#4
I adjusted it for you as well. From inside the chroot environment, I just required chmod 755 /
S
Sapphire01
01-02-2024, 02:50 AM #4

I adjusted it for you as well. From inside the chroot environment, I just required chmod 755 /