Hi,
I am using SunOS and HP-UX. I am trying to removed user that has not been using the system for a period of time. Is there anyway to find out how long since the last time the user logged on. I know there is command "last" that read from the file /etc/wtmp that hold some of information. ... (1 Reply)
I've been setting up a duplicate system to replace an ailing ultra 2, same os version, same file & directory structure, same databases, now I just wanted to doublecheck that for user info, to copy over exact user login info, i need to copy the etc/passwd, etc/group and etc/shadow files. THis will... (6 Replies)
I know this is prob a simple question but anyway here goes. I want to find out the owner of a certain file. I also want to find out what permissions that owner has. Is their any command that is similair to file in that it can tell men this specfic information about a file the way file tells you... (1 Reply)
How could I get the details about a user logged in a Unix system? ( WHat tasks did he perform or if he had changed any file or not)? Please answer my question. (1 Reply)
Please forgive this newbie question. I have a need to create a script that asks a user for information. Something like:
What is the name: $NAME_TYPED_HERE
Is $NAME_TYPED_HERE Correct ? YES (NO would go back to -What is the Name-)
mkdir then goes on behind the scene and makes folder called... (1 Reply)
Hi Admins,
I am running IAX 5.3
I have created a user with attributes maxage et. The user entry i can see in /etc/security/user file with only one attribute admin=false. how to update the user attributes like maxage etc.
Regards
Pavan (1 Reply)
Hi Experts,
I'm not able to get the info of user's from wbinfo.
But I'm able to join the user in domain(net rpc join -U username....).
I have deleted the *.tdb file under /var/lib/smaba and
set winbind cache time = 40 and restarted the winbind,
Still it not works..
And not able to... (0 Replies)
i have a script which takes input from user, if user gives either Y/y then it should continue, else it should quit by displaying user cancelled.
#!/bin/sh
echo " Enter your choice to continue y/Y OR n/N to quit "
read A
if
then
echo " user requested to continue "
##some commands... (7 Replies)
i did a mistake. :(
user1 ]$ vi ~/.bashrc
sudo su - user2
now , whenever I try to login to user1 , it will login to user2.
How can I resolve this ? :rolleyes:
N.B
-- I do not have root access.
-- I dont know password of user2
-- this is a virtual machine. (1 Reply)
Discussion started by: linuxadmin
1 Replies
LEARN ABOUT CENTOS
db2ldif
DB2LDIF(8) System Manager's Manual DB2LDIF(8)NAME
db2ldif - Directory Server script for exporting the database
SYNOPSIS
db2ldif [-Z serverID] {-n backend_instance}* | {-s includeSuffix}* [{-x excludeSuffix}*] [-a outputFile] [-m] [-M] [-r] [-u] [-U] [-C] [-N]
[-E] [-1] [-q] [-h]
DESCRIPTION
Exports the contents of the database to a LDIF file. This script can be executed while the server is still running, except when using the
-r option.
OPTIONS
A summary of options is included below:
-Z Server Identifier
The server ID of the Directory Server instance. If there is only one instance on the system, this option can be skipped.
-n Backend Name
The name of the LDBM database to reindex. Example: userRoot
-s includeSuffix
Specifies suffixes to be included in the LDIF file.
-x excludeSuffix
Specifies suffixes to be excluded from the LDIF file.
-a Output File
The name for the LDIF file.
-m
Minimize the base64 encodings in the exported LDIF file.
-M
Exported ldif is stored in multiple files. These files are named : <instance>_<filename>
By default, all instances are stored in the filename specified by the -a option.
-r
Export replication data(information required to initialize a replica when the LDIF is imported).
-u
Do not export the unique-id attribute.
-U
Requests that the output LDIF is not folded.
-C
Uses only the main database file.
-N
Suppress printing sequential number
-E
Decrypts any encrypted data during export.
-1
Deletes, for reasons of backward compatibility, the first line of the LDIF file that gives the version of the LDIF standard.
-q
Quiet mode. Suppresses output of the script.
-h
Display the usage.
EXAMPLE
db2ldif -Z instance3 -n userRoot -a /LDAP/ldif/export.ldif
db2ldif -s 'dc=example,dc=com' -a /LDAP/ldif/export.ldif -m -E -q
DIAGNOSTICS
Exit status is zero if no errors occur. Errors result in a non-zero exit status and a diagnostic message being written to standard error.
AUTHOR
db2ldif was written by the 389 Project.
REPORTING BUGS
Report bugs to http://bugzilla.redhat.com.
COPYRIGHT
Copyright (C) 2013 Red Hat, Inc.
Mar 5, 2013 DB2LDIF(8)