1) Q:現(xiàn)在遇到這樣一個(gè)問題,telnet一臺(tái)SUN機(jī)時(shí)報(bào)下面的錯(cuò)誤: No utmpx entry. You must exec quot;loginquot; fro
1) Q:現(xiàn)在遇到這樣一個(gè)問題,telnet一臺(tái)SUN機(jī)時(shí)報(bào)下面的錯(cuò)誤:
No utmpx entry. You must exec "login" from the lowest level "shell".
我做了下面的處理后:
cd /var/adm
mv utmpx utmpxbak
touch utmpx
telnet 恢復(fù)了正常,可在該機(jī)器的終端下執(zhí)行l(wèi)ogin 命令時(shí),又報(bào)了上面相同的錯(cuò)誤。而且重新啟動(dòng)機(jī)器以后,telnet時(shí)還是報(bào)相同的錯(cuò)誤!
A:進(jìn)入單用戶模式,,清空(不是刪除)這兩個(gè)文件
# cat /dev/null > /var/adm/wtmpx
# cat /dev/null > /var/adm/utmpx
之后,重新啟動(dòng)系統(tǒng)
找了很多國外的論壇,都是這么說的:
The problem comes if utmp or wtmp file becomes corrupted . 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:我用setenv PATH=$PATH:/path/to/my/program的方式來賦值,總顯示語法或者修飾符有問題。
如果用setenv PATH=/path/to/my/program就可以成功賦值。
請教各位老手,如果我想在CSehll下實(shí)現(xiàn)bash里面export PATH=$PATH:/path/to/my/program的賦值,應(yīng)該怎么寫啊?
沒用過CShell,請各位多指點(diǎn),謝謝。
A:CShell別用等號(hào)
setenv PATH "$PATH":/path/to/my/program
3) Q:系統(tǒng)是SUN 280R,我在#提示符下輸入init s回車后屏幕閃了幾下,然后就成了白屏,強(qiáng)行重啟也沒反應(yīng)
A:關(guān)掉電源,從光盤啟動(dòng),進(jìn)去看看是怎么回事
boot cdrom s 就是從光盤啟動(dòng)后進(jìn)入系統(tǒng)
聲明:本網(wǎng)頁內(nèi)容旨在傳播知識(shí),若有侵權(quán)等問題請及時(shí)與本網(wǎng)聯(lián)系,我們將在第一時(shí)間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com