home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / linux / 10135 < prev    next >
Encoding:
Internet Message Format  |  1992-09-08  |  3.0 KB

  1. Path: sparky!uunet!cs.utexas.edu!uwm.edu!ogicse!das-news.harvard.edu!cantaloupe.srv.cs.cmu.edu!crabapple.srv.cs.cmu.edu!andrew.cmu.edu!fl0p+
  2. From: fl0p+@andrew.cmu.edu (Frank T Lofaro)
  3. Newsgroups: comp.os.linux
  4. Subject: Bad limits, and a solution
  5. Message-ID: <8ef10nq00VpcESYEUq@andrew.cmu.edu>
  6. Date: 7 Sep 92 18:30:11 GMT
  7. Article-I.D.: andrew.8ef10nq00VpcESYEUq
  8. Organization: Sophomore, Math/Computer Science, Carnegie Mellon, Pittsburgh, PA
  9. Lines: 47
  10.  
  11.  
  12.     I see uid's are limited  to the range 0-65535. Also, negative uid's
  13. (like those used in some systems for nobody, etc.) are translated to
  14. 65536+uid. My guess is that an unsigned short is being used. I'd suggest
  15. that this be fixed as soon as possible, to a signed long. This will give
  16. us a full range and eliminate the negative uid problem.
  17.  
  18.     I have heard of a university that might be in for some problems (not
  19. CMU, yet :) because they might be running into a similar limit soon. To
  20. avoid anything like that happening with Linux, especially since it is
  21. used in some large installations (especially universities), it would be
  22. good to change this. Also, networked file systems might want to use uids
  23. >65535 to represent non-local network users. If something like this will
  24. break old binaries or source code, it would be much better to do it now
  25. (especially before Linux 1.0) before it gets really painful.
  26.  
  27.     Also, are userid's limited to 8 characters? 32 or 64 would be better.
  28.  
  29.     I also have trouble with hostname. Setting my hostname as pcxxxxx.pc
  30. (actually the xxxxx's are numbers, but I don't want to advertize my
  31. hostname to the net :) works, but pcxxxxx.pc.cc.cmu.edu, causes login to
  32. dump core in /dev and refuse to let me login! I had to boot off floppy
  33. to get control of my system again :( (I set it in /etc/rc). It seems the
  34. is a size limit on the hostname that is getting exceeded. Also, for
  35. TCP/IP, it was mentioned that it would be a good idea to put the
  36. hostname in /etc/utmp, I wholeheartedly agree with that. When I actually
  37. can be on the net, I'd like to have a record of who is logging (or
  38. hacking :) into my system, and from where.
  39.  
  40.     In any event, thanks for a great operating system. I hope the changes
  41. won't prove to be too hard. I just hope to spare us all big problems
  42. down the road. I think I could probably just go into the source/headers
  43. and change uid_t to an unsigned long, but that would probably break a
  44. lot of stuff. Also, something like this needs a consenus and to be made
  45. a standard in the Linux community.
  46.  
  47.     A better idea than just changing the uid_t to signed long might be to
  48. have old versions of syscalls that use unsigned short uids, and new
  49. syscalls for signed longs. (still uid_t should be changed to a signed
  50. long so that new porgrams would support the new features). Thus the only
  51. stuff that wouldn't work would be old binaries on a new system that uses
  52. uids<0 or >65535. The only time one would have to recompile is if they
  53. actually had to use the new capability. I believe this is something
  54. along the lines of the new readdir() syscall that supports the ext fs,
  55. but maintains backward compatibility.
  56.  
  57.     I hope this is helpful.
  58.