Cannot access Solaris workstation

I inadvertently modified permissions on ALL files with "chmod -R o+w *" and now I cannot login to my Solaris machine. Two messages are reported: "/etc/pam.conf writable by world" and "/var/adm/utmp not owned by root or not mode 644" and the login fails.
How can I get to these files to correct my mistake if I cannot even log on?
rsorrentAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
jonkeConnect With a Mentor Commented:
If you cannot login as root, then you'll need to boot from cdrom, mount the disk up, and change the file permissions back to what they were. First

#i init 0

--allow machine to go down, and insert solaris cdrom.

ok boot cdrom -s

--allow machine to come to single use mode

# mount /dev/dsk/c0t0d0s2 /a

-This is assuming that c0t0d0s2 has the your root and var partitions. You may need to use format to start with to check this.

#chmod 644 /a/etc/pam.conf
#chmod 644 /a/var/adm/utmp

-hopefully now, we should be able to boot the machine and log in as normal.

#init 0
ok boot
0
 
rsorrentAuthor Commented:
What can be done if I do not have the CD?
0
 
jonkeCommented:
And you cannot login as any user at all?

Then you're gonna have problems.

You'll need to go and find a cd. I cannot think of any other way- can anyone else??

I gotta go home now. Still- I'll be back in 9 hours.
0
 
jonkeCommented:
OH--- V. IMPORTANT- you'll need to:

# umount /a

after chmoding those files but before rebooting. Otherwise we'll be reloading your bootblock too.
0
All Courses

From novice to tech pro — start learning today.