creation of users


 
Thread Tools Search this Thread
Operating Systems Solaris creation of users
# 1  
Old 12-18-2007
creation of users

Hello, I'm preparing a script for creating users automatically.
I,m using this command

useradd -c "Name foo" -d /export/home/my -f 10 -g other -u 10001 -s /bin/bash my

the problem i have is when i create the user by command line, this acount is locked. What do i have to change in the command line ??

what else, what i want, but i do not how,is that each month the password account must be changed


thanks
# 2  
Old 12-18-2007
The default behaviour is to disable the account unless you include the password (using -p option) when setting up the account.
# 3  
Old 12-20-2007
passwd -d -w 7 -x 30 user_name

-d = clear password(no password)
-w 7 = warning 7 days before password expired.
-x 30 = password expire in 30 days


try U do.
Ratcha.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Programming

Users to submit email for ftp creation

hi all, created a bash script to create an ftp account, its here - #!/bin/bash dir=/mnt/sftp group=sftp_users echo "Enter UserName:" read user if id $user ; then echo "$user already exists as you can see above, please re-run the script" exit ... (6 Replies)
Discussion started by: robertkwild
6 Replies

2. Shell Programming and Scripting

Symlink creation

I am trying to setup my plex server to use symlinks rather than host the movie files. in my storage directory, i have both movies(some in subdirectory of the name and some just in the parent directory) and tvshows, which have subdirectories for each season, which contains the episodes i would... (3 Replies)
Discussion started by: bandion
3 Replies

3. Shell Programming and Scripting

Create multiple users with individual passwords to users

hi, i am new to shell scripts i write a shell script to create multiple users but i need to give passwords to that users while creating users, command to write this script (1 Reply)
Discussion started by: DONFOX
1 Replies

4. Red Hat

Showing all users in 'users' and 'top' commands

Hi All, I work in a multi user environment where my school uses Red Hat Linux server. When I issue commands such as "top" or "users", I get to see what others are doing and what kinds of applications they are running (even ps -aux will give such information). "users" will let me know who else is... (1 Reply)
Discussion started by: shoaibjameel123
1 Replies

5. Solaris

To restrict the users not to change the passwords for NIS users

Hi All, How to restrict the NIS users not to change their passwords in for NIS users?? and my NIS user is unable to login to at client location what could be the problem for this ? Any body can help me. Thanks in advance. (1 Reply)
Discussion started by: Sharath Kumar
1 Replies

6. AIX

LPAR creation

can i get a step b syep explanation in creating LPAR... i have searched for tutorials i couldn't find the right one.... (2 Replies)
Discussion started by: udtyuvaraj
2 Replies

7. Red Hat

User creation

Hi Thanks in advance. How to create a user without useradd command ?? (1 Reply)
Discussion started by: krish4linux
1 Replies

8. HP-UX

Limiting SFTP Users While Not Limiting Regular Users?

Hi, I have searched the web and have come back with nothing that is satisfactory for what I require. SFTP is my corporations new file transfer standard. What I require is a method to lock down SFTP users to their directory (they may go to sub directories) while not restricting regular users. ... (2 Replies)
Discussion started by: Emancipator
2 Replies

9. UNIX for Advanced & Expert Users

file creation

Hi, Is there any way to restrict directories with one type of file creation. regards. (8 Replies)
Discussion started by: guguli
8 Replies

10. UNIX for Dummies Questions & Answers

alias creation

I am trying to set up an alias called "fire" that will allow me to pass an argument(s) along with the command. #fire program1 restart the fire alias should resolve to "/etc/rc.d/init.d/" and then stick the "program1" immediatly after the trailing slash so it appears as one command with one... (4 Replies)
Discussion started by: randyreese
4 Replies
Login or Register to Ask a Question