Results 1 to 4 of 4
Hello every body.
I am new to this forum becouse i just started using linux.I have a pc runing on Ubuntu 8.04 Ltc server without a user interface. I am ...
- 01-09-2010 #1Just Joined!
- Join Date
- Jan 2010
- Posts
- 2
Scripting help
Hello every body.
I am new to this forum becouse i just started using linux.I have a pc runing on Ubuntu 8.04 Ltc server without a user interface. I am a totally new in linux scripting.I want to write a script which runs everymonth for example at date 5 of each month. I want that the script does one of the following jobs(i dont know which is the best )
First job:
the basic idea is that if my boss fires me, after one month the script runs at the specified date and removes some personal files that i have in it.And if it is possible when the script runs it will ask for a password(i will call it security password),if i write the wright password the script does nothing.If the wrong password is writen for 3 times it removes the files.
If the above procedure cannot be made is it possible to make the script run every time i login?. So if i login in my server using putty for example and after a succesfull login the script runs and ask for the security password.If i write the correct pass it does nothing,if wrong for 3 times it deletes the files.
and if the above things are impossible
Second job:
Make a script that runs at date 5 of each month.When it runs it changes the root password into my security password.
If anyone can help me write one of this scripts i will be very grateful.
I think the second script is shorter and if anyone is willing to help me lets do the second script.
Thank u every one
- 01-09-2010 #2
Hmmm.... Asking for help breaking the law... Well good luck with that
If we hit that bullseye, the rest of the dominoes will fall like a house of cards. Checkmate! (Zapp Brannigan)
My new blog. It's probably not as good as I think it is.
- 01-09-2010 #3Just Joined!
- Join Date
- Jan 2010
- Posts
- 2
U missunderstood me.I am not doing this becouse i am afraid my boss fires me.It was just an example to explain better the idea of the script.In fact i am the boss of the server and the administrator.But i was asking for help becouse i have just fired one of my employers.He had acces to the server.And i am afraid he can connect to my server and do something wrong.
Anyway thank u for answering
- 01-09-2010 #4Linux Guru
- Join Date
- Oct 2007
- Location
- Tucson AZ
- Posts
- 1,946
You could delete the user of the person fired or if he used the same administrator (root) password, change the password. Maybe I'm not understanding your problem?


Reply With Quote
