Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

sc_auth(8) [osx man page]

sc_auth(8)						    BSD System Manager's Manual 						sc_auth(8)

sc_auth -- smart card authorization setup script SYNOPSIS
sc_auth accept [-v] [-u user] [-d domain] [-k keyname] sc_auth accept [-v] [-u user] [-d domain] -h hash sc_auth remove [-v] [-u user] [-d domain] sc_auth hash [-k keyname] sc_auth list [-v] [-u user] [-d domain] DESCRIPTION
sc_auth configures a local user account to permit authentication using a supported smart card. Authentication is via asymmetric key (also known as public-key) encryption. sc_auth works with signing keys, but not encryption keys. sc_auth can perform the following actions: accept Associate a user with a public key on a card. The key to use can be specified either by its name or its hash. remove Remove all public keys associated with a user. hash Print the hashes for all keys on all inserted cards. list List all public keys associated with a user. OPTIONS
-u user Specifies the user whose account is to be modified -d domain Specifies the directory domain containing the user account -k keyname Specifies a public key by its name -h hash Specifies a public key by its hash -v Verbose mode NOTES
sc_auth is a shell script. It is intended to be modified by administrators to suit their local environments. sc_auth is only known to work with a local directory. Consult the script's source for some limited guidance to using remote directories. BUGS
sc_auth hash might display the hashes of encryption keys as well as signing keys, even though sc_auth accept does not work with encryption keys. MacOSX December 11, 2006 MacOSX

Check Out this Related Man Page

CRYPTOFLEX-TOOL(1)						   OpenSC tools 						CRYPTOFLEX-TOOL(1)

cryptoflex-tool - utility for manipulating Schlumberger Cryptoflex data structures SYNOPSIS
cryptoflex-tool [OPTIONS] DESCRIPTION
cryptoflex-tool is used to manipulate PKCS data structures on Schlumberger Cryptoflex smart cards. Users can create, list and read PINs and keys stored on the smart card. User PIN authentication is performed for those operations that require it. OPTIONS
--verify-pin, -V Verifies CHV1 before issuing commands --list-keys, -l Lists all keys stored in a public key file --create-key-files arg, -c arg Creates new RSA key files for arg keys --create-pin-files id, -P id Creates new PIN file for CHVid --generate-key, -g Generate a new RSA key pair --read-key Reads a public key from the card, allowing the user to extract and store or use the public key --key-num num, -k num Specifies the key number to operate on. The default is key number 1. --app-df num, -a num Specifies the DF to operate in --prkey-file id, -p id Specifies the private key file id, id, to use --pubkey-file id, -u id Specifies the public key file id, id, to use --exponent exp, -e exp Specifies the RSA exponent, exp, to use in key generation. The default value is 3. --modulus-length length, -m length Specifies the modulus length to use in key generation. The default value is 1024. --reader num, -r num Forces cryptoflex-tool to use reader number num for operations. The default is to use reader number 0, the first reader in the system. --verbose, -v Causes cryptoflex-tool to be more verbose. Specify this flag several times to enable debug output in the opensc library. SEE ALSO
pkcs15-tool(1) opensc 06/03/2012 CRYPTOFLEX-TOOL(1)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

SSH script

Hello All, I have public keys authentication set up already on my system, to connect to another team's system. What I'm trying to do is to write a script that connects to the customer's box, changes to a certain directory, and then changes the permissions of the files in that directory. ssh... (4 Replies)
Discussion started by: Khoomfire
4 Replies

2. Shell Programming and Scripting

perl adding items to a hash

how would you go about taking a user's input and adding it to a hash? i'd also like it to permanently add the input to the hash. not just in the ram, add it into the script! :eek: (17 Replies)
Discussion started by: andrew2325
17 Replies

3. Shell Programming and Scripting

Please help: Build a sed command and execute it in a script

I am using an array to store some data (keys e.g 47975081_1215781266128), it can be assumed that it is key to other data. I want extract data from a file based on a couple of keys (range) and store the resulting data in a variable using the following command: sed -n... (9 Replies)
Discussion started by: gugs
9 Replies

4. Shell Programming and Scripting

restrict the user not to key in more than 50 chars

When my script is run, it will ask the user to enter some text and the user should be restricted not to enter more than 50 chars. Is there any command which I can use with "read" command? Help me please (18 Replies)
Discussion started by: injeti
18 Replies

5. Shell Programming and Scripting

how to disable keys in script

Hi there all.. How can I set keys to be disabled in a shell script menu? So people cant escape the script with Ctrl+C or someting. I have a menu people have to see and when they get out of the menu script they have to be logged off again. That all works fine. But when they Ctrl+C they just... (5 Replies)
Discussion started by: draco
5 Replies

6. Shell Programming and Scripting

Perl: Any quick way to use regex on hash keys?

Hi, Is there any quick way to use pull out keys that match a specific regex pattern? eg %hash ; $hash(123,456) = xxx; $hash(123,457) = xxx; $hash(123,458) = xxx; $hash(223,459) = xxx; I need a fast way to get all the keys that start with 123.. Meaning I should get ... (5 Replies)
Discussion started by: Leion
5 Replies

7. Shell Programming and Scripting

command does not work

need help, trying make a command where the user presses any keys and it will go to the home page, however it doesnt work, why ? echo -p "press any key to return to main menu" menu if ]; then echo -p "\n" home fi (5 Replies)
Discussion started by: bassmasta1
5 Replies

8. UNIX for Dummies Questions & Answers

Bind keys using unix

I am using unix and I want to bind a key so that when I press it, text appears in the command line: Eg: Press '=' and 'verbatim18 centres_show' appears. Can anyone help me? I have tried as many combinations as I have found on the internet, but it just keeps saying either 'Command not... (33 Replies)
Discussion started by: bucksnotts
33 Replies

9. Shell Programming and Scripting

Can't paste in command line.

Hello. I've made a simple script which asks the user to input a hash and then runs a command that replaces the variable $hash with what the user inserted. The ting is that when the programm asks for input I can't paste anything there..! any clues?? :wall: (8 Replies)
Discussion started by: louboulos
8 Replies

10. Shell Programming and Scripting

Shell script for SFTP using Public and private keys

Hi all, I needed a shell script for file transfering using public/private keys for authentication. Could you please help me out on this? A procedure to write a shell script is enough. Thanks in advance. Regards. Vidya N (8 Replies)
Discussion started by: Vidya N
8 Replies

11. Shell Programming and Scripting

Script to pull hashes out of large text file

I am attempting to write a script that will pull out NTLM hashes from a text file that contains about 500,000 lines of data. Not all accounts contain hashes and I only need the ones that do contain hashes. Here is a sample of what the data looks like: There are thousands of other lines in... (6 Replies)
Discussion started by: chango77747
6 Replies

12. Shell Programming and Scripting

[Solved] Password query even after adding public key

Dears I am running a shell script to backup (transfer) files to a networked External HDD. Even though the public key has been added it still asks for the password before starting the transfer. Any suggestions? Thanks in advance. (8 Replies)
Discussion started by: BrownBob
8 Replies

13. UNIX for Dummies Questions & Answers

Public and Private Key generation for scp

Hi, What tool is used to generate public and private keys for SCP? Do you have an example script that generates these keys, puts them in files and then another example script that references them from SCP? Thanks, (9 Replies)
Discussion started by: Astrocloud
9 Replies

14. What is on Your Mind?

Regarding guidance to learn *NIX more and more

Hello All, This Poll/thread is for views of all forum user regarding following point: There are many people in this forum who are actually not actually working on *NIX(admin or real scripting/automation part) but they are/have learnt scripting and trying to help/guide/advice/sharing... (11 Replies)
Discussion started by: RavinderSingh13
11 Replies

15. Shell Programming and Scripting

Dollar symbol in Shell Script Variable

Hi, I am working on PGP encryption. I am getting public keys from some file. One of the key has dollar sign in it "$" Example: "abc$123" echo 'passphrase='$passphrase --> Giving correct value abc$123 But if I use $passphrase in PGP command getting Invalid passphrase error. If I... (10 Replies)
Discussion started by: Sreehari
10 Replies