Hello,
I am very new to Unix so I want to apologize in advance in case my question is stupid.
I wrote a KORN script that I am planning to distribute to many users. This script contains sensitive information that the users should not see: user name and password to our database servers with... (11 Replies)
I am doing a project in C program which requires to type in password in Unix terminal. Does anybody know how to shade or not output any words typed by user in the terminal?
I use the function scan() to read typing from user. Thanks in advance. (2 Replies)
Hi falks,
I have the following ksh code:
echo "Enter VS Admin password:"
oldstty=`stty -g`
stty -echo intr '$-'
read password
stty $oldstty
echo
This code ask from a user to enter his password. The OS suppose to hide the entering of the... (2 Replies)
Hi everybody,
Do you know how to hide the text for interactive unix shell script? Just like the case for inputting password during logon.
Patrick (1 Reply)
All,
In my script I am calling another script.. in that script I need to enter a password. Problem is that everyone is able to see the password when I enter that. Is there any way that when i enter that password it should not display or may look like *******.
Or if there any other way that I... (1 Reply)
Hi,
I am writing a UNIX .ksh script and need to send the login password of the login id that is executing the script to a command that I am executing in the script. I don't want that password to be seen by anyone except whoever is executing the script.
Does anyone know how I can accomplish... (6 Replies)
hi all,
i run sqlplus command on unix(HP-UX)
like "sqlplus username/password@serverA @deneme.sql"
but when someone run "ps -ef | grep sqlplus", it can see my username and password :(
How can i hide username and password.
thanx. (1 Reply)
Dear folks,
The title of my thread says mostly all of what I want to do. Basically I want to auto-ssh to a remote host, and run a program on it (VLC is just an example). I wrote a script which calls xterm and then runs expect on it. The code is as follow
#!/bin/bash
export PASS="xxxxxxx"... (22 Replies)
Hi
I have following problem Im writing a script (in bash ) , where need to be written login & passwd for databas client .
Its need to in following form login passwd@dbhostname .
The problem is so anybody can read it so the passwd & login are visible and thats not very safety .
Can... (8 Replies)
i have an expect script that runs like this:
/usr/bin/expect -f /home/skysmart/commandstoexecute.sh host2.net b$4aff Skysmart
when i run this command, and i do a ps -ef and egrep for expect, i see the exact line in the process table and it shows my password for the world to see.
how can i... (2 Replies)
Discussion started by: SkySmart
2 Replies
LEARN ABOUT OSX
dsexport
dsexport(1) BSD General Commands Manual dsexport(1)NAME
dsexport -- export records from OpenDirectory
SYNOPSIS
dsexport [--N] [-r record_list] [-e exclude_attributes] [-a address -u username [-p password]] output_file node_path record_type
DESCRIPTION
The dsexport utility exports records from Open Directory.
The first argument is the path to the output file. If the file already exists it will be overwritten.
The second argument is the path to the OpenDirectory node from which the records will be read.
The third argument is the type of record to export. If the record type does not begin with 'dsRecTypeStandard:' or 'dsRecTypeNative:', the
dsexport utility will determine if the node supports a standard attribute by the specified name; otherwise, dsexport will assume that the
record type is native. A warning will be printed if the record type is converted. Standard record types can be listed using the following
command: 'dscl -raw . -list /'.
OPTIONS
The options are as follows:
--N Export all attributes, including native attributes. By default, dsexport only exports standard attributes.
-r record_list
Comma-separated list of records to export from the specified node. The -r option may be used multiple times to specify additional
records to export. If the -r option is not specified, dsexport will attempt to export all records.
-e exclude
Comma-separated list of attributes that should not be exported. The -e option may be used multiple times to specify additional
attributes to exclude. The following attributes are always excluded: 'dsAttrTypeStandard:AppleMetaNodeLocation',
'dsAttrTypeStandard:RecordType', 'dsAttrTypeNative:objectClass'.
-a address
Address of the desired proxy machine.
-u username
Username to use for the proxy connection
-p password
Password to use for the proxy connection. If the -p option is not specified, dsexport will interactively prompt for the password.
NOTES
When using an LDAP node, please be aware that dsexport can only export as many records as the LDAP server is willing to return. If the LDAP
server has several thousand users, you may want to raise the maximum number of search results that the server returns. This can be done in
Server Admin (my.server.com>OpenDirectory>Settings>Protocols tab). By default this is set to 11000 results.
EXAMPLES
Export all user records from the local node to 'export.out':
$ dsexport export.out /Local/Default dsRecTypeStandard:Users
Export the group records for 'admin' and 'staff' from the LDAPv3 node on a proxy machine 'proxy.machine.com':
$ dsexport export.out /LDAPv3/127.0.0.1 dsRecTypeStandard:Groups -r admin,staff -a proxy.machine.com -u diradmin -p password
Export augmented users from the LDAPv3 node, including native attributes but excluding the PasswordPlus attribute:
$ dsexport augments.out /LDAPv3/127.0.0.1 dsRecTypeStandard:Augments --N -e "dsAttrTypeStandard:PasswordPlus"
EXIT STATUS
The dsexport utility exits 0 on success, and >0 if an error occurs.
SEE ALSO dscl(1), dsimport(1), DirectoryService(8)BSD 20 November 2008 BSD