Solved

Cannot access Solaris workstation

Posted on 2000-03-21
4
242 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
  • 3
4 Comments
 
LVL 2

Accepted Solution

by:
jonke earned 200 total points
Comment Utility
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
Comment Utility
What can be done if I do not have the CD?
0
 
LVL 2

Expert Comment

by:jonke
Comment Utility
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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
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 get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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…

762 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now