Server Administration
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesServer Administration

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old April 7th, 2005, 01:09 PM
Ashkhan Ashkhan is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 372 Ashkhan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 24 m 57 sec
Reputation Power: 2
/etc/passwd

I would like to know all values which can appear in the second (password) field. I read the man(5) passwd but it doesn't list all the possibilities.

So far I have:

a hashed password
* - means you can login to an administrative account
x - passwords are stored in the /etc/shadow
nothing - no password required

Any other possibilities?

Is there a difference between Unix/Linux and Solaris?

Thanks in advance.

Reply With Quote
  #2  
Old April 7th, 2005, 01:55 PM
Matt Matt is offline
Contributing User
Codewalkers Specialist (4000 - 4499 posts)
 
Join Date: Apr 2007
Location: Florida
Posts: 4,158 Matt User rank is Private First Class (20 - 50 Reputation Level)Matt User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 h 10 m 20 sec
Reputation Power: 6
RE: /etc/passwd

Don't know if you count FreeBSD in there, but if a password is shadowed into the master.passwd file it shows an * in the /etc/passwd.

Reply With Quote
  #3  
Old April 7th, 2005, 03:56 PM
Ashkhan Ashkhan is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 372 Ashkhan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 24 m 57 sec
Reputation Power: 2
RE: /etc/passwd

Interesting. I'm sure there are more of them but I can't find any informations.

Reply With Quote
  #4  
Old April 23rd, 2005, 01:23 AM
postalcow postalcow is offline
Codewalkers Beginner (1000 - 1499 posts)
 
Join Date: Apr 2007
Location: Ford CIty, PA USA
Posts: 1,267 postalcow User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
Send a message via Yahoo to postalcow
RE: /etc/passwd

First is the username

Second is the hashed passwd or a splat if using shadow passwds

Third User ID you can change these, just remember 0 is ROOT

Fourth is Group ID even though a person can belong to several groups the only one here should be the native group

Fifth is the information returned by finger

Sixth Users Home Dir

Seventh is shell type

I think thats all there is. Is this what you question was, or did I miss the point?

Reply With Quote
  #5  
Old April 23rd, 2005, 08:54 AM
Ashkhan Ashkhan is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 372 Ashkhan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 24 m 57 sec
Reputation Power: 2
RE: /etc/passwd

Thanks cow but you missed the point. I was asking what values can appear in the second column not what all the columns represent.

If you want to disable an account, can you do it in /etc/passwd? I heard you can use an exclamation mark in the second column for this purpose. I will have to try it.

Reply With Quote
  #6  
Old April 24th, 2005, 08:26 PM
postalcow postalcow is offline
Codewalkers Beginner (1000 - 1499 posts)
 
Join Date: Apr 2007
Location: Ford CIty, PA USA
Posts: 1,267 postalcow User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
Send a message via Yahoo to postalcow
RE: /etc/passwd

One way to disable a user is by a baseball bat. This usally results in jail time so I would just use 'userdel'

Reply With Quote
  #7  
Old April 25th, 2005, 08:32 AM
Ashkhan Ashkhan is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 372 Ashkhan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 24 m 57 sec
Reputation Power: 2
RE: RE: /etc/passwd


Quote:
One way to disable a user is by a baseball bat.


lol


I tried the exclamation mark and it works. The user isn't able to login.

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesServer Administration > /etc/passwd


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT