Sponsored Content
Full Discussion: Login problem
Operating Systems Solaris Login problem Post 52683 by pressy on Wednesday 23rd of June 2004 06:31:25 PM
Old 06-23-2004
..........

you forgot to create the home directory within the command....

# useradd -d /export/home/user -m user

otherwise you would have to create it, change the permissions and add it to /etc/passwd

g P
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

login problem

. HP-UX HPUX11I B.11.11 U 9000/778 (tb) telnetd: /usr/bin/login: No such file or directory Ok im currently logged into the machine and dont plan on logging out i found this out when i went to open another session on the box and was prompted with the above, i do not have a backup of the... (4 Replies)
Discussion started by: bbutler3295
4 Replies

2. Red Hat

login problem

Dear friends, I am using linux redhat nash version 4.2.1.6 os. now i rebooted my system suddenly the following error is coming. INIT: canot execute /etc/X11/prefdm. INIT: canot execute /etc/X11/prefdm. INIT: canot execute /etc/X11/prefdm. after that it is asking login : ... (0 Replies)
Discussion started by: rajan_ka1
0 Replies

3. SCO

Problem when login

When I login on consola as root I have problem. I typed on login: root password:rootpassword then promt login: problem is for other users In sigle user mode I can login as root. Please halp me (1 Reply)
Discussion started by: draganmi
1 Replies

4. AIX

problem with login

I have installed AIX 5.2 on an H70. It actually reports a memory fault as in SRN 25c68008. However when the system starts up it reports that there is 1536 Mbyte of memory and the O/S starts. I am connecting through the serial port of an old laptop onto the S1 port of the H70. The setting is... (10 Replies)
Discussion started by: johnf
10 Replies

5. Linux

USER login problem

Hi All I am facing a login issue actually on my local machine users are not suppose to login with there respective prompt on the machine. Access deneid login as: daya Sent username "daya" daya@10.10.0.3's password: Access denied daya@192.168.0.83's password: and even i am not suppose... (3 Replies)
Discussion started by: daya.pandit
3 Replies

6. AIX

user login problem & Files listing problem.

1) when user login to the server the session got colosed. How will resolve? 2) While firing the command ls -l we are not able to see the any files in the director. but over all view the file system using the command df -g it is showing 91% used. what will be the problem? Thanks in advance. (1 Reply)
Discussion started by: pernasivam
1 Replies

7. Linux

Login problem

Hi, If i changed my password then i can able to enter into linux box. After some time if i tried then i can able to enter into the same box. I have tried lot of times, But it is not resolved yet. Please advice for this . Error msg : fatal: Timeout before authentication for... (0 Replies)
Discussion started by: Mani_apr08
0 Replies

8. Ubuntu

login problem

Hi After I update my vga driver ubuntu stop to boot. When I restart my computer appear ubuntu first page and after he go to a black screen without any message. How I can restore of find problem? Thanks (6 Replies)
Discussion started by: nichol
6 Replies

9. Red Hat

Login problem

Hi Everybody, I am getting following error when am trying to login to my oracle user. su: warning: cannot change directory to /bin/bash: Not a directory -sh: /bin/bash/.profile: Not a directory -bash-3.1$ Please help me how to avoid this message and how to login with normal user login... (1 Reply)
Discussion started by: mastansaheb
1 Replies
useradd(8)						      System Manager's Manual							useradd(8)

NAME
useradd - create a new user account SYNOPSIS
useradd [-D binddn] [-P path] [-c comment] [-d homedir] [-e expire] [-f inactive] [-G group,...] [-g gid] [-m [-k skeldir]] [-o] [-p password] [-u uid] [-U umask] [-r] [-s shell] [--service service] [--help] [--usage] [-v] [--preferred-uid uid] account useradd --show-defaults useradd --save-defaults [-d homedir] [-e expire] [-f inactive] [-g gid] [-G group,...] [-k skeldir] [-U umask] [-s shell] DESCRIPTION
useradd creates a new user account using the default values from /etc/default/useradd and the specified on the command line. Depending on the command line options the new account will be added to the system files or LDAP database, the home directory will be created and the initial default files and directories will be copied. The account name must begin with an alphabetic character and the rest of the string should be from the POSIX portable character class ([A- Za-z_][A-Za-z0-9_-.]*[A-Za-z0-9_-.$]). OPTIONS
-c, --comment comment This option specifies the users finger information. -d, --home homedir This option specifies the users home directory. If not specified, the default from /etc/default/useradd is used. -e, --expire expire With this option the date when the account will be expired can be changed. expiredate has to be specified as number of days since January 1st, 1970. The date may also be expressed in the format YYYY-MM-DD. If not specified, the default from /etc/default/useradd is used. -f, --inactive inactive This option is used to set the number of days of inactivity after a password has expired before the account is locked. A user whose account is locked must contact the system administrator before being able to use the account again. A value of -1 disables this feature. If not specified, the default from /etc/default/useradd is used. -G, --groups group,... With this option a list of supplementary groups can be specified, which the user should become a member of. Each group is separated from the next one only by a comma, without whitespace. If not specified, the default from /etc/default/useradd is used. -g, --gid gid The group name or number of the user's main group. The group name or number must refer to an already existing group. If not speci- fied, the default from /etc/default/useradd is used. -k, --skel skeldir Specify an alternative skel directory. This option is only valid, if the home directory for the new user should be created, too. If not specified, the default from /etc/default/useradd or /etc/skel is used. -m, --create-home Create home directory for new user account. -o, --non-unique Allow duplicate (non-unique) User IDs. -p, --password password Encrypted password as returned by crypt(3) for the new account. The default is to disable the account. -U, --umask umask The permission mask is initialized to this value. It is used by useradd for creating new home directories. The default is taken from /etc/default/useradd. -u, --uid uid Force the new userid to be the given number. This value must be positive and unique. The default is to use the first free ID after the greatest used one. The range from which the user ID is chosen can be specified in /etc/login.defs. --preferred-uid uid Set the new userid to the specified value if possible. If that value is already in use the first free ID will be chosen as described above. -r, --system Create a system account. A system account is an user with an UID between SYSTEM_UID_MIN and SYSTEM_UID_MAX as defined in /etc/login.defs, if no UID is specified. The GROUPS entry in /etc/default/useradd is ignored, too. -s, --shell shell Specify user's login shell. The default for normal user accounts is taken from /etc/default/useradd, the default for system accounts is /bin/false. --service service Add the account to a special directory. The default is files, but ldap is also valid. -D, --binddn binddn Use the Distinguished Name binddn to bind to the LDAP directory. The user will be prompted for a password for simple authentica- tion. -P, --path path The passwd and shadow files are located below the specified directory path. useradd will use this files, not /etc/passwd and /etc/shadow. --help Print a list of valid options with a short description. --usage Print a short list of valid options. -v, --version Print the version number and exit. FILES
/etc/passwd - user account information /etc/shadow - shadow user account information /etc/group - group information /etc/default/useradd - default values for account creation /etc/skel - directory containing default files SEE ALSO
passwd(1), login.defs(5), passwd(5), shadow(5), userdel(8), usermod(8) AUTHOR
Thorsten Kukuk <kukuk@suse.de> pwdutils May 2010 useradd(8)
All times are GMT -4. The time now is 04:53 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy