Solved

Cannot access Solaris workstation

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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
FTP on FreeBSD server 2 127
Parsing a file using ksh 10 64
UNIX SCP 5 77
Encryption solutions to transport 150GB data fr AIX & Solaris to offsite vendor 11 79
My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

773 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