Find the answer to your Linux question:
Results 1 to 5 of 5
Can we use CRON to create new user accounts?...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Aug 2010
    Posts
    6

    I have a question


    Can we use CRON to create new user accounts?

  2. #2
    Just Joined!
    Join Date
    Jul 2010
    Posts
    53
    root can run cron jobs - so i'd guess the answer is yes. useradd

    seems odd that creating user accounts would be a repeating job, guess you're getting a list of new users from another system periodically...

  3. #3
    Linux Engineer Kloschüssel's Avatar
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    773
    Just make sure to not run useradd on existing users and make sure that one can't inject a user into your system. A system is only "safe" as long as noone is able to log in. Once someone is logged in, security is compromised because the user can potentially jailbreak. I would regard such a "import" as a serious security thread to get rid of.

  4. #4
    Just Joined!
    Join Date
    Jul 2006
    Posts
    6
    But why use cron instead of just casting a normal command or just using other auto-scripts? Can you tell us why?

  5. #5
    Just Joined!
    Join Date
    Aug 2010
    Posts
    6
    Just curious because my teacher asked me and I wasn't sure

Posting Permissions

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