11-29-2016
As rbatte1 alluded to - there are several types of logins - and you can restrict those types with the passwd command. And display them.
The passwd -S abc
will show you what the authentication system sees.
This User Gave Thanks to jim mcnamara For This Post:
10 More Discussions You Might Find Interesting
1. Solaris
When trying to change the password with the command "passwd" it returns that the user does not exist.
passwd <USER>
passwd: changing password for <USER>
passwd: <USER> does not exist
This is a Solaris 2.5.1 system. (7 Replies)
Discussion started by: ryamada
7 Replies
2. UNIX for Dummies Questions & Answers
All,
I am unable to change a password for the user called : poller
I am logged in as root When I do the following command
passwd poller
New Password:
Permission denied
Whe i enter the new password, it gives the above error.
When i log in as poller and then execute the command, then... (2 Replies)
Discussion started by: rahulrathod
2 Replies
3. Solaris
passwd only changes the password but i need to change the user name
tnx (5 Replies)
Discussion started by: umen
5 Replies
4. Solaris
In Sun Solaris we have given oracle user for dba that was shared among 5 member. Everytime oracle user password was changed themselves.
We want to trace who has changed the password. It is possible.
Regards
P Manivannan (0 Replies)
Discussion started by: pmsuper
0 Replies
5. UNIX for Dummies Questions & Answers
If we set up FTP only users who can't log in with a shell (/bin/false type of shell) and set them up with a default password, like abc123 or something not secure, is there any way for the user to change their own password once they get on the system? (2 Replies)
Discussion started by: LordJezo
2 Replies
6. Red Hat
RHEL 5 update 4. How to force a user to change the password at his next logon.
Thanks in advance. (8 Replies)
Discussion started by: uxadmin007
8 Replies
7. Solaris
I am getting the following error message "passwd: User unknown: username" Permission denied error message when trying to change the password for that given user account.
The user account is within the /etc/passwd file and I can also su to the account without any problems. This is sever is not... (11 Replies)
Discussion started by: eckmanb
11 Replies
8. Red Hat
Hi expert,
after creating users on Redhat, i wantn to change their password with something that easy to remember and the way we use. For example
#passwd username
hello$123
it don't allow me. It may has something to do /etc/pam.d/filesXXXX there which i don't know to change to allow root... (1 Reply)
Discussion started by: lamoul
1 Replies
9. HP-UX
Dears,
I have a problem When I tried to change password for user in HP unix it gives me this error any one can help to solve this ?
bmcaddm@nmssrv05: /home/bmcaddm # passwd
Changing password for bmcaddm
Old password:
New password:
Re-enter new password:
vxfs: msgcnt 810034 mesg 001: V-2-1:... (8 Replies)
Discussion started by: ahmednoaman
8 Replies
10. Shell Programming and Scripting
Hi Experts,
I am trying to write a shell script to change DB user password.
Requirement:
login to multiple DBs as multiple users and change their respective passwords.
ex :users:T1,T2,T3
DB:X,Y,Z
scenario:
login as T1 to X,Y,Z
change password
login as T2 to X,Y,Z
change password
... (2 Replies)
Discussion started by: navsan420
2 Replies
LEARN ABOUT CENTOS
logins
logins(1M) System Administration Commands logins(1M)
NAME
logins - list user and system login information
SYNOPSIS
/usr/bin/logins [-admopstux] [-g group...] [-l login_name...]
DESCRIPTION
This command displays information on user and system logins known to the system. Contents of the output is controlled by the command
options and can include the following: user or system login, user id number, passwd account field value (user name or other information),
primary group name, primary group id, multiple group names, multiple group ids, home directory, login shell, and four password aging param-
eters. The default information is the following: login id, user id, primary group name, primary group id and the account field value. Out-
put is sorted by user id, system logins, followed by user logins.
OPTIONS
Options may be used together. If so, any login that matches any criteria are displayed.
The following options are supported:
-a Add two password expiration fields to the display. The fields show how many days a password can remain unused before it
automatically becomes inactive, and the date that the password expires.
-d Selects logins with duplicate uids.
-g group Selects all users belonging to group, sorted by login. Multiple groups can be specified as a comma-separated list. When
the -l and -g options are combined, a user is only listed once, even if the user belongs to more than one of the selected
groups.
-l login_name...Selects the requested login. Multiple logins can be specified as a comma-separated list. Depending on the nameservice
lookup types set in /etc/nsswitch.conf, the information can come from the /etc/passwd and /etc/shadow files and other
nameservices. When the -l and -g options are combined, a user is only listed once, even if the user belongs to more than
one of the selected groups.
-m Displays multiple group membership information.
-o Formats output into one line of colon-separated fields.
-p Selects logins with no passwords.
-s Selects all system logins.
-t Sorts output by login instead of by uid.
-u Selects all user logins.
-x Prints an extended set of information about each selected user. The extended information includes home directory, login
shell and password aging information, each displayed on a separate line. The password information consists of password
status (PS for password, NP for no password or LK for locked). If the login is passworded, status is followed by the date
the password was last changed, the number of days required between changes, and the number of days allowed before a change
is required. The password aging information shows the time interval that the user receives a password expiration warning
message (when logging on) before the password expires.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
SEE ALSO
attributes(5)
SunOS 5.10 5 Jul 1990 logins(1M)