1) Q: the following error is reported when you telnet to a SUN machine:
No utmpx entry. You must exec "login" from the lowest level "shell ".
After I have done the following:
Cd/var/adm
Mv utmpx utmpxbak
Touch utmpx
Telnet returns to normal. When you run the login command on the terminal of the machine, the same error is reported. After the machine is restarted, the same error is reported during telnet!
A: In single-user mode, clear (not delete) the two files.
# Cat/dev/null>/var/adm/wtmpx
# Cat/dev/null>/var/adm/utmpx
Then restart the system.
This is what I said when I found many foreign forums:
The problem comes if utmp or wtmp file becomes has upted. You need to initialize these and reboot the system to correct the error.
These files are log files and can be initialized without affecting the system, as long as you reboot the system after truncating the files. Perform these steps:
1. Bring the system into System Maintenance mode.
2. Make copies of the files/etc/utmp,/etc/utmpx,/etc/wtmp, and
/Etc/wtmpx before proceeding with the next step.
3. Delete the contents of these files by executing the following
Commands:
#>/Etc/utmp
#>/Etc/wtmp
#>/Etc/utmpx
#>/Etc/wtmpx
4. Shutdown the system:
# Shutdown-y-g0
Restart the system
2) Q: I use setenv PATH = $ PATH:/path/to/my/program to assign values. The total display syntax or modifier is incorrect.
If setenv PATH =/path/to/my/program is used, the value can be assigned successfully.
How can I assign a value to export PATH = $ PATH:/path/to/my/program in bash under CSehll?
I have never used CShell. Please give me more advice. Thank you.
A: CShell alias
Setenv PATH "$ PATH":/path/to/my/program
3) Q: The system is SUN 280R. At the # prompt, I enter init s and press enter, and the screen flashed a few times. Then it became a white screen, and it didn't respond either after forced restart.
A: Turn off the power, start from the CD, and check what is going on.
Boot cdrom s is started from the disc and then enters the system