Server Locked


 
Thread Tools Search this Thread
Operating Systems Solaris Server Locked
# 1  
Old 10-03-2009
Server Locked

Hi

i was changing the entry in the /etc/passwd file for the root user.

i was changing the shell from sh to bash . I changed the file and rebooted
the server.Now it is saying that invalid shell. I think i have misspelt bash.
now the machine is set to boot in maultiuser mode so there is no OK prompt on reboot.Is there any way i can get into the Server and change the entry

Thanks
# 2  
Old 10-03-2009
you can boot from a cd/dvd or from network and mount the local disk to change the file. note that the path is differnt to the shells!

Code:
# /sbin/sh
# /usr/bin/bash

# 3  
Old 10-03-2009
Quote:
Originally Posted by asalman.qazi
Hi

i was changing the entry in the /etc/passwd file for the root user.

i was changing the shell from sh to bash . I changed the file and rebooted
the server.Now it is saying that invalid shell. I think i have misspelt bash.
now the machine is set to boot in maultiuser mode so there is no OK prompt on reboot.Is there any way i can get into the Server and change the entry

Thanks
for the next time

su root
and then
passwd -e root
# 4  
Old 10-04-2009
Quote:
Originally Posted by solaris_user
for the next time

su root
and then
passwd -e root
and I strongly recomend you NEVER change to root users shell.
if the server has issues often root is the only fix, if the root user has an invalid shell then you are out of luck.

often bash is a dynamically linked program, if you can mount all your file systems then the libaray's may be missing...
how do you get in as root to fsck??

/sbin/sh as it is statically linked. most other shells are dynamic.
# 5  
Old 10-04-2009
Quote:
Originally Posted by robsonde
/sbin/sh as it is statically linked. most other shells are dynamic.
Incorrect for Solaris 10 or later. There are no static executables in Solaris 10.
# 6  
Old 10-04-2009
Quote:
Originally Posted by reborg
Incorrect for Solaris 10 or later. There are no static executables in Solaris 10.
cool, we all get to learn something today....
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

Locked out of server due to utmp growing out of control

:(Dear Solaris Experts, The file /var/adm/utmpx is steadily growing on our standbye Sun Sparc T5220 Solaris 10 server. I have tried everything such as the following steps without success: root@rainbow # uname -a SunOS rainbow 5.10 Generic_141444-09 sun4v sparc... (2 Replies)
Discussion started by: gjackson123
2 Replies

2. UNIX for Advanced & Expert Users

Passwd getting locked

Hi, there is a password lock problem happening everyday at one of the servers(GNU RH-Linux;kernel release version 2.6.18-308.20.1.el5) for a particular user id which is an appln user id. Everyday it needs to be reset by the owner/unix user mgmt team. My suspicion was if any cronjob was running... (3 Replies)
Discussion started by: sam_bd
3 Replies

3. UNIX for Advanced & Expert Users

Who locked my id?

I am running Solaris 10. Occasionally, my id gets loked. I want to know who/which rougue process locked it. How do I find out? Thanks, KNK (9 Replies)
Discussion started by: nkamatam
9 Replies

4. Cybersecurity

Locked out of my own server by denyhosts

Sigh... I use denyhosts for security. Been great for months, but today my butterfingers have managed to lock myself out of the server. The denyhosts FAQ lists ways to edit the files to erase your IP, but...I'm locked out, so how can I edit the files? (5 Replies)
Discussion started by: dheian
5 Replies

5. AIX

account is always locked out

we have a user name "Test1" that account is alwyas locked out. The user has been used to many servers to ftp a file from the main server. i already increase the MaxStartups to 99. And still after how many days account will locked. (3 Replies)
Discussion started by: invinzin21
3 Replies

6. HP-UX

locked out!

:confused: I have an K580 HP server. All I did was change the IP address on the NIC and now I can't telnet into it. I can ping, but no telnet. Also, it won't boot if the console monitor is plugged in. ANY IDEAS??? (1 Reply)
Discussion started by: ncmurf00
1 Replies

7. UNIX for Dummies Questions & Answers

Users locked out of Server

hiya all, I have Fedora core 3 installed - as a server - onto an old PC. Root u/n and psw lets me in However, all the other accounts no longer worked. They use to work until yesterday... I now get the error at the login screen: "AUTHENTICATIONFAILED" I hope this is a common... (12 Replies)
Discussion started by: marty 600
12 Replies

8. UNIX for Dummies Questions & Answers

root locked out

Hello all. I think I have a big problem. the /etc/passwd file got overwritten and now I can't su as root when I telnet into this machine. I am running yp on a different machine and tried to push the passwd file out to all machines, but it didn't help. I noticed that there is a passwd file in... (12 Replies)
Discussion started by: Moca4444
12 Replies

9. UNIX for Dummies Questions & Answers

/home locked

Hi all, Does anyone knows why can't I change the /home dir in to writeable? here is what I get ? dr-xr-xr-x 1 root root 1 Jan 22 10:09 xfn dr-xr-xr-x 1 root root 1 Nov 28 16:11 home dr-xr-xr-x 1 root root 1 Nov 28 16:11 net dr-xr-xr-x 6... (3 Replies)
Discussion started by: guest100
3 Replies
Login or Register to Ask a Question