the "sudo" command it alows the execution of a single command as root:
EXECUTE 'SH -c "sudo chuser account_locked=true ':@logname:'"' -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Steve Ferries Sent: Monday, July 10, 2006 11:40 AM To: [email protected] Subject: [U2] UV calling chuser from application HI All, We want to lock out a user's UNIX login id, after three failed attempts into our application. We are using the following command from the application that monitors the fail/success of the login attempt at the application level. EXECUTE 'SH -c "chuser account_locked=true ':@logname:'"' This command works great, but then every user needs to be a member of group 'security', or give everyone access to execute the command, both of which are a no-no. Is there a way to give the application access rights to group security? Is there another way of doing this? Thanks in advance! Steve Ferries Chief Cook, Bottle Washer Total Credit Recovery Limited ------- u2-users mailing list [email protected] To unsubscribe please visit http://listserver.u2ug.org/ -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.9.10/384 - Release Date: 7/10/2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.9.10/384 - Release Date: 7/10/2006 ------- u2-users mailing list [email protected] To unsubscribe please visit http://listserver.u2ug.org/
