Sponsored Content
Top Forums UNIX for Dummies Questions & Answers ALERT!!! ALERT!!! I messed up the UNIX!!! Post 9916 by Kelam_Magnus on Monday 5th of November 2001 02:07:26 PM
Old 11-05-2001
system problems

Fwurm,

I can sympathize with your problem. I had a problem with root on an HP box a few months ago.

What I did was shutdown and come back up to single user mode.
When the system is coming back up, it should have a moment where it will ask you if you want to interupt. Do it.

This should take you to single user mode. You should be able to mount all available filesystems with "mount -a" command.

then do "df -k" to see if you can see all disks. Somewhere under /etc you should either have a backup password file you created or there should be a default minimal password file with just root, daemon, bin and some other ids in it.

You should save your current bad passwd file and copy over the minimal passwd file. This should help you get back upto multi user mode.

Hope this helps. Of course my advice is based on HPUX, so your results may vary.

Smilie Smilie
 

10 More Discussions You Might Find Interesting

1. Post Here to Contact Site Administrators and Moderators

Alert system

Do you have an alert system? meaning when your question has been answer, could be u guys send an email, informing the question has been answer, of someone did post a reply? Thanks (2 Replies)
Discussion started by: owange_county
2 Replies

2. UNIX for Advanced & Expert Users

Intruder Alert

Good Day I am running HP-UX 11.11 on a PA-RISC Server,when i login as a normal user and i type the command "whoami" i get the "Intruder Alert" on the display? as follows /triceps/triprod/bin $ whoami Intruder alert. /triceps/triprod/bin $ Why does this happen and must I be worried... (1 Reply)
Discussion started by: shawnbishop
1 Replies

3. HP-UX

Alert Patrol

Hello I'm new in Hp-Ux, in all Unix System, we have a sun Server with HpUx 11 that send the follow message. Host=cspkioor Host Class=hpux B.11.11 9000/800 Host Address=192.168.228.7 Object=Summary Object Class=SWAP Parameter=SWPTotSwapUsedPercent Parameter Value= 100... (2 Replies)
Discussion started by: bighand42
2 Replies

4. Shell Programming and Scripting

File alert

Hi friends I have configuration files in one directory. I want to get an alert if any of the existing files gets modified or any new configuration file is present in the directory. Please help me to design a script for this task. Thanks in advance. John (2 Replies)
Discussion started by: johnl
2 Replies

5. UNIX for Dummies Questions & Answers

Alert to be triggered

Hi, I need an alert to be triggered if any filesystem(imagine there are n no of filesystems) reaches more than 90%, it should send an alert to the mailbox stating which filesystem is at what percentage. How can I achieve this in unix? Many thanks. (8 Replies)
Discussion started by: venkatesht
8 Replies

6. Shell Programming and Scripting

Unix Shell Script to automate email alert

Hi all, I have a task on my plate which is of high priority. I need an automated email alert that checks FTP notices subdirectory on a daily basis and forwards any word files to a group of people. This word files gets created whenever there is an issue with FTP connectivity. Please help...... (1 Reply)
Discussion started by: stunnerz_84
1 Replies

7. Shell Programming and Scripting

Pager Alert

I want to check the log file continoulsy and to send a page alert if i see specific message like Reached Max Connrctions . Please suggest how to do this through script DO i need to enable the cronjob to run the script evey 5 min or what is the best way (4 Replies)
Discussion started by: mskalyani9
4 Replies

8. UNIX for Beginners Questions & Answers

Email Alert in UNIX

Hi There I have to wrote a script where I am able to echo a result of an SQL script, however I want to be able to send an email to myself when it is more than 0 (so whenever a value is returned) is this possible? I tried one way from looking on the web but this didn't work, I have added my... (8 Replies)
Discussion started by: simpsa27
8 Replies

9. UNIX for Advanced & Expert Users

Alert meaning

Hi All, I saw this unix alert and am hoping some genius can tell me what is means? # | Location | Alert | Encoded Field | Data Field 2 BMC 2 0x2059757602020030 FFFF027000120300 Keyword/Timestamp Type-02 127002... (2 Replies)
Discussion started by: Fgerber
2 Replies

10. Cybersecurity

**ALERT**ALERT* Whats app requesting users to upgrade to latest version as; its vulnerability found.

Hello All, Want to share here an article for Whats app users that team whats app is requesting users to upgrade to its latest version since they have found a vulnerability; where Hacker could turn on a cell's camera, mic and scan messages and emails. Here is an article from "THE VERGE" for... (1 Reply)
Discussion started by: RavinderSingh13
1 Replies
SULOGIN(8)						       System Administration							SULOGIN(8)

NAME
sulogin - Single-user login SYNOPSIS
sulogin [options] [tty] DESCRIPTION
sulogin is invoked by init when the system goes into single user mode. The user is prompted: Give root password for system maintenance (or type Control-D for normal startup): sulogin will be connected to the current terminal, or to the optional tty device that can be specified on the command line (typically /dev/console). After the user exits the single-user shell or presses control-D at the prompt, the system will continue to boot. OPTIONS
-e, --force If the default method of obtaining the root password via getpwnam(3) from the system fails, manually examine /etc/passwd and /etc/shadow to get the password. If they are damaged or nonexistent, sulogin will start a root shell without asking for a password. Only use the -e option if you are sure the console is physically protected against unauthorized access. -p, --login-shell Specifying this option causes sulogin to start the shell process as a login shell. -t, --timeout seconds Specify the maximum amount of time to wait for user input. By default, sulogin will wait forever. -h, --help Print a help message. -V, --version Output version. ENVIRONMENT VARIABLES
sulogin looks for the environment variable SUSHELL or sushell to determine what shell to start. If the environment variable is not set, it will try to execute root's shell from /etc/passwd. If that fails it will fall back to /bin/sh. AUTHOR
sulogin was written by Miquel van Smoorenburg for sysvinit and later ported to util-linux by Dave Reisner and Karel Zak. AVAILABILITY
The sulogin command is part of the util-linux package and is available from Linux Kernel Archive <ftp://ftp.kernel.org/pub/linux/utils /util-linux/>. util-linux Jul 2012 SULOGIN(8)
All times are GMT -4. The time now is 09:39 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy