You are not logged in.
Every time I login, the command "sudo ntpd -qg" is run, I have to enter root password (unless I login with root username) and am immediately shot back to the login screen.
So my time on my system was consistently wrong on start-up (probably dual-boot stuff), and running "sudo ntpd -qg" after logging in fixed it. So, I figured I'd make a script and run it on startup that will do this triviality for me. The script was something like this:
#!/bin/bash
sudo ntpd -qg
exit
I put it in /etc/profile.d and ran the following commands (according to .bash_history)
sudo nano time.sh
sudo chmod 1777 time.sh
sudo chown root:root time.sh
sudo chown -v root:root time.sh
sudo ntpd -qg
then proceeded to flounder about installing gtk3.
When I boot using an iso and navigate to /etc/profile.d, there is no time.sh. I ran "find 'time.sh' /" and got nothing. I'm not sure what to do now, as I cannot find what I assume to be the root of the issue.
Other things I did that session: installed JRE, installed gtk3-3.22, installed libreoffice.
Thank you.
Last edited by migillope (2018-10-22 21:56:31)
Offline
You've to mount the installed root - /etc on the iso is /etc of the iso - and that does of course not contain your local changes …
Offline
I've run:
mount /dev/sda5 /
mount /dev/sda7 /home
Is there something more I have to do?
Offline
You mounted a different partition into the root path?
Try eg. "mount /dev/sda5 /mnt/sda5" and inspect /mnt/sda5/etc.
Offline
I did that, this is the same folder as when I had it the partition mounted onto /. Still no time.sh
Offline
I made a really dumb mistake. I didn't reboot before remounting, I just tried to use umount. Your method worked, seth, thank you.
I guess that leads to a follow-up question: why did that script break everything in the first place? I'll do some research on my own before creating a new thread or expecting anyone to respond.
I appreciate your help.
Offline
I would hazard a guess at the issue being the script calling exit.
Offline