The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
chown BG_JrAdmin UNIX for Dummies Questions & Answers 2 04-17-2009 09:22 AM
Chgrp and Chown ??? skyineyes UNIX for Dummies Questions & Answers 1 05-28-2008 07:45 AM
chown ariec AIX 2 08-14-2007 05:24 PM
chown and permissions ithost UNIX for Dummies Questions & Answers 1 07-03-2003 09:18 AM
chown and NIS Jody UNIX for Dummies Questions & Answers 2 07-01-2003 03:57 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-29-2006
cdunavent cdunavent is offline
Registered User
  
 

Join Date: Sep 2001
Location: D.C.
Posts: 54
/etc ownership was changed via chown

Hello all:

I have a couple of boxes located in New York, both running SunOS 5.6. I, unfortunately, am located in Pittsburgh and do not have console access to these boxes. A co-worker was attempting to build a user account in one of these boxes, and mistakenly did a: chown username *

What he did not realize was that he WAS NOT in the users home dir, but rather in /etc. He basically changed ownership of all files in /etc from root to username.

So, now I cannot log into the box remotely...I cannot rlogin from it's partner server, I cannot run rsh, resh, or rcmd from the partner server. Basically, I'm hosed.

Any ideas? I thought about doing a tape restore, but I cannot log in, obviously, to do that either.

Chris D.
  #2 (permalink)  
Old 03-29-2006
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,119
You can't fix it remotely. Look in our faq section for the lost root password article. There are instructions on booting from a cd and mounting root. But instead of editing /mnt/etc/passwd, you will be doing a bunch of chowns.
  #3 (permalink)  
Old 03-29-2006
cdunavent cdunavent is offline
Registered User
  
 

Join Date: Sep 2001
Location: D.C.
Posts: 54
Do I need Solaris 6 discs, or can I use 8 or 9??

-cd
  #4 (permalink)  
Old 03-30-2006
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,119
Since you're only mounting root and doing some chown's, I would think that a later version of Solaris would work. I tend to avoid risk and thus I would strongly prefer to use 5.6 CD's. If that is not possible, I would go with what I have.

Suppose the coworker made some other errors? In the worst case, you will need to rebuild the boot disk. With no 5.6 CD's you will be forced to do a fast upgrade. Your tolerance for risk must be much high than mine.
  #5 (permalink)  
Old 03-30-2006
RTM's Avatar
RTM RTM is offline Forum Advisor  
Hog Hunter
  
 

Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
You didn't mention what type of servers - check that they will boot a Solaris 8 or 9 cd...
  #6 (permalink)  
Old 03-30-2006
cdunavent cdunavent is offline
Registered User
  
 

Join Date: Sep 2001
Location: D.C.
Posts: 54
I did locate 5.6 discs, and we have a guy flying up to the site tonight. Our plan of attack is to follow these instructions:

http://slacksite.com/technotes/fileperm.html


Anyone see anything wrong with using this procedure??



-cd
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 12:18 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0