由于Linux可以设置密码有效时间,所以到期会过期。
1、处理办法:
方法一:登录时会提示你用户密码过期,先输入当前密码,再输入跟当前密码不相似的新密码,设置成功后就正常登录了。
方法二:在管理节点处重置密码。
2、设置密码永不过期
chage -l tmn(tmn是用户名)
查看用户tmn的设置信息
chage -M 99999 tmn
设置tmn用户的面密码用不过期
default_pre .= 'list_404.htm'; break; default: $pre .= $default_pre .= theme_mode_pre(); break; } if ($config['theme']) { $conffile = APP_PATH . 'view/template/' . $config['theme'] . '/conf.json'; $json = is_file($conffile) ? xn_json_decode(file_get_contents($conffile)) : array(); } !empty($json['installed']) and $path_file = APP_PATH . 'view/template/' . $config['theme'] . '/htm/' . ($id ? $id . '_' : '') . $pre; (empty($path_file) || !is_file($path_file)) and $path_file = APP_PATH . 'view/template/' . $config['theme'] . '/htm/' . $pre; if (!empty($config['theme_child']) && is_array($config['theme_child'])) { foreach ($config['theme_child'] as $theme) { if (empty($theme) || is_array($theme)) continue; $path_file = APP_PATH . 'view/template/' . $theme . '/htm/' . ($id ? $id . '_' : '') . $pre; !is_file($path_file) and $path_file = APP_PATH . 'view/template/' . $theme . '/htm/' . $pre; } } !is_file($path_file) and $path_file = APP_PATH . ($dir ? 'plugin/' . $dir . '/view/htm/' : 'view/htm/') . $default_pre; return $path_file; } function theme_mode_pre($type = 0) { global $config; $mode = $config['setting']['website_mode']; $pre = ''; if (1 == $mode) { $pre .= 2 == $type ? 'portal_category.htm' : 'portal.htm'; } elseif (2 == $mode) { $pre .= 2 == $type ? 'flat_category.htm' : 'flat.htm'; } else { $pre .= 2 == $type ? 'index_category.htm' : 'index.htm'; } return $pre; } ?>
由于Linux可以设置密码有效时间,所以到期会过期。
1、处理办法:
方法一:登录时会提示你用户密码过期,先输入当前密码,再输入跟当前密码不相似的新密码,设置成功后就正常登录了。
方法二:在管理节点处重置密码。
2、设置密码永不过期
chage -l tmn(tmn是用户名)
查看用户tmn的设置信息
chage -M 99999 tmn
设置tmn用户的面密码用不过期
发布评论