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
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
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
2. UNIX for Advanced & Expert Users
Hi,
Is there any way to restrict directories with one type of file creation.
regards. (8 Replies)
Discussion started by: guguli
8 Replies
3. HP-UX
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
4. Red Hat
Hi
Thanks in advance.
How to create a user without useradd command ?? (1 Reply)
Discussion started by: krish4linux
1 Replies
5. AIX
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
6. Solaris
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
7. Red Hat
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
8. Shell Programming and Scripting
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
9. Shell Programming and Scripting
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
10. Programming
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
LEARN ABOUT DEBIAN
axspawn.conf
AXSPAWN.CONF(5) Linux Programmer's Manual AXSPAWN.CONF(5)
NAME
axspawn.conf - Control the operation of axspawn.
DESCRIPTION
The axspawn.conf file controls the operation of the axspawn(8) program. The operation of the config file can best be seen in an example:
# this is /etc/ax25/axspawn.conf
#
# allow automatic creation of user accounts
create yes
# allow empty password field (so user may login via telnet, too) [default no]
create_empty_password no
#create_empty_password yes
# create with system utility useradd(8)? [default no]
#create_with_useradd no
create_with_useradd yes
#
# pwcheck method: password or call or group. [default: password]
#pwcheck call
#pwcheck group
pwcheck password
#
# guest user if above is 'no' or everything else
# fails. Disable with "no"
guest guest
#
# group id or name for autoaccount
group hams
#
# first user id to use
first_uid 400
#
# maximum user id
max_uid 2000
#
# where to add the home directory for the new user
home /home/hams
#
# secure homedirectories (g-rwx)
#secure_home yes
#
# user's shell
shell /bin/bash
#
# bind user id to callsign for outgoing connects.
associate yes
The "associate" option has to be used with great care. If a user logs on it removes any existing callsign from the translation table for
this userid and replaces it with the callsign and SSID of the user. This will happen with multiple connects (same callsign, different
SSIDs), too. Unless you want your users to be able to call out from your machine disable "associate".
FILES
/etc/ax25/axspawn.conf
SEE ALSO
axspawn(8).
Linux 2 August 1996 AXSPAWN.CONF(5)