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)

NAME
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

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

NAME
tokenadmin -- Command-line interface to smartcards and other token-based keychains SYNOPSIS
tokenadmin [-hqv] command [command_options] [command_args] DESCRIPTION
A command-line tool to administer smartcards and other token-based keychains. OPTIONS
-h With no arguments, shows a list of all commands. If arguments are provided, shows usage for each of the specified commands. Same as the help command. -q Makes tokenadmin less verbose. -v Makes tokenadmin more verbose. COMMANDS
Note: all commands other than help take the -h option to display help. help Shows all commands. create-fv-user -u short-name -l long-name [-p password] Creates a new FileVaulted user protected by the inserted smart card or token. Options: -u short-name Specify the short (i.e., login) name to be used for the account. -l long-name Specify the full name to be used for the account. If the full name contains spaces, the name must be enclosed by quotation marks. -p password Password for the user's login keychain (optional). EXAMPLE
tokenadmin create-fv-user -u fvtest3 -p foo -l "FV Test User 3" Create a new FileVaulted user with short name "fvtest3" and full name "FV Test User 3", with the new FileVault image being protected by the inserted token. The password for the user's login keychain is "foo". Note: after creating this user with tokenadmin, you must run "sc_auth accept -u fvtest3" or this user will not be able to log in. SEE ALSO
security(1), sc_auth(8), systemkeychain(8) NOTES
tokenadmin will eventually be merged into the security(1) command. Darwin June 1, 2019 Darwin
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