If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > change password via sql

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-17-03, 15:32
noober noober is offline
Registered User
 
Join Date: Oct 2003
Posts: 20
change password via sql

Hi all...anyone know if it is possible to use a stored procedure to change a OS level password? I am running informix 9.2 on AIX 4.3.
-thanks!
Reply With Quote
  #2 (permalink)  
Old 11-17-03, 16:05
fprose fprose is offline
Registered User
 
Join Date: Apr 2003
Location: Phoenix, AZ
Posts: 177
Yes, and no. From a stored procedure you can issue the system command and that would include passwd. The problem with the standard AIX passwd command is that it's interactive.

There are public routines (use at own risk) that have "C" programs which will change the password in one pass. Web search for chpass.c
__________________
Fred Prose
Reply With Quote
  #3 (permalink)  
Old 11-18-03, 11:11
noober noober is offline
Registered User
 
Join Date: Oct 2003
Posts: 20
?

Thanks for the response. Can you share the name of that stored procedure also? I understand it wont help here, but it does sound handy.

Quote:
Originally posted by fprose
Yes, and no. From a stored procedure you can issue the system command and that would include passwd. The problem with the standard AIX passwd command is that it's interactive.

There are public routines (use at own risk) that have "C" programs which will change the password in one pass. Web search for chpass.c
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On