Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to start in single user

Status
Not open for further replies.

North323

Technical User
Jan 13, 2009
966
US
I am having an issue with my sun box. i console in and try to vi files for basic configuration and they are all 'read only' even when i use :wq! i can not change any files. was suggested to me that i boot in single user with boot -s command but boot is not a valid command. any ideas?
 
boot" is a prom command, and you would use it at run level 0, but don't do this until you have checked and changed the permissions on the file you want to edit. See the man pages for ls and chmod. Use "ls -l file" to see the permissions, and "chmod 644 file" or something similar to change the permissions.
I am assuming you are logged in as root.
hth Mike
 
i am logged in as root via serial console and it will not let me change the owner or permissions of the files. i am getting 'console login services cannot run'
 
I think you might already be in single, but with root mounted read only. Try "who -r" to see what runlevel you are running.
 
elgraderro might be rght about being already in single-user.


in either case, sometimes certain configurations files are only read-only when in single-user in order to eliminate the chance of corruption. In order to get around this you can either boot single-user from a jumpstart server or solaris dvd.

let's say you have an issue with your vfstab, and that is the reason you are not reaching run-level 3.

once you run

boot cdrom -s or boot net -s

(boot net -s is if you have a jumpstart server)

(to get to the ok prompt, use: init 0 as mentioned by mikejordan, you can run boot (OBP) commands from the ok prompt.)



you will get a root prompt

you will next want to mount your root disk on /a

mount /dev/dsk/c0t0d0s0 /a

cd /a and then administer any files as needed.

to modify the vfstab, it would be: vi /a/etc/vfstab


im just using using the vfstab as an example file.

 
hi,

please send me the output of the below commands:

1- who -r
2- svcs -x
3- id

/houssien







 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top