Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

is there any way i can change root password of linux

is there any way i can change root password of linux every 15 or 7 days via cronjob or any script which i can run.
or if the root password is changed it sent out email with new password
how i can do this?
Linux has policies, much like GPO's in Windows, the following article should help.

https://www.ostechnix.com/how-to-set-pas...-in-linux/
i meant if someone changes the root password it sends out that new password via email.
i want to run some kind of script in background so that i can have some access
hope you understand
Or
a cron job after every 7 days the password gets checked if its changed then it automatically changes to my described password
(Sep 20, 2019 05:08 AM)Debby Ryan Wrote:  i meant if someone changes the root password it sends out that new password via email.
i want to run some kind of script in background so that i can have some access
hope you understand
Or
a cron job after every 7 days the password gets checked if its changed then it automatically changes to my described password

why not just add a second root account??? it will save you time and you will always have root.
you mean wheel group account in cent os?
You just need sudoer account and you can invoke commands as root without knowing root's password. Only problem is that someone can change both root's and your password and then you lose access. Providing more context as to why you need to to this might allow us to give you solution you are no even considering yet.

Thanks guy i found a way
Resolved


Possibly Related Threads...
Thread / Author Replies Views Last Post
by indiatvusaDec 30, 2024 06:56 PM 1 116 Dec 30, 2024 06:56 PM
Last Post: DramaKing
by nicodemoSep 28, 2019 03:47 AM 1 138 Sep 28, 2019 03:47 AM
Last Post: 4ground_daemon
by Oribasan1Oct 17, 2018 01:18 PM 4 176 Oct 17, 2018 01:18 PM
Last Post: SysAdmin