06-05-2008
Manually hacked the shadow file
fabtagon....thanks for your quick reply. I had to manually hack the shadow file to lock the user.
The user exists in passwd and shadwo file but am not sure why it gave me an error on passwd -l xxxx. It was kind of urgent but I took care of it the hard way. I still wonder why my command failed.
I appreciate your help and quick response.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi all,
How can I lock an User account temperarily? but this account should be accessable to other users through sudo?
quick help is highly appriciated
thanks
reddy (5 Replies)
Discussion started by: reddyb
5 Replies
2. UNIX for Dummies Questions & Answers
how can I lock my keyboard while I'm away from the computer without using lock command. What other commands gives me the option to lock keyboard device?
thanks (7 Replies)
Discussion started by: dianayun
7 Replies
3. UNIX for Advanced & Expert Users
Hi all,
I am using Sun Solaris 9 .In this system normal users unable to create files from the command line.I added these users in bin,adm and even root group i found them unable to create a file. (1 Reply)
Discussion started by: mallesh
1 Replies
4. Linux
Hi guys,
i encountered this error when i try to create a group. What is the problem here? I created a few groups weeks before this. I was recommended to reboot the machine, but i am not the owner of the machine, thus i would prefer to know the cause and any other solution other than rebooting the... (1 Reply)
Discussion started by: Daven81
1 Replies
5. Solaris
how can i lock a specific user to his home directory when he logs on to the computer with ftp?
thanx! (3 Replies)
Discussion started by: eliraza6
3 Replies
6. Solaris
Hi,
I created a Solaris package, but at the end of installation (on a Solaris 10 sparc) I get :
#pkgadd -d MyApp_version__SunOS_sparc.pkg
...
Installation of <MyAppName> was successful.
pkgadd: ERROR: ERROR: Unable to release package administration lock for
this system; try again later... (0 Replies)
Discussion started by: potro
0 Replies
7. Linux
Hi,
I am using Red Hat Enterprise Linux ES release 4 (Nahant Update 5). Here I have created one user with /sbin/nologin shll such that login is not possible only ftp is possible. But I want to do another thing that the user can not roam around after ftp.
I had tried one way.
in... (4 Replies)
Discussion started by: kallol
4 Replies
8. Red Hat
Hello all,
If anyone has time, I have a few questions:
How do I do the following in Linux. We are using Red Hat and Oracle Enterprise Linux, which is based on Red Hat too.
1. How to lock the account after a few (like 3) invalid password attempts?
2. How do you lock a screen after 30... (1 Reply)
Discussion started by: nstarz
1 Replies
9. UNIX for Advanced & Expert Users
Hi all,
I have to test some user priviliges. The goal is to be sure that an unauthorized user can't restart some modules (ssh, mysql etc...).
I'm trying to automate it with a shell script but in same cases I got the syslog broadcast message.
Is there any way to simply get a return code... (3 Replies)
Discussion started by: Dedalus
3 Replies
10. UNIX for Dummies Questions & Answers
Hello ,
I am creating a controlfile of database in linux and below is the error coming:
SQL> CREATE CONTROLFILE REUSE set DATABASE "newdbcln" RESETLOGS NOARCHIVELOG
2 MAXLOGFILES 5
3 MAXLOGMEMBERS 5
MAXDATAFILES 100
4 5 MAXINSTANCES 1
6 MAXLOGHISTORY... (2 Replies)
Discussion started by: admin_db
2 Replies
LEARN ABOUT NETBSD
passwd
PASSWD(1) BSD General Commands Manual PASSWD(1)
NAME
passwd -- modify a user's password
SYNOPSIS
passwd [user]
passwd [-d files | -l] [user]
passwd [-d nis | -y] [user]
passwd [-d krb5 | -k] [principal]
DESCRIPTION
passwd changes the user's password. First, the user is prompted for their current password. If the current password is correctly typed, a
new password is requested. The new password must be entered twice to avoid typing errors.
The new password should be at least six characters long and not purely alphabetic. Its total length must be less than _PASSWORD_LEN (cur-
rently 128 characters). Numbers, upper case letters and meta characters are encouraged.
All options may not be available on all systems.
-d database
This option specifies the password database that should be updated. The following databases are supported:
files This specifies that the password change should be applied to the local password file. When changing only the local password,
passwd uses pwd_mkdb(8) to update the password databases.
nis This specifies that the password change should be applied to the NIS password database. The rpc.yppasswdd(8) daemon should be
running on the master NIS server.
krb5 This specifies that the user's Kerberos 5 password should be changed. The host must be configured to use Kerberos. See
krb5.conf(5).
-l This is the equivalent of -d files.
-y This is the equivalent of -d nis.
-k This is the equivalent of -d krb5.
If a password database is not specified, passwd will change the password database as determined by the Pluggable Authentication Module (PAM)
library.
The type of cipher used to encrypt the password depends on the configuration in passwd.conf(5). It can be different for local and NIS pass-
words.
FILES
/etc/master.passwd The user database
/etc/passwd A Version 7 format password file
/etc/passwd.XXXXXX Temporary copy of the password file
SEE ALSO
chpass(1), login(1), pwhash(1), passwd(5), passwd.conf(5), pam(8), pwd_mkdb(8), vipw(8)
Robert Morris and Ken Thompson, UNIX password security.
HISTORY
A passwd command appeared in Version 6 AT&T UNIX.
BSD
February 25, 2005 BSD