9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I want to automate the creation or processing of the following:
Directory and subdirectory creation for your scenario company
Files in each of the directories
Symbolic links from 2 subdirectories to their parent directories
Setting appropriate file permissions for the directories and... (1 Reply)
Discussion started by: ekglag2
1 Replies
2. UNIX for Dummies Questions & Answers
Hi ,
I want to pull files from ftp monthly once . The files in ftp has a something like 292_fileto_pull and next month it will be 293_fileto_pull for each month the number keeps increasing. i thought in my script if i can use date and increment the number by it
mget *_292_fileto_pull
i... (2 Replies)
Discussion started by: vikatakavi
2 Replies
3. Shell Programming and Scripting
Hi All,
I have a shell script that is integrated with a fault management system. It periodically monitors the system and raises an alarm. This script has different functions and it accepts input from us on the console. Is there any way to invoke it using a shell script ?
Please advise.
... (2 Replies)
Discussion started by: praviper
2 Replies
4. UNIX for Dummies Questions & Answers
Could any one tell me , how to start a thread here, i just searching for so long. sorry to post in irrelavent here
---------- Post updated at 08:19 AM ---------- Previous update was at 08:00 AM ----------
Hi,
I got a requirement to automate the process.
We have SLA files, there are... (1 Reply)
Discussion started by: afahmed
1 Replies
5. Shell Programming and Scripting
Hi Guru's,
I am trying to write a scripts that will automate my image provisoining process.
Scenario:
I have Linux Image Hosted on cloud which needs to be provisoned before it can be used. Currently we log onto the image through the putty on windows and connect to linux instance. I... (3 Replies)
Discussion started by: taqvia
3 Replies
6. Shell Programming and Scripting
Solaris...
I need to automate running of scsudo from another script. However, I've determined that scsudo reads the password from /dev/tty rather than STDIN when the Password prompt appears. I don't have 'expect' or equivalents available - can I automate sending the correct password when... (1 Reply)
Discussion started by: JerryHone
1 Replies
7. UNIX for Advanced & Expert Users
Can multiple Autosys jobs be changed with the same parameter at the same time? what scripting do I need? (0 Replies)
Discussion started by: LilyClaro
0 Replies
8. Shell Programming and Scripting
Hi there,
I am trying to send emails from within a shell script, and I need help. Also I am trying to send attachments from within a shell script. I am using sendmail.
Regards (3 Replies)
Discussion started by: JimJim
3 Replies
9. Shell Programming and Scripting
Hi all,
I want to write a script which logs into a database (DB2). To do this i need to have a password. This will be done lots and lots of times, so i need to modify the script to automate the response to the password request.
How do i this, because at present i do the following:
db2 connect... (3 Replies)
Discussion started by: Liamo
3 Replies
mkpassdb(8) BSD System Manager's Manual mkpassdb(8)
NAME
mkpassdb -- Mac OS X Server Password Server database creation tool
SYNOPSIS
mkpassdb -deleteslot slot-ID
mkpassdb -dump [-v]
mkpassdb -dump [slot-ID]
mkpassdb -header
mkpassdb -kerberize
mkpassdb -key
mkpassdb -list
mkpassdb -mergedb path
mkpassdb -mergeparent path
mkpassdb -setadmin slot-ID [admin-class (0-7)]
mkpassdb -setglobalpolicy "policy1=value1 policy2=value2 etc."
mkpassdb -setkerberos slot-ID KerberosRealm
mkpassdb -setkeyagent slot-ID
mkpassdb -setcomputeraccount [off]
mkpassdb -setrealm realm
mkpassdb -getreplicationinterval
mkpassdb -setreplicationinterval seconds [policy]
mkpassdb -rekeydb [key-size-in-bits]
mkpassdb [-u user] [-m mech] [-a] [-b] [-e count] [-n replica-name] [-o] [-p] [-q]
DESCRIPTION
mkpassdb creates or modifies the password server database directly.
mkpassdb must be run as root; it will exit otherwise. The -list command is the only exception.
This tool's purpose is to create and manage the password server database. It performs operations that are not supported by the password
server protocol because of security concerns. These operations include the creation and destruction of the database itself, the creation of
the RSA security keys that establish the identity of the password server, the trusted mechanism list, and the genesis of administrator
accounts. It also allows the root account to make some password server changes on the local system.
-deleteslot Invalidates a slot ID in the database.
-dump Outputs all of the User IDs and their corresponding user names. If a slot-ID is specified, it prints out more
detailed information for a single slot. If the [-v] option is used, additional columns are included.
-header Outputs the database header information.
-kerberize Attempts to add kerberos principals for all non-kerberos accounts in password server.
-key Outputs the RSA public key stored in the database.
-list Outputs all of the SASL mechanisms available to the password server.
-mergedb This command is a low-level command that is invoked by a higher-level tool in normal usage. Refer to the restoredb
command in the slapconfig man page. This command merges a snapshot of the password server database into the cur-
rent database whether or not the daemon is running. This command takes existing LDAP users, looks for their data
in the specified db file, and merges their db information. If there is data in the db without a corresponding LDAP
user or computer, it is not merged. The identity elements of the password server, including RSA keys and replica
name, are changed to the snapshot's contents.
-mergeparent This command is a low-level command that is invoked by a higher-level tool in normal usage. Refer to the mergedb
command in the slapconfig man page. This command merges a snapshot of the password server database into the cur-
rent database whether or not the daemon is running. This command takes existing LDAP
users, looks for their data in the specified db file, and merges their db information. If there is data in the db
without a corresponding LDAP user or compute r, it is not merged. The current identity of the password server is
preserved.
-setadmin Promotes a slot-ID to have administrator privileges for the password server. By default, administrators set with
mkpassdb receive the most priveleged rank (0).
-setglobalpolicy Sets the default policies for all users.
-setkerberos Assigns a Kerberos realm to a password server account.
-setkeyagent Promotes a slot-ID to have enough administrator privileges to retrieve session keys on behalf of other accounts.
-setcomputeraccount Informs the password server that the account belongs to a computer rather than a user. Computer accounts are not
subject to policies and do not expire. Using the optional "off" argument changes the state back to a user account.
-setrealm Sets the password server's SASL realm.
-getreplicationinterval Gets the number of seconds between replication attempts.
-setreplicationinterval Sets the number of seconds between replication attempts.
-rekeydb Generates a new RSA public/private key pair for the database. Valid sizes are 1024, 2048, or 3072. This command
should be invoked by a higher-level tool. If run from the command line, existing users will not be able to authen-
ticate. The PasswordService daemon must be turned off with, "NeST -stoppasswordserver" before this command can be
used.
OPTIONS
The following options are available:
-a add a new administrator to an existing database.
-b add a new non-administrative user to an existing database.
-e expand the database to a fixed number of records. If the number is greater than the current size of the database, then the database is
expanded; otherwise, no action is performed. This option is used by other setup tools when establishing a replica database. There is no
reason to use it from the command line.
-m mech
establishes a mechanism as weak. If a mechanism is considered weak, then it can be used to verify passwords but the password server
will not allow write operations to its database. The mechanisms SMB-NT, SMB-LAN-MANAGER, CRYPT, and APOP are always in the weak list.
Directory Services uses DHX to perform write operations to the password server.
-n name
Assign a name to a replica
-o overwrite an existing database. Replacing an existing database is extremely destructive and should not be done unless all password
server users have been removed from the directory system.
-p prompt for a password
-q quiet
-u user
Add this user name to the database.
USAGE
In typical usage, mkpassdb is invoked by another tool. It is used directly on rare occasion.
FILES & FOLDERS
/Library/Preferences/com.apple.passwordserver.plist - the PasswordService preferences file
/usr/sbin/PasswordService - the password service daemon
/var/db/authserver/authservermain - password database (guard this)
/var/db/authserver/authserverfree - list of free (reusable) slots in the database
/var/db/authserver/authserverreplicas - table of password server replicas
SEE ALSO
NeST(8) PasswordService(8) slapconfig(8)
Mac OS X Server 21 February 2002 Mac OS X Server