Find the answer to your Linux question:
Results 1 to 5 of 5
I just set up a Linux server for an intro linux course that allows 30 students to login via telnet. I received a complaint when all the students tried to ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2003
    Posts
    3

    Multiple telnet connections changing their passwd.


    I just set up a Linux server for an intro linux course that allows 30 students to login via telnet. I received a complaint when all the students tried to change their password at the same time. I figured this is because the passwd file could not be updated by more than one person (at the same time). Is this true? or is there a way everyone could change their password at the same time?

    Thanks..

  2. #2
    Linux Engineer
    Join Date
    Jan 2003
    Location
    Lebanon, pa
    Posts
    994
    passwd doesn't actually update shadow or passwd. It creates a copy of it called nshadow and npasswd with the changes then renames them to shadow/passwd. Anyway it will return 5 if it cannot get a lock on the passwd or shadow file. The actual error in your logs should be someting like "can't lock password file" or "cant lock tcfs key db".

  3. #3
    Linux Engineer
    Join Date
    Jan 2003
    Location
    Lebanon, pa
    Posts
    994
    I also suggest you use ssh instead of telnet so passwords are not sent in clear text.

  4. #4
    Just Joined!
    Join Date
    Sep 2003
    Posts
    3
    I wanted to use ssh but the the instructor wants telnet. There are no security issues with this server because thats all it does... I reghost it every term. I didn't see the errors "can't lock password file" or "cant lock tcfs key db" in my log, the instructor just wanted to know if all the students can change the password at the same time instead of going user by user, one at a time.

  5. #5
    Linux Engineer
    Join Date
    Jan 2003
    Location
    Lebanon, pa
    Posts
    994
    Everyone cannot change their pass at the sametime since only 1 process can have a lock on the files. You don't need go 1 by 1 since the actual password change is very quick but yes I would see a problem with having 30 users all change their pass at once.

Posting Permissions

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