useradd problem


 
Thread Tools Search this Thread
Operating Systems Solaris useradd problem
# 8  
Old 10-15-2011
this may be done from /etc/shadow
root:.eGLAkNXjAuc.:6445:x :x :x :x :x :x replace each x with appropriate value to do this see man /etc/shadow for available x values
# 9  
Old 10-15-2011
As already stated, this can't be done with /etc/shadow as the smallest expiration period is one day and 30 minutes is smaller than that.
# 10  
Old 10-16-2011
Not recommended, but if you require this functionality you could try to have cron execute a script every 30 minutes to issue a 'passwd -f ${username}' for a list of users. This will prompt the user to change his/her password at next login.
You could also integrate 'last' (/var/adm/wtmpx) output to acquire login timestamps for user(s) so as to reset user(s) account after 30 minutes usage.

SRG

Last edited by Paragon1970; 10-16-2011 at 01:58 AM..
# 11  
Old 10-17-2011
Quote:
Originally Posted by Paragon1970
Not recommended, but if you require this functionality you could try to have cron execute a script every 30 minutes to issue a 'passwd -f ${username}' for a list of users. This will prompt the user to change his/her password at next login.
You could also integrate 'last' (/var/adm/wtmpx) output to acquire login timestamps for user(s) so as to reset user(s) account after 30 minutes usage.

SRG
yes..that is the way i know...but i wanted to know if there us any file in which we can edit and make it possible
# 12  
Old 10-17-2011
you could always set a job in crontab to run the passwd -f command on certain users every 30 minutes.
# 13  
Old 10-17-2011
There is no OS setting to do it. You would have to do the "band aid" approach of using passwd -f and cron. The draw back with that method is you would have to remember to add each new user you add to the system to that cron job.
# 14  
Old 10-17-2011
If this is only for testing purposes, you could put the clock into the future to force passwords to expire.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

useradd

I want to creat a 27 logins in solaris.Can anyone tell me how to write a script for that so that i create at a time for all 27 people. Thanks to guide me. (6 Replies)
Discussion started by: kkalyan
6 Replies

2. Solaris

useradd problem number 2

i added a default user by command useradd shekhar it took user's default directory as /home/shekhar now when i am going inside /home and giving this command cd /home ls-ld it is not showing any directory named shekhar? why so? thanx shekhar (3 Replies)
Discussion started by: shekhar_4_u
3 Replies

3. UNIX for Advanced & Expert Users

Problem with useradd, -p option in Solaris 10

Good day all. I'm trying to add a user with useradd and the -p option to assign a project name, but the result is that the user is created with an error message: "UX: useradd: user.root name should be all lower case or numeric." The command: useradd -d /export/home/tester -g rtpgrp -G... (2 Replies)
Discussion started by: BRH
2 Replies

4. Solaris

useradd

if useradd command is deleted in solaris how do we add user (3 Replies)
Discussion started by: vivek_ng
3 Replies

5. Solaris

useradd problem

O/S: Solaris 9 Architecture: SPARC The man page for useradd states, "The new login remains locked until the passwd(1) command is executed." This is a problem for me when accessing remotely via SSH and creating a new account from the console with useradd. As soon as I try to login into the... (3 Replies)
Discussion started by: tuxsun1
3 Replies

6. UNIX for Advanced & Expert Users

useradd?

Hi Experts, when using useradd command, what are the necessary options/arguments to be included? Please advice. (4 Replies)
Discussion started by: etcpasswd
4 Replies

7. Shell Programming and Scripting

useradd

Gurus, I need to add a user to all the machines. I need a script to do this. I did one but it does not allow me to su to root within a ssh session i open. It exists saying su: Sorry. Please let me know how i can do it. I do not have the freedom of using sudo either. Regards (4 Replies)
Discussion started by: earlysame55
4 Replies

8. Solaris

useradd

Hi, I need to add a new user who will only be able to access one single folder on my Solaris 9 system. Can this be achieved by using just useradd or do i need to fiddle with auth_attr table? TIA, Selma (4 Replies)
Discussion started by: Selma
4 Replies

9. UNIX for Advanced & Expert Users

useradd

Hi. due to some needs i gave a user the premission to use useradd command with sudo. i want to know if there is a way to let him set the initial password, without giving him the premission to use passwd command as root (sudo). maybe a way to set a default password for all the new users that... (2 Replies)
Discussion started by: dorilevy
2 Replies

10. UNIX for Dummies Questions & Answers

useradd

I work on some hp ux 11.00 Servers. i have to add an user. i use the useradd command like follows: useradd -u 72022 -g 71095 -c " comment " -d /PACKAGE_NAME/home/username -s /usr/bin/sh username The command returns with error 3. The manpage means value number 3: Invalid argument supplied to an... (6 Replies)
Discussion started by: ortsvorsteher
6 Replies
Login or Register to Ask a Question