Sponsored Content
Full Discussion: Expire Command | Need Help
Top Forums Shell Programming and Scripting Expire Command | Need Help Post 302403406 by soleil4716 on Friday 12th of March 2010 11:10:08 AM
Old 03-12-2010
Only a privileged user can run the 'passwd -x' command on Solaris. User 'iwadmin'
does not have the necessary privilege to run this command.

The 'usermod' command can be used to change user privileges. Please work with your
sysadmin to see if 'iwadmin' should be given the privilege to run the command.

Alternatively, you can modify the script to fail with a nice error message if a
non-root user tries to execute it.
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

password will expire

login: TEST7 TEST7's Password: Your password will expire: Wed Feb 19 14:28:08 2003 How can I the same information become in a script (as example in the .profile)????????? My login starts with .profile. These File is a menue with 24 lines and the message " Your password ....." disappear to... (8 Replies)
Discussion started by: Erwin Stocker
8 Replies

2. Shell Programming and Scripting

Telnet session does not expire

Dear friends.. Our project has a module that runs on handheld devices. Through the handheld we telnet to solaris where the application actually runs. I noticed that after starting a session through the handheld, if i go out of range or if i remove and replace the battery in the handheld, the... (1 Reply)
Discussion started by: deepsteptom
1 Replies

3. Shell Programming and Scripting

Password expire

Hi, Is there any way to find out the UNIX user's password expire date?. It'll we helpful to inform the users to change the password before it get expires.(FYI - I am not having only admin previlege.) (1 Reply)
Discussion started by: sharif
1 Replies

4. Solaris

Set Password Never Expire

Hello I want to set the password for user never expire through the command line. For your information the box is running under Solaris 8 platform. (2 Replies)
Discussion started by: shamsul
2 Replies

5. Red Hat

set password not to expire

Hi All, Is this true on chage command? -M, MAX_DAYS Passing the number -1 as MAX_DAYS will remove checking a password's validity. Does this means password will not expire anymore? Thanks for any comment you may add. (0 Replies)
Discussion started by: itik
0 Replies

6. UNIX for Advanced & Expert Users

SFTP password expire error

Hi, I am using sftp in batch script for which all configuration for public/private keys are done and it works fine without asking a password. No issues till this point. Now I the problem I have is that if the password expires/someone changes the authentication keys at reote server then the... (4 Replies)
Discussion started by: coolwade
4 Replies

7. Solaris

user to be never expire ..

Hi All, I have Solaris 9 and there is user created in that server called appuser That user should to be never expire.. can anyone advice me how can I modify that user to be never expire thru the command line without using GUI tool. (1 Reply)
Discussion started by: Mr.AIX
1 Replies

8. AIX

Password Expire Message

Does anyone know if the default message displayed when a users password has expired can be changed? I am just assuming the message below is the default one. If so please tell. Using username "justinxx". justinxx@160.23.12.44's password: WARNING: Your password has expired. You must... (2 Replies)
Discussion started by: juredd1
2 Replies

9. Shell Programming and Scripting

Expire license

I have a program that outputs a file on the number days left before software license expired. It reads in a text file name expiredt.txt. expiredt.txt contents are as follows: EM software 30NOV2015 11/30/2015 ABM software 30NOV2015 11/30/2015 ABM software ... (2 Replies)
Discussion started by: dellanicholson
2 Replies

10. Solaris

Never Expire & Never Lock

Hi There, Actually I'm looking for command in Solaris 11 for the following Command to do User Never Expire. Command to return the user Expire to normal mode. Command to do User Never Lock. Command to return the user Never Lock to normal mode. Please advice .. (1 Reply)
Discussion started by: roooooooooot
1 Replies
CALLBACK(9)						   BSD Kernel Developer's Manual					       CALLBACK(9)

NAME
callback -- generic callback interface SYNOPSIS
#include <sys/callback.h> void callback_head_init(struct callback_head *ch, int ipl); void callback_head_destroy(struct callback_head *ch); void callback_register(struct callback_head *ch, struct callback_entry *ce, void *obj, int (*fn)(struct callback_entry *, void *, void *)); void callback_unregister(struct callback_head *ch, struct callback_entry *ce); int callback_run_roundrobin(struct callback_head *ch, void *arg); DESCRIPTION
The generic callback interface allows lower-level layer code to execute a registered function, or set of functions, from the higher-level layer. Registered functions must return one of these constants: CALLBACK_CHAIN_CONTINUE Indicates that the function call was successful. The following functions in the chain will be called. CALLBACK_CHAIN_ABORT Indicates a failure case in the function call. Any following functions in the chain will not be executed. FUNCTIONS
The callback structure callback_head should be initialized and destroyed using the functions described below. This structure contains the list of callback entries and other internal data. The callback_entry structure is an entry, normally associated with the higher-level object. It contains the internal data of the callback interface. callback_head_init(ch, ipl) Initialize the callback structure specified by ch. The highest IPL at which this callback can be used is specified by ipl. callback_head_destroy(ch) Destroy the callback structure specified by ch. The caller must unregister all functions before destroying the callback structure. callback_register(ch, ce, obj, fn) Register the callback function in the callback structure specified by ch. ce should point to the entry structure of the callback object. The callback object itself is specified by obj. The function pointer is specified by fn. callback_unregister(ch, ce) Unregister the callback function from the structure specified by ch. The entry should be passed as ce. This function may block. callback_run_roundrobin(ch, arg) Executes all functions registered in the callback structure, specified by ch. The functions are executed in round-robin fashion. The value of arg will be passed to the callback functions. CODE REFERENCES
The callback interface is implemented within the file sys/kern/subr_callback.c. SEE ALSO
intro(9) BSD
October 28, 2009 BSD
All times are GMT -4. The time now is 08:02 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy