[Pkg-shadow-devel] Whether we can put this lock files in the /var/run directory

liuxueping liuxueping1 at huawei.com
Mon Apr 25 06:16:46 UTC 2016


Hello:

     When execute useradd or chage command,it will create some lock files in /etc directory,for example passwd.lock.If system reboot suddenly when execute useradd command,these lock files will been left behind /etc directory after the restart of the system,and it will faild if we execute useradd command and get the error "cannot lock /etc/passwd; try again later.".we need ro manually remove this lock files. Whether we can put this lock files in the /var/run directory?And this lock files are not in the system after the system reboot.




More information about the Pkg-shadow-devel mailing list