Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Inconsistency... Thy Name is "Password" Post 302084864 by geralex2 on Monday 14th of August 2006 05:56:34 AM
Old 08-14-2006
Hi ZB,

Thanks for the words.

There was an inconsistency in the passwd and shadow files so I've removed the only line which appeared in one and not the other.(Saved the line and it can be added back as needed).

However, this made bugger all* difference.

Interestingly enough - it seems that useradd is not the only command affected by this - userdel seems to have a fit as well.

I doubt it's the userid I'm using as I'm setting it up with the root logon. (But can't add a newuser id to test it with another id with Admin rights! Grrrrr!)

Appreciate any further thoughts!

Cheers,

G

(*Techie term: apologies for babble).
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Explain the line "mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`"

Hi Friends, Can any of you explain me about the below line of code? mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'` Im not able to understand, what exactly it is doing :confused: Any help would be useful for me. Lokesha (4 Replies)
Discussion started by: Lokesha
4 Replies

2. Shell Programming and Scripting

cat $como_file | awk /^~/'{print $1","$2","$3","$4}' | sed -e 's/~//g'

hi All, cat file_name | awk /^~/'{print $1","$2","$3","$4}' | sed -e 's/~//g' Can this be done by using sed or awk alone (4 Replies)
Discussion started by: harshakusam
4 Replies

3. Shell Programming and Scripting

ps -ef | grep "string1" "string2" " "string3"

Hi all, can any one suggest me the script to grep multiple strings from ps -ef pls correct the below script . its not working/ i want to print OK if all the below process are running in my solaris system. else i want to print NOT OK. bash-3.00$ ps -ef | grep blu lscpusr 48 42 ... (11 Replies)
Discussion started by: steve2216
11 Replies

4. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

Hi, I have line in input file as below: 3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL My expected output for line in the file must be : "1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL" Can someone... (7 Replies)
Discussion started by: shis100
7 Replies

5. Shell Programming and Scripting

how to use "cut" or "awk" or "sed" to remove a string

logs: "/home/abc/public_html/index.php" "/home/abc/public_html/index.php" "/home/xyz/public_html/index.php" "/home/xyz/public_html/index.php" "/home/xyz/public_html/index.php" how to use "cut" or "awk" or "sed" to get the following result: abc abc xyz xyz xyz (8 Replies)
Discussion started by: timmywong
8 Replies

6. Solaris

The slices "usr", "opt", "tmp" disappeared!!! Help please.

The system don't boot. on the screen appears following: press enter to maintenance (or type CTRL-D to continue)...I checked with format command. ... the slices "0-root","1-swap","2-backup" exist. ...the slises "3-var","6-usr" -unassigned. :( (16 Replies)
Discussion started by: wolfgang
16 Replies

7. UNIX for Dummies Questions & Answers

Using "mailx" command to read "to" and "cc" email addreses from input file

How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address and column 3 contains “cc” e-mail address to include with same email. Sample input file, email.txt Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies

8. Shell Programming and Scripting

Bash script - Print an ascii file using specific font "Latin Modern Mono 12" "regular" "9"

Hello. System : opensuse leap 42.3 I have a bash script that build a text file. I would like the last command doing : print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt where : print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies

9. AIX

Apache 2.4 directory cannot display "Last modified" "Size" "Description"

Hi 2 all, i have had AIX 7.2 :/# /usr/IBMAHS/bin/apachectl -v Server version: Apache/2.4.12 (Unix) Server built: May 25 2015 04:58:27 :/#:/# /usr/IBMAHS/bin/apachectl -M Loaded Modules: core_module (static) so_module (static) http_module (static) mpm_worker_module (static) ... (3 Replies)
Discussion started by: penchev
3 Replies
secd(1m)																  secd(1m)

NAME
secd - The DCE Security Server SYNOPSIS
secd [-b[ootstrap]] [-lockpw] [-locksm[ith]] [pname] [-rem[ote]] [-master_seqno new_master_seqno] [-cpi time] [-restore_master] [-noaudfilter] [-v[erbose]] OPTIONS
Restarts the master Security Server in locksmith mode. Use this mode if you cannot access the registry as the principal with full registry access, because that principal's account has been inadvertently deleted or its password lost. The pname argument is the name of the lock- smith principal. If no registry account exists for this principal, secd creates one. Prompt for a new locksmith password when running in locksmith mode. This option allows you to specify a new password for the locksmith account when the old one is unknown. Allows the lock- smith principal to log in remotely. If this option is not used, the principal must log in from the local machine on which secd will be started. Always waits only one minute between tries to export binding information to the Cell Directory Service during DCE configuration. If you do not specify this option, during initialization secd sleeps for 1 minute if CDS is not available when it tries to export binding information. If the export fails a second time, it sleeps for 2 minutes before it tries again. If it still fails, it sleeps for 4, 8, and 16 minutes between retries. Then, sleep time stays at 16 minutes until the binding export succeeds. Sets a new master sequence number for the master replica. This option is used only in unusual situations when a replica that you want to be the master has a master sequence number that is lower than (or equal to) another master sequence number in the system. When the master detects that its master sequence number is lower than another one in the system, it marks itself as a duplicate master and its process exits. Each time you start the mas- ter replica, it will notice that it has been deemed a duplicate master, and its process will again exit. Use this option to assign a new master sequence number to the replica you want to be master. The new sequence number should be one digit higher than the highest master sequence number in the system. (Use the dcecp registry show -replica command for each replica to find the highest master sequence number.) The checkpoint interval for the master registry database. This is the interval in seconds at which the master will read its database to disk. The default is one hour. Marks all slave replicas for initialization during the master restart. Use this option only to recover from a catastrophic failure of the master security server (for example, if the database is corrupted and then restored from a backup tape). Disables audit filtering and enables full (unfiltered) auditing. By default secd turns audit filtering on. Runs in verbose mode. All options start the Security Server on the local node. DESCRIPTION
The secd daemon is the Security Server. It manages all access to the registry database. You must have root privileges to invoke the secd. The Security Server can be replicated, so that several copies of the registry database exist on a network, each managed by a secd process. Only one Security Server, the master replica, can perform database update operations (such as adding an account). Other servers, the slave replicas, can perform only lookup operations (such as validating a login attempt). A DCE Host daemon (dced) must be running on the local node when secd is started. Typically, dced and secd are started at boot time. The secd server places itself in the background when it is ready to service requests. Locksmith Mode The secd -locksmith option starts secd in locksmith mode. The -locksmith option can be used only with the master replica. In locksmith mode, the principal name you specify to secd with pname becomes the locksmith principal. As the locksmith principal, you can repair mali- cious or accidental changes that prevent you from logging in with full registry access privileges. If no account exists for pname, secd establishes one and prompts you for the account's password. (Use this password when you log in to the account as the locksmith principal.) If an account for pname exists, secd changes the account and policy information as described in the tables titled "Locksmith Account Changes Made by the Security Server" and "Registry Policy Changes Made by the Security Server." These changes ensure that even if account or registry policy was tampered with, you will now be able to log in to the locksmith account. In locksmith mode, all principals with valid accounts can log in and operate on the registry with normal access checking. The locksmith principal, however, is granted special access to the registry: no access checking is performed for the authenticated locksmith principal. This means that, as the locksmith principal, you can operate on the registry with full access. +--------------------------------------------------------+---------------------------------------------------+ |If the Security Server finds | It changes | +--------------------------------------------------------+---------------------------------------------------+ |Password-Valid flag is set to no | Password-Valid flag to yes | +--------------------------------------------------------+---------------------------------------------------+ |Account Expiration date is set to less than the current | Account Expiration date to the current time plus | |time plus one hour | one hour | +--------------------------------------------------------+---------------------------------------------------+ |Client flag is set to no | Client flag to yes | +--------------------------------------------------------+---------------------------------------------------+ |Account-Valid flag is set to no | Account-Valid flag to yes | +--------------------------------------------------------+---------------------------------------------------+ |Good Since date is set to greater than the current time | Good Since date to the current time | +--------------------------------------------------------+---------------------------------------------------+ |Password Expiration date is set to less than current | Password Expiration date to the current time plus | |time plus one hour | one hour | +--------------------------------------------------------+---------------------------------------------------+ +--------------------------------------------------+---------------------------------------------------+ |If the Security Server finds | It changes | +--------------------------------------------------+---------------------------------------------------+ |Account Lifespan is set to less than the differ- | Account Lifespan to the current time plus one | |ence between the locksmith account creation date | hour minus the locksmith account creation date | |and the current time plus one hour | | +--------------------------------------------------+---------------------------------------------------+ |Password Expiration date is set to greater than | Password Expiration date to the current time plus | |the time the password was last changed but less | one hour | |than the current time plus one hour | | +--------------------------------------------------+---------------------------------------------------+ Use the -lockpw option if the locksmith account exists but you do not know its password. This option causes secd to prompt for a new lock- smith password and replace the existing password with the one entered. Use the -remote option to allow the locksmith principal to log in from a remote machine. The secd program normally runs in the background. When you start secd in locksmith mode, it runs in the foreground so that you can answer prompts. EXAMPLES
All of the commands shown in the following examples must be run by root: Start a Security Server after you create the database with sec_create_db. $ dcelocal/bin/secd Restart an existing replica (master or slave). $ dcelocal/bin/secd Start the Security Server in lock- smith mode and allow the master_admin principal to log in on a remote machine. $ dcelocal/bin/secd -locksmith master_admin -remote secd(1m)
All times are GMT -4. The time now is 09:30 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy