Sponsored Content
Top Forums UNIX for Dummies Questions & Answers New user account problem Ubuntu 12.04 Post 302883356 by Royalist on Monday 13th of January 2014 12:21:32 PM
Old 01-13-2014
New user account problem Ubuntu 12.04

Does anyone have an idea why it is not possible to logon to a newly created user account in Ubuntu 12.04. Is it perhaps a bug with this distro?
On another machine, but running 12.10 there is no such problem.
Accounts have been created with adduser and with GUI. It makes no difference!
The /home owners and the /home/username directories are all both set to the username, but other variations have been tried.
The permissions set are 0740.
Existing accounts which will not allow login and have been deleted with deluser and also with GUI, then new accounts created with different usernames.
Passwords have been successfully changed by sudo passwd. Nothing makes any difference.
This is my final hope before installing 12.10
Code:
Debug log @ 13-01-2014 : 15:42
roy@roy-desktop:~$ sudo adduser --debug ngxxxxx  
 Adding user `ngxxxxx' ...  
 Selecting UID from range 1000 to 29999 ...  
 Selecting GID from range 1000 to 29999 ...  
 Adding new group `ngxxxxx' (1002) ...  
 /usr/sbin/groupadd -g 1002 ngxxxxx  
 Adding new user `ngxxxxx' (1002) with group `ngxxxxx' ...  
 /usr/sbin/useradd -d /home/ngxxxxx -g ngxxxxx -s /bin/bash -u 1002 ngxxxxx  
 Creating home directory `/home/ngxxxxx' ...  
 Copying files from `/etc/skel' ...  
 Enter new UNIX password:  
 Retype new UNIX password:  
 passwd: password updated successfully  
 /usr/bin/chfn ngxxxxx  
 Changing the user information for ngxxxxx  
 Enter the new value, or press ENTER for the default  
     Full Name []: Nxxxx-and-Gxxxxx  
     Room Number []:  
     Work Phone []:  
     Home Phone []:  
     Other []:  
 Is the information correct? [Y/n] y  
 roy@roy-desktop:~$ sudo ls -l /home/ngxxxxx  
 [sudo] password for roy:  
 total 12  
 -rw-r--r-- 1 ngxxxxx ngxxxxx 8445 Jan 13 15:39 examples.desktop  
 roy@roy-desktop:~$ sudo chmod -R 0740 /home/ngxxxxx  
 roy@roy-desktop:~$ sudo ls -l /home/ngxxxxx  
 total 12  
 -rwxr----- 1 ngxxxxx ngxxxxx 8445 Jan 13 15:39 examples.desktop

I hope somebody has had this problem before - it is most frustrating!! SmilieSmilieSmilieSmilie
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

creatin user account

hi all, i m tryin to create a new account on the unix work station. do i use 'useradd' command? can u guyz advice on the usage of 'useradd' command as it can comes with 'useradd -D' or 'useradd -e' thanks :confused: (1 Reply)
Discussion started by: damian
1 Replies

2. UNIX for Dummies Questions & Answers

show all user account

I have a question about show all create user account. What commend do that thank`s for your help :) (6 Replies)
Discussion started by: Deux
6 Replies

3. Post Here to Contact Site Administrators and Moderators

user account

hi how to disable the useraccount in aix (should not remove). (1 Reply)
Discussion started by: chomca
1 Replies

4. UNIX for Advanced & Expert Users

Problem setting up Bash user account

Hi, We have a unix user account with login shell as ksh. Now we want to migrate our jobs to a new user account having bash as its login shell. For the old account we had a .env file which set up a lot of aliases and did a few other useful things. It seems this file was executed the on logging... (2 Replies)
Discussion started by: sumanroyc
2 Replies

5. UNIX for Dummies Questions & Answers

Installing Ubuntu To Single User Account?

I understand that Unix and it's counterparts are OSs, but would it be possible to just install them to a single user account? I'm using a family computer, whose other users want nothing more complicated on the computer than Internet Explorer, but I want to install Ubuntu so I can easily host my... (6 Replies)
Discussion started by: migigicoko
6 Replies

6. HP-UX

how can distingiush user account

example root::0:3::/:/sbin/sh daemon:*:1:5::/:/sbin/sh bin:*:2:2::/usr/bin:/sbin/sh sys:*:3:3::/: adm:*:4:4::/var/adm:/sbin/sh uucp:*:5:3::/var/spool/uucppublic:/usr/lbin/uucp/uucico lp:*:9:7::/var/spool/lp:/sbin/sh nuucp:*:11:11::/var/spool/uucppublic:/usr/lbin/uucp/uucico... (1 Reply)
Discussion started by: alert0919
1 Replies

7. UNIX for Dummies Questions & Answers

Difference between : Locked User Account & Disabled User Accounts in Linux ?

Thanks AVKlinux (3 Replies)
Discussion started by: avklinux
3 Replies

8. UNIX for Dummies Questions & Answers

Free UNIX account with installation privileges or install Ubuntu

Hello, I need to install a program that can only be run in unix. I dont have unix on my system. Does anyone know of any free shell accounts with install permissions. I know that there are free shell accounts available on web , but those are without install permission. Does installing Ubuntu... (7 Replies)
Discussion started by: akc
7 Replies

9. Cybersecurity

Please help identify these user account

Please help me identify these user accounts.. bin, lp, nuucp, smbnull, mysql, tftp Can we remove these user or disable these users?We have to apply the security policy about the user identification.Since it was settup by our vendor long time ago. We do not have these informations about these... (3 Replies)
Discussion started by: rdstkg
3 Replies

10. HP-UX

User account

I need to check actual date a user was disabled on my HP-UX server. Audit is claiming the user account was active during the last audit exercise. (7 Replies)
Discussion started by: cyriac_N
7 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:03 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy