The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Simple Question aforball UNIX for Dummies Questions & Answers 3 03-04-2008 04:26 PM
sed - simple question scotty_123 Shell Programming and Scripting 13 03-29-2007 03:23 AM
Simple C question... Hopefully it's simple Xeed High Level Programming 6 12-15-2006 02:29 PM
Ok simple question for simple knowledge... Corrail UNIX for Dummies Questions & Answers 1 11-28-2005 01:03 PM
Simple ksh question frustrated1 Shell Programming and Scripting 1 11-05-2003 12:41 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 11-11-2005
Corrail Corrail is offline
Registered User
  
 

Join Date: Oct 2005
Posts: 50
Hopefully simple question

When i type cd etc/shadow it says that file or directory doesnt exist? Is there a way to show this or am i typing something wrong?
  #2 (permalink)  
Old 11-11-2005
RTM's Avatar
RTM RTM is offline Forum Advisor  
Hog Hunter
  
 

Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
You should be typing

Code:
cd /etc

shadow should be a file not a directory

( if you type cd etc, you may also get an error if there is no etc directory under the current working directory. If you are in /, it should work)
  #3 (permalink)  
Old 11-11-2005
Corrail Corrail is offline
Registered User
  
 

Join Date: Oct 2005
Posts: 50
I tried that and then i did a ls -a and it didnt show shadow. I also tried to to just cat shadow and that didnt work either.
  #4 (permalink)  
Old 11-11-2005
RTM's Avatar
RTM RTM is offline Forum Advisor  
Hog Hunter
  
 

Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
What OS and version? Check the second field in /etc/passwd for x (which means it will using a shadow file).
  #5 (permalink)  
Old 11-11-2005
Corrail Corrail is offline
Registered User
  
 

Join Date: Oct 2005
Posts: 50
osx 10.3.9 i believe and the second field is a * for all of the users. How can i find the shadow field then?
  #6 (permalink)  
Old 11-11-2005
jim mcnamara jim mcnamara is online now Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,813
The * is where the password lives in the real file. It sounds like you are reading /etc/passwd, not /etc/shadow. There is no "shadow" field.

DO NOT MESS with password files, you can trash the whole system. I'd suggest that you make a really good backup, it sounds like your explorations are going to create the need for one.
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 08:13 AM.


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