Single user mode

Login or Register for Dates, Times and to Reply

Thread Tools Search this Thread
Operating Systems Solaris Single user mode
# 1  
Sun Single user mode

Hi all
I am new on sun OS. I have have little experience on linux.
The Story start from this point:
I want to put some script on start-up the terminal, but I cant do that. my shell was sh and I tried so much to find way to do that. at last someone said to me change your shell to bash. I ask how I can change and he said go to passwd file and change sh to bash. I do that and after that I can't log in. it give me the error unknown user shell...
I go to the single user mode from the fail-safe, but I can't find passwd file. the file that I found is different. and I don't know what can I do?
I use x86 sun Solaris 10.
thanks for reading and your help
# 2  
The passwd file you are seeing is the one on the DVD that you booted from.

Boot into single user

boot cdrom -s

then mount your harddisk root filesystem under /a using the normal device string of your harddisk root filesystem (eg, /dev/dsk/sda0 or whatever it is)

mount /dev/dsk/sda0 /a

Now your harddisk root filesystem is accessible by

cd /a

Under /a you will have the whole filesystem.

When you're done, remember to shutdown in an orderly manner, eg.

init 0

Hope that helps.
This User Gave Thanks to hicksd8 For This Post:
# 3  
Assuming you are on Solaris 10 - do not change the root shell from sh to bash in /etc/passwd. Some scripts will fail if you do so.
These 2 Users Gave Thanks to fpmurphy For This Post:
# 4  
Yes, good thinking. Don't mess with the root shell.

Change the shell for non-root users only.

Thanks fpmurphy
This User Gave Thanks to hicksd8 For This Post:
# 5  
Thanks for your reply.
Yes it worked.
But I was in single user mode.
I didn't use the code:
boot cdrom -s

when I boot in fail-safe it search for installation of OS and mount it.
but the problem is that when I explore the directories I didn't see the directory that my hard disk mounted.
This time I only log in to single user mode and without caring to other thing execute this command:
cd /a

After that I was on my hard disk!
Thank you very much for your helps. Now I should trying to put my script on start-up the terminal.
Login or Register for Dates, Times and to Reply

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #968
Difficulty: Medium
In 2011. began offering Linux kernel release information in JSON format.
True or False?

10 More Discussions You Might Find Interesting

1. Solaris

Single user mode

Dear All I am trying to install my os as : ok>boot cdrom - install but receiving the following : "IDprom checksum error getexecname() failed /sbin/rcS /etc/vfstab cannot create INIT:failed write utmpx enrty INIT:single user mode INIT:execle of /etc/sulogin failed Enter run level" Can you... (6 Replies)
Discussion started by: hadimotamedi
6 Replies

2. UNIX for Dummies Questions & Answers

single user mode - user accounts passwords

hello ppl, someone must be able to help with this --> I have an old NCR tower 32 with an ADDS terminal running a unix version 020102 (Im not sure if thats correct but its unix for sure). I have no user names and no passwords and need to login to read a tape. Is there any way to do that? I hear... (3 Replies)
Discussion started by: orestis
3 Replies

3. UNIX for Dummies Questions & Answers

how to Single user mode?

How to enter single user mode when UNIX/LINUX system is starting? (1 Reply)
Discussion started by: gkreddy
1 Replies

4. UNIX for Advanced & Expert Users

single user mode

How to diable the single user mode.. what i want is dat my users are unable to boot in single user mode via GRUB.. (1 Reply)
Discussion started by: ankit.jss
1 Replies

5. UNIX for Advanced & Expert Users

single user mode

Is there another way of switching to single user mode except by typing /usr/sbin/shutdown 0 ??? :rolleyes: (5 Replies)
Discussion started by: kekanap
5 Replies

6. Solaris

adding a user in single user mode

Just got a solaris 8 blade 150 box with no users, only a root account. no one seems to know the password. I'd like to add one user. So I booted into single user mode via cdrom and added one. Can't seem to login using the new account, though. Here's what I'm using: # useradd -d /tmp/"user" -m... (1 Reply)
Discussion started by: ECBROWN
1 Replies

7. UNIX for Dummies Questions & Answers

Switching to single-user mode

Hello everyone, I need to make a OS full backup. I am using the vdump command but first, I must to switch to the single-user mode. I am working on a Compaq Tru64 Unix V4.0G. Please, could somebody tell me which is/are the commands to do it? I appreciate your help Gastón (1 Reply)
Discussion started by: gmoyano
1 Replies

8. UNIX for Dummies Questions & Answers

single-user mode

how do you boot into single user mode? RedHat 7.1 Caldera 2.4 (2 Replies)
Discussion started by: zorro81
2 Replies

9. UNIX for Dummies Questions & Answers

Single user mode

Hi all, Well back at work and back to crashing systems again :-) Does anyone know where I can find some decent information on single user mode? I need to be able to fix a few things. Don't know if it's possible in single user mode but I need to fix the "etc/vfstab" mainly I re-wrote it to... (2 Replies)
Discussion started by: merlin
2 Replies

10. UNIX for Dummies Questions & Answers

single user mode

Hi all, why "vi" acts differently is single user mode? Does anyone help ? I am using "x" to delete and it keeps messing up. Please help Thanks (2 Replies)
Discussion started by: guest100
2 Replies

Featured Tech Videos