×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

How to start in single user

How to start in single user

How to start in single user

(OP)
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?

RE: How to start in single user

"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

RE: How to start in single user

(OP)
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'

RE: How to start in single user

I think you might already be in single, but with root mounted read only.  Try "who -r" to see what runlevel you are running.

RE: How to start in single user

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.

 

RE: How to start in single user

hi,

please send me the output of the below commands:

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

/houssien







 

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close