Sponsored Content
Full Discussion: user creation problem
Top Forums UNIX for Dummies Questions & Answers user creation problem Post 9913 by PxT on Monday 5th of November 2001 01:11:59 PM
Old 11-05-2001
I'm not sure exactly what method useradd uses to lock the password file, but I would try the following:
  • Run a 'ps ax' to look for any hung useradd processes or any other process that may be modifying the password file. Close or kill them.
  • Run an 'ls -l /etc/passwd*' and look for a potential lock file. It may be called passwd~, passwd.lock, etc. Remove it (or move it to /tmp as a safety measure)
  • Run an 'ls -la /var/lock' to look for any lock files. Again, remove or move them.
  • If you are still unable to run your command, try 'strace useradd <arguments>'
    This should show you the name of the lock file being accessed. You can then remove it.
removed html tags --oombera
 

10 More Discussions You Might Find Interesting

1. Solaris

User creation

Hi all, I want to create one user with full permissions to one directory called /opt/tivoli/tsm/client/ba/bin. Name for the user Tivoli Thanks & Regards Babu (7 Replies)
Discussion started by: lbreddy
7 Replies

2. AIX

User ID creation date

Dear All, I'd like to know is there any way to determine when a user id created in AIX? Thanks, Istvan (2 Replies)
Discussion started by: istvan.banai
2 Replies

3. Solaris

User Creation

i am trying to create a user on solaris 10. it is not taking user name with more than ten characters. which file i need to edit to do this setting. (4 Replies)
Discussion started by: raynu.sharma
4 Replies

4. Solaris

Reg user creation

I created a user in my Solaris box , but after creating am not able to login with that user name . Can anyone tell me that i have to change any files for enabling the login. (2 Replies)
Discussion started by: rogerben
2 Replies

5. Red Hat

User creation

Hi Thanks in advance. How to create a user without useradd command ?? (1 Reply)
Discussion started by: krish4linux
1 Replies

6. Solaris

Need help with user creation

Hello guys, i have a problem where i cant create a user and here some problem that i encounter. 1. /etc/passwd seems locked. 2. getting this error UX: useradd: ERROR: Cannot update system files - login cannot be created. # useradd -u 47367 -g 1084 -c "user123" -d /local/home/user123 -s... (2 Replies)
Discussion started by: brew
2 Replies

7. AIX

User creation

hi seniors i want to create the users like when the user try to login it should not should not promt for passwd is it possible to create users like this please help me (6 Replies)
Discussion started by: senmak
6 Replies

8. AIX

User creation problem

Hi, I am getting tired in creating several users in a day. Can anyone have a script to create several users in the same server, as well as, to create one user in several servers. where i have to put script and how to run the script. Waiting for your reply. Thanks in advance (5 Replies)
Discussion started by: udtyuvaraj
5 Replies

9. Solaris

NIS user creation

Hi can anyone help me how to create a NIS user by editing the files like Passwd,group, Netgroup,auto.home and Aliases using the "enis" utility? Please do the needful................................ (4 Replies)
Discussion started by: Revathi@1
4 Replies

10. UNIX for Dummies Questions & Answers

User creation - query

Hi, I want to create a user using useradd -m test. How can I restric the user not to change his directory from his home dir? Thanks, Suresh (2 Replies)
Discussion started by: suresh3566
2 Replies
asadmin-create-custom-resource(1AS)				   User Commands			       asadmin-create-custom-resource(1AS)

NAME
asadmin-create-custom-resource, create-custom-resource - registers the custom resource SYNOPSIS
create-custom-resource --user admin_user [--password admin_password] [--host localhost] [--port 4848] [--secure|-s] [--passwordfile file- name ] [--terse=false] [--echo=false] [--interactive=true] --restype resource_type --factoryclass classname [--enabled=true] [--description text] [--property (name=value)[:name=value]*] jndi_name Registers the custom resource. This command is supported in remote mode only. OPTIONS
--user authorized domain application server administrative username. --password password to administer the domain application server. --host machine name where the domain application server is running. --port port number of the domain application server listening for administration requests. --secure if true, uses SSL/TLS to communicate with the domain application server. --passwordfile file containing the domain application server password. --terse indicates that any output data must be very concise, typically avoiding human-friendly sentences and favoring well- formatted data for consumption by a script. Default is false. --echo setting to true will echo the command line statement on the standard output. Default is false. --interactive if set to true (default), only the required password options are prompted. --restype type of custom resource to be created. --factoryclass class that creates the custom resource. --enabled determines whether the resource is enabled at runtime. --description text description of the custom resource. --property optional attribute name/value pairs for configuring the custom resource. OPERANDS
jndi_name JNDI name of the custom resource to be created. Example 1: Using create-custom-resources asadmin> create-custom-resource --user admin1 --password adminadmin1 --host pigeon --port 5001 --restype customType factoryclass "com.custom.class" --description "this is a sample of creating a custom resource" sample_custom_resource Command create-custom-resource executed successfully Where sample_custom_resource is the custom resource created. EXIT STATUS
0 command executed successfully 1 error in executing the command asadmin-delete-custom-resource(1AS), asadmin-list-custom-resources(1AS) J2EE 1.4 SDK March 2004 asadmin-create-custom-resource(1AS)
All times are GMT -4. The time now is 01:13 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy