Sponsored Content
Operating Systems Linux Red Hat Unable to create user in linux Post 302515505 by ankurk on Wednesday 20th of April 2011 08:46:45 AM
Old 04-20-2011
Unable to create user in linux

Hi

Code:
 
[ankkhura@xyz/]$ uname -a
Linux xyz 2.6.18-128.0.0.0.2.el5 #1 SMP Wed Jan 21 05:17:33 EST 2009 x86_64 x86_64 x86_64 GNU/Linux


I am unable to add a new user getting following

Code:
[root@xyz~]# id
uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel),1024(txtdba),1235(txtdba7),9045(dba_jh)
[root@xyz~]# useradd ank
useradd: cannot create directory /home/ank

If i go to / and do ls -altr i can see the home directory is there but 0 Bytes.

Code:
[root@xyz/]# pwd
/
[root@xyz/]# ls -altr
total 244
drwxrwxrwx   2 root root   4096 Dec  4  2002 ade
drwxr-xr-x  28 root root   4096 Dec  6  2002 var
drwxrwxrwx  14 root root   4096 Feb 13  2004 scratch
drwxr-xr-x   2 root root   4096 Apr  3  2004 ade_autofs
drwxr-xr-x   2 root root   4096 Jun  5  2007 .automount
drwxr-xr-x  17 root root   4096 Sep 11  2007 usr
drwxr-xr-x   2 root root   4096 Jan  9  2009 srv
drwxr-xr-x   2 root root   4096 Jan  9  2009 media
drwxr-xr-x   2 root root   4096 Jan 21  2009 misc
drwx------   2 root root  16384 Mar 30 19:27 lost+found
drwxr-xr-x   7 root root  12288 Mar 30 21:16 lib64
drwxr-xr-x  12 root root   4096 Mar 30 21:16 lib
drwxr-xr-x   2 root root   4096 Mar 30 21:16 bin
drwxr-xr-x   2 root root  12288 Mar 30 21:16 sbin
drwxr-xr-x   3 root root      0 Mar 30 21:19 net
drwxr-xr-x   2 root root   4096 Mar 30 23:27 selinux
drwxr-xr-x   3 root root   4096 Mar 30 23:49 tftpboot
lrwxrwxrwx   1 root games    28 Mar 30 23:59 OracleProd -> /usr/local/redhat/OracleProd
lrwxrwxrwx   1 root games    18 Mar 30 23:59 oracle -> /OracleProd/oracle
drwxr-xr-x   2 root root   4096 Mar 31 00:01 LOCAL_SWAP
drwxr-x---   3 root root   4096 Mar 31 00:01 root
drwxr-xr-x   3 root root   4096 Mar 31 00:02 boot
drwxr-xr-x   3 root root   4096 Mar 31 00:02 mnt
drwxr-xr-x   5 root root   4096 Mar 31 00:02 opt
dr-xr-xr-x 171 root root      0 Mar 31 00:07 proc
drwxr-xr-x  11 root root      0 Mar 31 00:07 sys
-rw-r--r--   1 root root      0 Mar 31 00:08 .autorelabel
-rw-r--r--   1 root root      0 Mar 31 00:08 .autofsck
drwxr-xr-x   2 root root      0 Mar 31 00:08 home
-rw-------   1 root root   1024 Mar 31 00:09 .rnd
drwxr-xr-x  30 root root   4096 Mar 31 00:09 ..
drwxr-xr-x  30 root root   4096 Mar 31 00:09 .
drwxr-xr-x  10 root root   3860 Mar 31 00:09 dev
drwxrwxrwt   5 root root   4096 Apr 20 04:02 tmp
drwxr-xr-x 143 root root  12288 Apr 20 12:40 etc

Does that make a differnece
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Other than root user .Normal user is unable to create files

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. AIX

User unable to create a file over 2 GB's in size

Hello, this is my first post. I have a user who cannot create a file over 2 GB's in size eventhough the FS is large file enabled and I added a special stanza in /etc/security/limits to allow an unlimited file size for this particular user (user1 - see below). ibm:/home/root (4062)#cat... (7 Replies)
Discussion started by: AIXtexas
7 Replies

3. AIX

Unable to create a group

Hi, I'm trying to create a new group on an AIX 5.2.0.0. server but am getting the following error: root:/root $ mkgroup debt 3004-698 Error committing changes to "debt" : Value is invalid. I've change the group name to no affect. Does anyone have any ideas what could be causing this? ... (0 Replies)
Discussion started by: m223464
0 Replies

4. Solaris

unable to create flar

Hello friend, Now i'm doing JDS3.1 in v440 servers.while checking the lustatus command getiing out like this lustatus Boot Environment Is Active Active Can Copy Name Complete Now On Reboot Delete Status -------------------------- --------... (0 Replies)
Discussion started by: rjay.com
0 Replies

5. Solaris

Unable to create folder as a user

Hi All, I am trying to create a folder in /export/home/user1 directory as a user1 but I am getting the error message as -bash-3.00$ mkdir abc mkdir: Failed to make directory "abc"; Permission denied Also I tried creating the folder but it fails too -bash-3.00$ touch abc touch: cannot... (2 Replies)
Discussion started by: Manjunath K V
2 Replies

6. Homework & Coursework Questions

Create script to add user and create directory

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

7. Solaris

Unable to create or delete a directory in /usr with root user

Hi All, I am trying to uninstall jdk 1.5 from my Solaris 10 64 bit but some how was not successful.so tried to delete the folder of jdk from /usr but its throughing error as: Unable to remove directory jdk: Read-only file system Even I tried to create a dir in /usr but its not allowing me... (4 Replies)
Discussion started by: Pshah
4 Replies

8. HP-UX

[Solved] Unable to change/create home dir for particular user

Hi all I wanted to change the home dir for a user, but when using smh : SMH->Accounts for Users and Groups->Local Users->Modify User ---------------------------------------------------------------------------------------------------------------------------------------------- * Required... (8 Replies)
Discussion started by: fretagi
8 Replies

9. Solaris

Unable to create a ftp user only

Hi all I am facing difficulties when using the useraddcommand. when running useradd -u 60006 -g 100 -d /opt/xxx/yyy/z -m -s /bin/false ftpuser It does create the user, but with a wrong home directory. It creates its home directory at /home/ftpuser Please can you help? (2 Replies)
Discussion started by: fretagi
2 Replies

10. UNIX for Beginners Questions & Answers

Unable to create new user without lower character

Hi friends, I want to create new user BG0001 in SunOS and getting below errorbash-3.2# useradd -d /home/BG0001 -m -s /bin/sh BG0001 UX: useradd: BG0001 name should have at least one lower case character. bash-3.2# bash-3.2# OS version is as belowbash-3.2# cat /etc/release ... (7 Replies)
Discussion started by: sandeepkmehra
7 Replies
PAPS(1) 						      General Commands Manual							   PAPS(1)

NAME
paps - UTF-8 to PostScript converter using Pango SYNOPSIS
paps [options] files... DESCRIPTION
paps reads a UTF-8 encoded file and generates a PostScript language rendering of the file. The rendering is done by creating outline curves through the pango ft2 backend. OPTIONS
These programs follow the usual GNU command line syntax, with long options starting with two dashes (`-'). A summary of options is included below. --landscape Landscape output. Default is portrait. --columns=cl Number of columns output. Default is 1. --font=desc Set the font description. Default is Monospace 12. --rtl Do rtl layout. --paper ps Choose paper size. Known paper sizes are legal, letter, a4. Default is A4. --bottom-margin=bm Set bottom margin in postscript points (1/72 inch). Default is 36. --top-margin=tm Set top margin. Default is 36. --left-margin=lm Set left margin. Default is 36. --right-margin=rm Set right margin. Default is 36. --help Show summary of options. --header Draw page header for each page. --markup Interpret the text as pango markup. --encoding=ENCODING Assume the documentation encoding is ENCODING. --lpi Set the lines per inch. This determines the line spacing. --cpi Set the characters per inch. This is an alternative method of specifying the font size. --stretch-chars Indicates that characters should be stretched in the y-direction to fill up their vertical space. This is similar to the texttops behaviour. AUTHOR
paps was written by Dov Grobgeld <dov.grobgeld@gmail.com>. This manual page was written by Lior Kaplan <kaplan@debian.org>, for the Debian project (but may be used by others). April 17, 2006 PAPS(1)
All times are GMT -4. The time now is 11:39 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy