Solved

Cannot access Solaris workstation

Posted on 2000-03-21
4
247 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
AIX 6.1: need to grow single SAN disk rootvg, does this require a downtime? 11 61
Oracle Finace 3 100
Python Assistance 7 96
unix example issues 18 112
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
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…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses

739 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