Solved

Cannot access Solaris workstation

Posted on 2000-03-21
4
246 Views
Last Modified: 2013-12-27
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?
0
Comment
Question by:rsorrent
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 2

Accepted Solution

by:
jonke earned 200 total points
ID: 2642061
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
 

Author Comment

by:rsorrent
ID: 2642077
What can be done if I do not have the CD?
0
 
LVL 2

Expert Comment

by:jonke
ID: 2642126
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
 
LVL 2

Expert Comment

by:jonke
ID: 2643581
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

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question