06-02-2007
Quote:
Originally Posted by wenay
but this command is available in Linux only. I am working on unix so need solution for unix.
Good - well done for spotting that Linux isn't actually UNIX
Bad - actually useradd is available for some UNIXs, eg Solaris
Ugly - not giving us a clue what flavour of UNIX you need a solution for
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi all,
I am using Sun Solaris 9 .In this system normal users unable to create files from the command line.I added these users in bin,adm and even root group i found them unable to create a file. (1 Reply)
Discussion started by: mallesh
1 Replies
2. Programming
Hi ,
I want to create a new user using c program not with unix adduser command .
is it possible to write a cprogram to create a new user account , it should accept username , grouid , group name and all other privilages .
i can use system calls inside c program to do this .
i will... (5 Replies)
Discussion started by: naren_chella
5 Replies
3. UNIX for Dummies Questions & Answers
I created a user, i login as a root. I add him in the group where he can access and login as a root! I checked it in users' list and in group's list, he is there. My problem is this, I cant login using the username/account I just created! What should i do to use and login the user/account i've just... (5 Replies)
Discussion started by: jerome
5 Replies
4. UNIX for Dummies Questions & Answers
Hi all,
I wish to create some users, I can do that using the following command.
useradd
I wonder If i could create Uers as a clone of Root. I mean different users but having the same provileages as Root user. Can be ablle to access the Root Dir and so on ..
Please help me out Is this... (6 Replies)
Discussion started by: Asteroid
6 Replies
5. UNIX for Dummies Questions & Answers
hi
how to create new user in unix
plz explain me (3 Replies)
Discussion started by: arulkumar
3 Replies
6. Ubuntu
Hi,
Anyone can help me on how to duplicate privileges and group for useroradb01 to userrootdb01. I have currently using "useroradb01" and create a newly user "userrootdb01".
I want both in the sames privileges and group. Please see the existing users list below;
drwxr-xr-x 53 useroradb01... (0 Replies)
Discussion started by: fspalero
0 Replies
7. Homework & Coursework Questions
first off let me introduce myself. My name is Eric and I am new to linux, I am taking an advanced linux administration class and we are tasked with creating a script to add new users that anyone can run, has to check for the existence of a directory. if the directory does not exist then it has... (12 Replies)
Discussion started by: pbhound
12 Replies
8. Shell Programming and Scripting
Hi, I'm new to the world of UNIX and have been asked to create a complex script (at least complex to me:confused:) for AIX UNIX to create a report of all the users on the server including server, user, UID, groups, GID, etc.
Found a script using lsuser, but the output is still lacking. 2 things I... (2 Replies)
Discussion started by: panthur
2 Replies
9. HP-UX
As i know, Unix or Linux only manages 2 type of user: root user or normal user.
All users with userID=0 will have all administration permissions like root user with the system.
In my case, i want to create a new user in HP-UNIX environment with all root permissions only one exception that this... (5 Replies)
Discussion started by: hieucn1404
5 Replies
10. Shell Programming and Scripting
What I'm trying to do is write a script in Perl to find a user and if that user exist it would print "User Exist, Pls Try Again". If The user doesn't exist I'm able to create a user with a password.
Any suggestions? (3 Replies)
Discussion started by: GoBoyGo
3 Replies
LEARN ABOUT DEBIAN
luseradd
luseradd(8) System Manager's Manual luseradd(8)
NAME
luseradd - Add an user
SYNOPSIS
luseradd [OPTION]... user
DESCRIPTION
Adds an user with name user.
OPTIONS
-c, --gecos=gecos
Set the GECOS field to gecos. The GECOS field is traditionally used to store user's real name and other information.
-d, --directory=directory
Set user's home directory to directory. If this option is not present, a default specified by libuser configuration is used.
-g, --gid=group
Set user's primary group to group. group can either be a group ID of an existing group, or a group name; if group is a group name
and the group does not exist, it is created. If the --gid option is not specified, the default group name is user.
-i, --interactive
Ask all questions when connecting to the user database, even if default answers are set up in libuser configuration.
-k, --skeleton=directory
Populate the newly created user's home directory with a copy of directory. If this option is not present, a default directory spec-
ified by libuser configuration, or /etc/skel if libuser configuration does not specify a default, is used.
-M, --nocreatehome
Don't create a home directory and a mail spool for the newly created user.
-n, --nocreategroup
If a group is not specified using -g, use group name "users" instead of user. Note that despite the name of the option, the group
will still be created if it does not exist.
-P, --plainpassword=password
Set user's password to password. Note that the password can be viewed while running luseradd using tools such as ps(1).
-p, --password=encrypted
Set user's password to the password represented by the hash encrypted. Note that the hash can be viewed while running luseradd
using tools such as ps(1).
-r, --reserved
The user is a system user. Users that are not marked as system user usually have automatically selected user IDs above a certain
value (500 by default). This information is also passed to the libuser backends. This option implies the -M option.
-s, --shell=shell
Set user's login shell to shell. If this option is not present, a default specified by libuser configuration is used.
-u, --uid=uid
Use user ID uid for the newly created user. An user ID is selected automatically if this option is not present.
EXIT STATUS
The exit status is 0 on success, nonzero on error.
libuser Jan 12 2005 luseradd(8)