Urgent problem with wtmpx


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Urgent problem with wtmpx
# 15  
Old 04-07-2003
Hi Nero,

Here is my /etc/inittab file. Which I see the last line has the FaxModem entry. And the line before is a console entry....


  • ap::sysinit:/sbin/autopush -f /etc/iu.ap
    ap::sysinit:/sbin/soconfig -f /etc/sock2path
    fs::sysinit:/sbin/rcS sysinit >/dev/msglog 2<>/dev/msglog </dev/console
    is:3:initdefault:
    p3:s1234: powerfail:/usr/sbin/shutdown -y -i5 -g0 >/dev/msglog 2<>/dev/msglog
    sS:s:wait:/sbin/rcS >/dev/msglog 2<>/dev/msglog </dev/console
    s0:0:wait:/sbin/rc0 >/dev/msglog 2<>/dev/msglog </dev/console
    s1:1:respawn:/sbin/rc1 >/dev/msglog 2<>/dev/msglog </dev/console
    s2:23:wait:/sbin/rc2 >/dev/msglog 2<>/dev/msglog </dev/console
    s3:3:wait:/sbin/rc3 >/dev/msglog 2<>/dev/msglog </dev/console
    s5:5:wait:/sbin/rc5 >/dev/msglog 2<>/dev/msglog </dev/console
    s6:6:wait:/sbin/rc6 >/dev/msglog 2<>/dev/msglog </dev/console
    fw:0:wait:/sbin/uadmin 2 0 >/dev/msglog 2<>/dev/msglog </dev/console
    of:5:wait:/sbin/uadmin 2 6 >/dev/msglog 2<>/dev/msglog </dev/console
    rb:6:wait:/sbin/uadmin 2 1 >/dev/msglog 2<>/dev/msglog </dev/console
    sc:234:respawn:/usr/lib/saf/sac -t 300
    co:234:respawn:/usr/lib/saf/ttymon -g -h -p "`uname -n` console login: " -T sun -d /dev/console -l console -m ldterm,ttcompat
    yb:234:respawn:/usr/local/sbin/faxmodem /dev/ttyb
# 16  
Old 04-07-2003
Peterh, you still haven't told Perderabo or Neo (not nero Smilie) what OS you're using...
# 17  
Old 04-07-2003
I am running SunOS 5.8 Generic_108528-13 sun4u sparc SUNW,Sun-Fire-280R.

Sorry
# 18  
Old 04-07-2003
Great! We are making progress! Comment out or delete this line from your inittab file restart init and you should not have any more of those pesky faxmodem problems Smilie

Here is the offending line:

Code:
yb:234:respawn:/usr/local/sbin/faxmodem /dev/ttyb

If you are like most of us, prone to make mistakes, copy the original inittab file to something like inittab.faxmodem , edit the original file and simply delete the offending faxmodem line and then restart init i.e. kill -1 [process ID of init] .....

(I'm guessing you have already done so by now...)

Neo
# 19  
Old 04-08-2003
Bug

Thanks nero,

Just a short question. When I edit inittab, Can I use "init q" ?? Is it true that it rereads the inittab.. I just want make sure. I dont want to stop a running system... Smilie

Thanks for all your help

Peter
# 20  
Old 04-08-2003
According to the man page, it does:
Quote:
To spawn each process in /etc/inittab, init reads each entry
and for each entry that should be respawned, it forks a
child process. After it has spawned all of the processes
specified by /etc/inittab, init waits for one of its descen-
dant processes to die, a powerfail signal, or a signal from
another init or telinit process to change the system's run
level. When one of these conditions occurs, init re-
examines /etc/inittab.

inittab Additions
New entries can be added to /etc/inittab at any time; how-
ever, init still waits for one of the above three conditions
to occur before re-examining /etc/inittab. To get around
this, init Q or init q command wakes init to re-examine
/etc/inittab immediately.

Last edited by oombera; 04-08-2003 at 10:24 AM..
# 21  
Old 04-09-2003
init q is just fine (and a better choice)..... glad we were able to find the problem. Looks like you might have other processes in inittab that need to be updated.

Neo
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Getting information from the wtmpx file

Hi, I tried running the command "last" in the server to check the users that were last logged into the system. However, I get this error : root@csidblog:# last /var/adm/wtmpx: Value too large for defined data type How do I proceed to get this info? I read some forums suggesting to use... (2 Replies)
Discussion started by: anaigini45
2 Replies

2. Solaris

wtmpx corrupted ? fix ...

Hi, saw couple threads about wtmpx corruption, I had this problem on many servers, last command was not working or displaying old output, found good information on a thread on this site and wrote a perl script to fix, thought it might help some people. I found that using wtmpfix I lost many... (0 Replies)
Discussion started by: yannm
0 Replies

3. Solaris

WTMPX File corrupted

Hi All I work on solaris 8, 9 and 10 platforms and have encountered an error which is my wtmpx files appear to be corrupted as all entries contain the date 1970 (the birth of unix). Now this is obviously not the case, so my query is: 1 - Can the existing wtmpx files be manipulated to... (6 Replies)
Discussion started by: drestarr96
6 Replies

4. Solaris

wtmpx file

What could possibly happen if wtmpx file got deleted by mistake? Thanks, (8 Replies)
Discussion started by: Pouchie1
8 Replies

5. UNIX for Advanced & Expert Users

wtmpx file is not updating

Hi in my solaris 9 system wmptx file is not updating so it is not recording any login or logout or any other entry. can any one tell me how to solve this problem (0 Replies)
Discussion started by: aaysa123
0 Replies

6. Solaris

wtmpx file is too big

Hi, I am using Sun Solaris 5.9 OS. I have found a file called wtmpx having a size of 5.0 GB. I want to clear this file using :>/var/adm/wtmpx. My query is, would it cause any problem to the running live system. Could anyone suggest the best method to clear the file without causing problem to... (6 Replies)
Discussion started by: Vijayakumarpc
6 Replies

7. UNIX for Dummies Questions & Answers

wtmpx file

Hello everybody: the wtmpx file on my Sol8 machine, got so big (2GB), that my root partition is almost full now, can I empty that file, I read about it that it contains database of user access and auditing, so in case I emptied it will it affect my system?? Thanks alot (3 Replies)
Discussion started by: aladdin
3 Replies

8. UNIX for Advanced & Expert Users

how to delete entry in file "wtmpx"(/var/adm/wtmpx)

Do someone know how to delete entry(some lines) in file "wtmpx" that command "last" use it. this file is binary so I cannot edit directy. ========================= #last root pts/1 noc Fri Mar 3 22:04 still logged in root pts/1 noc Fri Mar 3 22:01 - 22:02 ... (4 Replies)
Discussion started by: arm_naja
4 Replies

9. UNIX for Dummies Questions & Answers

help urgent problem

i accedently "deleted" all workspaces I have a black screen and dont know what to do solaris common desktop enviroment (1 Reply)
Discussion started by: ssshakir
1 Replies

10. UNIX for Dummies Questions & Answers

wtmpx

Platform sol 8 I had wtmpx growing very large(1.2 G). I copied the file and compressed it the did a "cat /dev/null > /var/adm/wtmpx" to zero out the file and not close any doors to any processes. (After searching this seemed like the right method) This is a box that gets accessed from other... (5 Replies)
Discussion started by: finster
5 Replies
Login or Register to Ask a Question