User Name
Password

Go Back   Planetarion Forums > Non Planetarion Discussions > Programming and Discussion
Register FAQ Members List Calendar Arcade Today's Posts

Reply
Thread Tools Display Modes
Unread 23 Apr 2003, 08:00   #1
wu_trax
Registered User
 
Join Date: Jan 2003
Posts: 4,290
wu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet society
i need a list of possible errors that occure if you change your linux password

when you start passwd and try to change your password.
things like too short, too simple, and so on.
any ideas?
__________________
im not tolerant, i just dont care.
wu_trax is offline   Reply With Quote
Unread 23 Apr 2003, 16:11   #2
MT
/dev/zero
Retired Mod
 
MT's Avatar
 
Join Date: May 2000
Posts: 415
MT is an unknown quantity at this point
cd /etc/pam.d
cat passwd

(i think)

also you could read your man pages for passwd/pam
__________________
#linux : Home of Genius

<idimmu> ok i was chained to a desk with this oriental dude
MT is offline   Reply With Quote
Unread 23 Apr 2003, 16:32   #3
zenopus
Xenoc
 
Join Date: Feb 2001
Location: Great Britain
Posts: 297
zenopus is an unknown quantity at this point
Or, for a guaranteed exhaustive list
Code:
  $ su -
  Password:
  $ which passwd
  /usr/bin/passwd
  $ strings /usr/bin/passwd | more
Then you just have to ignore all the stuff that does not look like error messages.
zenopus is offline   Reply With Quote
Unread 26 Apr 2003, 23:27   #4
MT
/dev/zero
Retired Mod
 
MT's Avatar
 
Join Date: May 2000
Posts: 415
MT is an unknown quantity at this point
On systems with PAM, the error messages are sprintf'ed from whatever the pam module that rejected the new password, so looking at the string values in passwd would probably get you something along the lines of "%s: %s"
__________________
#linux : Home of Genius

<idimmu> ok i was chained to a desk with this oriental dude
MT is offline   Reply With Quote
Unread 27 Apr 2003, 01:26   #5
wu_trax
Registered User
 
Join Date: Jan 2003
Posts: 4,290
wu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet society
oh, sorry, i completly forgt this thread during all the forum-downtime.
i think i catched most errors that might occure and translated the messages (if you think you know strange programming languages have a look at 'expect', i didnt get along at all :/)
__________________
im not tolerant, i just dont care.
wu_trax is offline   Reply With Quote
Reply



Forum Jump


All times are GMT +1. The time now is 09:23.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2002 - 2018