On Thursday 25 May 2006 00:19, Sergey Mkrtchyan wrote:
Leendert Meyer wrote:
I tried to write in FOO.log something like
echo "$(date +%FT%T%z): FOO started by the user $USER" >> /tmp/FOO.log
but it didn't get the value for $USER. and writes in file only "date: FOO started by user". Is it possible to get the user who starts FOO?
Normally USER should be set to the user's login id. If not, try: user=`id -nu`; echo "$user" I used lowercase becase 1) case matters, and 2) USER is already taken (in use by the system).
What does 'grep inittab /root/.bash_history' say?
I am also intrigued to check it, but unfortunately the problem got deeper, now I am not able to even login to Linux...at booting it says
INIT: version 2.85 booting INIT: cannot execute "/etc/init.d/boot" INIT: Entering runlevel: 5 INIT: cannot execute "/etc/init.d/rc"
Oops. Is /etc/init.d emptied?
(none) login: root(or any another user) login: PAM Failure, aborting: Critical error - immediate abort
And booting at a Failsafe mode gives the same... It is already 03.30 night here and I still can't make it to work...
Try 'init=/bin/bash' at the boot prompt. That gives you a shell to work in. Nothing fancy, no services are started, etc. Maybe the easiest would be to re-install, after you've saved your precious files (if any). Take care, don't rush. ;) I'm at 1:30 here, so I'm off to bed. Cheers, Leen