Sponsored Content
Operating Systems BSD comparable command in OpenBSD for linux's "passwd -l (name)" Post 40098 by xyyz on Tuesday 9th of September 2003 06:34:39 AM
Old 09-09-2003
comparable command in OpenBSD for linux's "passwd -l (name)"

i'm trying to get a samba server up and running.

however, there is no argument in OpenBSD's "passwd" command that i know of that will allow the following:

Code:
-l     This option is used to lock the  specified  account
	and  it  is  available to root only. The locking is
	performed by rendering the encrypted password  into
	an  invalid  string  (by prefixing  the encrypted string 
                with an !).

 

2 More Discussions You Might Find Interesting

1. 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

2. 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
MKPASSWD(1)							 Debian GNU/Linux						       MKPASSWD(1)

NAME
mkpasswd - Overfeatured front end to crypt(3) SYNOPSIS
mkpasswd PASSWORD SALT DESCRIPTION
mkpasswd encrypts the given password with the crypt(3) libc function using the given salt. OPTIONS
-S, --salt=STRING Use the STRING as salt. It must not contain prefixes such as $1$. -R, --rounds=NUMBER Use NUMBER rounds. This argument is ignored if the method chosen does not support variable rounds. For the OpenBSD Blowfish method this is the logarithm of the number of rounds. -m, --method=TYPE Compute the password using the TYPE method. If TYPE is help then the available methods are printed. -5 Like --method=md5. -P, --password-fd=NUM Read the password from file descriptor NUM instead of using getpass(3). If the file descriptor is not connected to a tty then no other message than the hashed password is printed on stdout. -s, --stdin Like --password-fd=0. ENVIRONMENT
MKPASSWD_OPTIONS A list of options which will be evalued before the ones specified on the command line. BUGS
If the --stdin option is used, passwords containing some control characters may not be read correctly. This programs suffers of a bad case of featuritis. SEE ALSO
passwd(1), passwd(5), crypt(3), getpass(3) AUTHOR
mkpasswd and this man page were written by Marco d'Itri <md@linux.it> and are licensed under the terms of the GNU General Public License, version 2 or higher. Marco d'Itri 21 March 2008 MKPASSWD(1)
All times are GMT -4. The time now is 11:32 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy