《Linux系统调用:getspnam,getspent,setspent,endspent》-CSDN博客

网站介绍:一、介绍getspnam(),getspent(),setspent(),endspent()组合起来使用按顺序扫描影子文件(/etc/shadow)中的所有的各项记录#include <shadow.h>// 指定一个用户名,返回指定用户的信息struct spwd *getspnam(const char *name);// 调用会自动打开影子文件,不需要执...