• Skip to main content

Uly.me

cloud engineer

  • Home
  • About
  • Archives

unlock

NetApp Unlock File

January 15, 2020

To get status of a file.

lock status -f "/vol/folder/path/filename.doc" -p cifs

lock status -f "/vol/folder/path/filename.doc" -p cifs

To unlock a file.

lock break -f "/vol/folder/path/filename.doc" -p cifs

lock break -f "/vol/folder/path/filename.doc" -p cifs

Filed Under: Cloud Tagged With: lock, netapp, status, unlock

Reset Pam_Tally2

May 25, 2018

To unlock a locked account, you need to run pam_tally2, which is a tool that keeps tracked of failed logins. Pam_tally2 is installed on most Linux systems. To unlock an account, just run the following commands:

pam_tally2 --user=ulysses --reset

pam_tally2 --user=ulysses --reset

Have the user login again. It should work.

Some systems might be using an older pam_tally. The command for that will be.

pam_tally --user=ulysses --reset=0

pam_tally --user=ulysses --reset=0

Filed Under: Linux Tagged With: pam_tally2, unlock

  • Home
  • About
  • Archives

Copyright © 2023