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-javamail-resource(1AS)				   User Commands			     asadmin-create-javamail-resource(1AS)

NAME
asadmin-create-javamail-resource, create-javamail-resource - registers the JavaMail resource SYNOPSIS
create-javamail-resource --user admin_user [--password admin_password] [--host localhost] [--port 4848] [--secure|-s] [--passwordfile file- name] [--terse=false] [--echo=false] [--interactive] --mailhost hostname --mailuser username --fromaddress address [--storeprotocol imap] [--storeprotocolclass com.sun.mail.imapIMAPStore] [--transprotocol smtp] [--transprotocolclass com.sun.mail.smtp.SMTPTransport] [--debug=false][--enabled=true] [--description text] [--property (name=value)[:name=value]*] jndi_name Registers the Javamail resource. This command can only be run remotely. 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. --echo setting to true will echo the command line statement on the standard output. --interactive prompts you for the required options that are not already specified. --mailhost mail server host. --mailuser mail account user name. --fromaddress email address. --storeprotocol mail server stored protocol. --storeprotocolclass mail server stored protocol class name. --transprotocol mail server transport protocol. --transprotocolclass mail server transport protocol class name. --debug if set to true, server startsup in debug mode for this resource. --enabled determines whether the resource is enabled at runtime. --description text description of the Javamail resource. --property optional attribute name/value pairs for configuring the Javamail resource. OPERANDS
jndi_name JNDI name of the Javamail resource to be created. Example 1: Using create-javamail-resource asadmin> create-javamail-resource --user admin --password adminadmin --host fuyako --port 7070 --mailhost localhost --mailuser sample --fromaddress sample@sun.com mail_resourc/MyMailSession Command create-javamail-resource executed successfully Where: mail/MyMailSession is the JavaMail resource created. The escape character () is used in the --fromaddress option to distinguish the dot (.) and at sign (@). The JNDI name for a JavaMail resource customarily includes the mail/ naming subcontext. EXIT STATUS
0 command executed successfully 1 error in executing the command asadmin-delete-javamail-resource(1AS), asadmin-list-javamail-resources(1AS) J2EE 1.4 SDK March 2004 asadmin-create-javamail-resource(1AS)
All times are GMT -4. The time now is 09:06 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy