Tiny Core Linux
Tiny Core Base => TCB Bugs => Topic started by: danielibarnes on October 14, 2009, 04:25:58 PM
-
Since the autologin user for tty1 in /etc/inittab is now set to $USER by tc-config (line 198), the script code in /root/.profile causes incorrect operation. The symptom is that if other virtual terminals are enabled, logging in as root will immediately su as the tc user.
Removing lines 5-10 of /root/.profile will allow a user to log in as root.
-
It seems there is a race condition between the processing of the tty1 settings in /etc/inittab and its modification by /etc/init.d/tc-config (line 198). Booting with /root/.profile modified as above and no boot parameters results in an autologin which randomly logs in as either root or the tc user. The default /root/.profile hides this race condition because even a root login will result in su as the tc user.
Based on my observation, I'd say it is unsafe to modify /etc/inittab within /etc/init.d/tc-config.
-
I see this is a message that I have somehow overlooked.
I agree with our statement, actually it is orphaned code in tc-config and will be removed.
-
The problem still exists in 2.6. If I specify "noautologin" and then login as root it will "sudo su" as tc user.
-
Only the orphaned code in tc-config was deleted in 2.6.
I believe you mean subsquent root logins.
Will be addressed in 2.7
-
The problem still exists in 2.6. If I specify "noautologin" and then login as root it will "sudo su" as tc user.
..probably only safe if you remaster anyway. There's a noautologin script.
-
Agreed.