Timeline for Faillog - unsuccessful login count in Motd
Current License: CC BY-SA 3.0
9 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jul 22, 2014 at 17:33 | answer | added | brwtx | timeline score: 1 | |
| Jul 22, 2014 at 15:17 | comment | added | Kiksy | Maybe I'm not understanding you. How can I trigger the script to be run as root? in my /etc/profile file? | |
| Jul 22, 2014 at 15:14 | comment | added | Valentin Bajrami | Seems you don't understand what I'm trying to explain. You first need to be root then grant read permissions to a particular user for example to kiksy. You don't need to modify the script. It will be able to read the file. | |
| Jul 22, 2014 at 15:07 | comment | added | Kiksy | Tried running it as sudo, as I can't run it as root as the user won't know (or be allowed) the root password. Updated question. | |
| Jul 22, 2014 at 15:06 | history | edited | Kiksy | CC BY-SA 3.0 | added 418 characters in body |
| Jul 22, 2014 at 14:45 | comment | added | Valentin Bajrami | setfacl should be run as root user. 'whoami' is not as whoami and you should not use it there. Instead use a real username you want to grant read privileges to that file. | |
| Jul 22, 2014 at 14:27 | comment | added | Kiksy | Adding setfacl -m u:'whoami':rx /var/log/faillog gives me a setfacl: /var/log/faillog: Operation not permitted | |
| Jul 22, 2014 at 12:02 | comment | added | Valentin Bajrami | Seeing the message permission denied I think you can setfacl -m u:username:r /var/log/faillog to grant read access to the particular user. | |
| Jul 22, 2014 at 11:57 | history | asked | Kiksy | CC BY-SA 3.0 |