Operating System - HP-UX
1821980 Members
3562 Online
109638 Solutions
New Discussion юеВ

useradd / usermod command problem

 
shijith_1
Occasional Contributor

useradd / usermod command problem


Hi all,
When I am trying to set /change account expire date of a user using useradd or usermod command
( usermod -e 11/11/05 test ), system prints a error message "Option e requires security package". Which security package want to use to work this "-e" option. The same problem exist in "useradd" command also
4 REPLIES 4
Devender Khatana
Honored Contributor

Re: useradd / usermod command problem


Hi,

You have to make the system trusted first.

man page for usermod says as,
Unless enhanced security is installed, the -e and -f options are not
supported and will return an error.

HTH,
Devender
Impossible itself mentions "I m possible"
Arunvijai_4
Honored Contributor

Re: useradd / usermod command problem

You need to have HP-UX Bastille installed on your server,you can download it from http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=B6849AA
( #man usermod says " Unless enhanced security is installed the -e and -f options are not
supported and will return an error." )

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
AwadheshPandey
Honored Contributor

Re: useradd / usermod command problem

SAM is the best way to do this, select account for user and groups/users/modify/passwd options

Awadhesh
It's kind of fun to do the impossible
Raj D.
Honored Contributor

Re: useradd / usermod command problem

Hi Shijith ,

I also SAM is the best option. Try it out with sam to set expiary date.

SAM --> Accounts for Users and Groups --> Users -->Modify --> Modify Password Options --> ├в Enable Password Aging .

Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "