Sponsored Content
Top Forums UNIX for Dummies Questions & Answers list of active and locked OS accounts Post 88286 by zazzybob on Wednesday 2nd of November 2005 04:22:20 PM
Old 11-02-2005
Ask your sys admin to install Sudo (if it isn't already installed) - then give you access to the /usr/bin/logins utility.

Cheers
ZB
 

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Creating User Accounts from a list in file

I have a file that contains a list of names. I need a loop that creates user accounts to all the names in the list where username = names in file password = username Another question: how can i validate that a particular var is of 6 characters length I need an if statement that will... (8 Replies)
Discussion started by: Laila Saif
8 Replies

2. Solaris

need script for locked and unused user accounts in /export/home directory

Hi all, i have to need one script: 1. it will capture the unused user accounts in /export/home directory. 2. it will capture the locked user accounts in /export/home directory. Note: locked accounts will show in /etc/passwd like /bin/false --> (instead of ksh it will show false) the... (1 Reply)
Discussion started by: krishna176
1 Replies

3. UNIX for Advanced & Expert Users

How to list locked file in unix?

Hi, I want to list out all files which are lock by some process. ex- ~/critical I want to list all files in critical directory which has been locked. I need this very badly. Any suggestion highly appriciated. Regards, Ashok (1 Reply)
Discussion started by: ashokd001
1 Replies

4. UNIX for Dummies Questions & Answers

Difference between : Locked User Account & Disabled User Accounts in Linux ?

Thanks AVKlinux (3 Replies)
Discussion started by: avklinux
3 Replies

5. HP-UX

how to list locked users in hp-ux?

Actually.I have 2 questions to ask. 1. how to list locked account in hp-ux? 2.how to list locked account in linux(redhat)? I can use the command "passwd -S -username" to list a account who were locked . who knows how to list all locked accounts with one command. Thanks!! (5 Replies)
Discussion started by: robbiezr
5 Replies

6. UNIX for Dummies Questions & Answers

System list of all UNIX login accounts

What is the command to list all UNIX system login accounts? What is the command to list all system password parameters for UNIX(minimum length, complexity,age, invalid lockout attempts, expiration date , user inactivity lockout) (1 Reply)
Discussion started by: ma466
1 Replies

7. UNIX for Dummies Questions & Answers

How do i list all locked account in linux?

Hi How do i list all locked account in my linux distributiion I have tried passwd -S -a but it seems to not working . My distribution details. # lsb_release -a LSB Version: :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch Distributor ID: OracleVMserver... (3 Replies)
Discussion started by: pinga123
3 Replies

8. Shell Programming and Scripting

Finding AIX user accounts expired or locked

// AIX 6.1 In need of finding which AIX user accounts will be expired and are locked. I have placed the following parameters under /etc/security/user... (1 Reply)
Discussion started by: Daniel Gate
1 Replies
dpkg-divert(8)							  dpkg utilities						    dpkg-divert(8)

NAME
dpkg-divert - override a package's version of a file SYNOPSIS
dpkg-divert [option...] command DESCRIPTION
dpkg-divert is the utility used to set up and update the list of diversions. File diversions are a way of forcing dpkg(1) not to install a file into its location, but to a diverted location. Diversions can be used through the Debian package scripts to move a file away when it causes a conflict. System administrators can also use it to override some package's configuration file, or whenever some files (which aren't marked as 'conffiles') need to be preserved by dpkg, when installing a newer version of a package which contains those files. COMMANDS
[--add] file Add a diversion for file. --remove file Remove a diversion for file. --list glob-pattern List diversions matching glob-pattern. --listpackage file Print the name of the package that diverts file. Prints LOCAL if file is locally diverted and nothing if file is not diverted. --truename file Print the real name for a diverted file. OPTIONS
--admindir directory Set the dpkg data directory to directory (default: /var/lib/dpkg). --divert divert-to divert-to is the location where the versions of file, as provided by other packages, will be diverted. --local Specifies that all packages' versions of this file are diverted. This means, that there are no exceptions, and whatever package is installed, the file is diverted. This can be used by an admin to install a locally modified version. --package package package is the name of a package whose copy of file will not be diverted. i.e. file will be diverted for all packages except pack- age. --quiet Quiet mode, i.e. no verbose output. --rename Actually move the file aside (or back). dpkg-divert will abort operation in case the destination file already exists. --test Test mode, i.e. don't actually perform any changes, just demonstrate. -?, --help Show the usage message and exit. --version Show the version and exit. NOTES
When adding, default is --local and --divert original.distrib. When removing, --package or --local and --divert must match if specified. Directories can't be diverted with dpkg-divert. Care should be taken when diverting shared libraries, ldconfig(8) creates a symbolic link based on the DT_SONAME field embedded in the library. Because ldconfig doesn't honour diverts (only dpkg does), the symlink may end up pointing at the diverted library, if a diverted library has the same SONAME as the undiverted one. EXAMPLES
To divert all copies of a /usr/bin/example to /usr/bin/example.foo, i.e. directs all packages providing /usr/bin/example to install it as /usr/bin/example.foo, performing the rename if required: dpkg-divert --divert /usr/bin/example.foo --rename /usr/bin/example To remove that diversion: dpkg-divert --rename --remove /usr/bin/example To divert any package trying to install /usr/bin/example to /usr/bin/example.foo, except your own wibble package: dpkg-divert --package wibble --divert /usr/bin/example.foo --rename /usr/bin/example To remove that diversion: dpkg-divert --package wibble --rename --remove /usr/bin/example ENVIRONMENT
DPKG_ADMINDIR If set and the --admindir option has not been specified, it will be used as the dpkg data directory. DPKG_MAINTSCRIPT_PACKAGE If set and the --local and --package options have not been specified, dpkg-divert will use it as the package name. FILES
/var/lib/dpkg/diversions File which contains the current list of diversions of the system. It is located in the dpkg administration directory, along with other files important to dpkg, such as status or available. Note: dpkg-divert preserves the old copy of this file, with extension -old, before replacing it with the new one. SEE ALSO
dpkg(1). Debian Project 2011-08-14 dpkg-divert(8)
All times are GMT -4. The time now is 12:54 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy