Find the answer to your Linux question:
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 ...
  1. #1
    Just 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

  2. #2
    Trusted Penguin elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    2,301
    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.

  3. #3
    Just Joined!
    Join Date
    Jan 2010
    Posts
    2
    Quote Originally Posted by elija View Post
    Hmmm.... Asking for help breaking the law... Well good luck with that

    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

  4. #4
    Linux 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?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...