01-16-2006
UNIX chauthtok(): illegal module option
Hi all,
I just implemented PAM on my Solris 8/9 boxes and one of the entries I have got in the /etc/pam.conf is as followed,
other password required pam_unix.so nullok remember=7 md5 shadow use_authtok
However, once I set this and the following meesages appears in /var/adm/messages
Jan 16 18:24:43 sunntp01 passwd[7329]: [ID 771494 user.error] UNIX chauthtok(): illegal module option nullok
Jan 16 18:24:43 sunntp01 passwd[7329]: [ID 771494 user.error] UNIX chauthtok(): illegal module option remember=7
Jan 16 18:24:43 sunntp01 passwd[7329]: [ID 771494 user.error] UNIX chauthtok(): illegal module option md5
Jan 16 18:24:43 sunntp01 passwd[7329]: [ID 771494 user.error] UNIX chauthtok(): illegal module option shadow
Jan 16 18:24:43 sunntp01 passwd[7329]: [ID 771494 user.error] UNIX chauthtok(): illegal module option use_authtok
Do you know what went wrong in my system? Thanks in advance.
6 More Discussions You Might Find Interesting
1. Solaris
when i am executing
setfacl -Rm u:ggoyal2:rwx,m:rwx dir
i am getting error
bash-3.00# setfacl -Rm u:ggoyal2:rwx,m:rwx dir
setfacl: illegal option -- R
usage:
setfacl -f aclfile file ...
setfacl -d acl_entries file ...
setfacl -m acl_entries file ...
setfacl -s acl_entries file... (2 Replies)
Discussion started by: manoj_dahiya22
2 Replies
2. Solaris
Hi All,
Is it possible to run date -d option in Solaris?
Do we have a work around so that -d option will be recognized
by solaris as it is recognized by linux.
I need this since i am using this in scripting and it works in Linux box. my problem is
it doesn't work in solaris box.
... (6 Replies)
Discussion started by: linuxgeek
6 Replies
3. Shell Programming and Scripting
hello. i have a script, but in solaris i get this message sed: illegal option -- i
whats wrong? With Ubuntu there is no problem. Thanks for help.
#!/bin/bash
for file in $(find /directory..../Test/*.txt -type f)
do
head -n 1 $file | egrep '^#!'
if
then
sed -i '2i\Headertext'... (3 Replies)
Discussion started by: fertchen
3 Replies
4. Shell Programming and Scripting
I'm trying to get the size of each file, but when I try to use
stat -c %s <file>
I get the message
stat: illegal option -- c
Also, the man page for stat shows readlink,stat. It doesn't seem to match the man pages I've seen online.
what is going on here? (6 Replies)
Discussion started by: nextyoyoma
6 Replies
5. Shell Programming and Scripting
For some reason read -e isn't working in my script. I need a directory as input from a user and I'd like for them to be able to use tab complete which is why I'm using -e. When the script is run, I get:
read: line 6: illegal option -e
In order to just figure out what is going on with the -e... (4 Replies)
Discussion started by: orangeSunshine
4 Replies
6. HP-UX
current date command runs well
awk -v t="$(date +%Y-%m-%d)" -F "'" '$1 < t' myname.dat
subtract 30 days fails
awk -v t="$(date --date="-30days" +%Y-%m-%d)" -F "'" '$1 < t' myname.dat
awk command in hp unix subtract 30 days automatically from current date without date illegal option error... (20 Replies)
Discussion started by: kmarcus
20 Replies
LEARN ABOUT LINUX
pam_debug
PAM_DEBUG(8) Linux-PAM Manual PAM_DEBUG(8)
NAME
pam_debug - PAM module to debug the PAM stack
SYNOPSIS
pam_debug.so [auth=value] [cred=value] [acct=value] [prechauthtok=value] [chauthtok=value] [auth=value] [open_session=value]
[close_session=value]
DESCRIPTION
The pam_debug PAM module is intended as a debugging aide for determining how the PAM stack is operating. This module returns what its
module arguments tell it to return.
OPTIONS
auth=value
The pam_sm_authenticate(3) function will return value.
cred=value
The pam_sm_setcred(3) function will return value.
acct=value
The pam_sm_acct_mgmt(3) function will return value.
prechauthtok=value
The pam_sm_chauthtok(3) function will return value if the PAM_PRELIM_CHECK flag is set.
chauthtok=value
The pam_sm_chauthtok(3) function will return value if the PAM_PRELIM_CHECK flag is not set.
open_session=value
The pam_sm_open_session(3) function will return value.
close_session=value
The pam_sm_close_session(3) function will return value.
Where value can be one of: success, open_err, symbol_err, service_err, system_err, buf_err, perm_denied, auth_err, cred_insufficient,
authinfo_unavail, user_unknown, maxtries, new_authtok_reqd, acct_expired, session_err, cred_unavail, cred_expired, cred_err,
no_module_data, conv_err, authtok_err, authtok_recover_err, authtok_lock_busy, authtok_disable_aging, try_again, ignore, abort,
authtok_expired, module_unknown, bad_item, conv_again, incomplete.
MODULE TYPES PROVIDED
All module types (auth, account, password and session) are provided.
RETURN VALUES
PAM_SUCCESS
Default return code if no other value was specified, else specified return value.
EXAMPLES
auth requisite pam_permit.so
auth [success=2 default=ok] pam_debug.so auth=perm_denied cred=success
auth [default=reset] pam_debug.so auth=success cred=perm_denied
auth [success=done default=die] pam_debug.so
auth optional pam_debug.so auth=perm_denied cred=perm_denied
auth sufficient pam_debug.so auth=success cred=success
SEE ALSO
pam.conf(5), pam.d(5), pam(7)
AUTHOR
pam_debug was written by Andrew G. Morgan <morgan@kernel.org>.
Linux-PAM Manual 06/04/2011 PAM_DEBUG(8)