Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: giles@fig.nacto.lkg.dec.com (Leslie Giles)
Subject: Re: bad.DECAthena (was Re: DECAthena)
Date: 1995/05/26	[thread overview]
Message-ID: <3q4mqs$3v7@nntpd.lkg.dec.com> (raw)
In-Reply-To: 3pqur6$999@news.iastate.edu


In article <3pqur6$999@news.iastate.edu>, john@iastate.edu (John Hascall) writes:

Thanks for your responses - I still have some questions/clarifications.
I'm glad that somebody is taking the time to discuss these Athena issues
with me and I am very interested in continuing this discussion.

|> Leslie Giles <giles@fig.nacto.lkg.dec.com> wrote:
|> }|> >3) ~user does not work, e.g. I can't copy a file from Brendan's
|> }|> >home directory with "cp ~hannigan/file ."
|> }|> 
|> }|> Works in our environment just fine.  At any rate, what's the big deal?
|> }|> Afraid to type a few characters?
|> }
|> }So how do I find out where Brendan's home directory is?  In any case it
|> }sounds as though you're doing something different in your environment.
|> 
|>       hesinfo hannigan filsys
|> 
|>       (as I mentioned in my post which you apparently ignored,
|>       we buried this under the covers in tcsh)

I also found out about "hesinfo hannigan passwd" recently.  It would be
possible to modify shells to get this to work, assuming you have the
source for the shells (probably means moving everybody away from csh to
tcsh or ksh - not necessarily a bad thing) - but from a system perspective
it would be even nicer to modify the kernel to get the appropriate entry
points to work properly.  Then all shells that support ~ would work.
  
|> }|> >5) su and rlogin don't work.
|> }|> 
|> }|> su works just fine for us.  rlogin is a bad idea whose time is long
|> }|> past anyway.
|> }
|> }Once again you must be doing something different from us - Hesiod does
|> }not distribute the passwd file information and so su does not work.
|> 
|>     Hesiod does distribute the passwd file information (less the
|>     encrypted password, for that you use Kerberos)

I still don't understand.  I try to 'su' to a user-id for somebody who
is not logged on to my system and I get "Unknown login".  I try to 'su'
to a user-id for somebody who is logged on to my system and it works.
To me this implies that the passwd information doesn't exist in the place
that su expects it until that person is actually logged in.

|> }|> >6) Normal unix mail and related enhancements (e.g. xbiff and the emacs
|> }|> >mail scripts) do not work.
|> }|> 
|> }|> Sounds like a feature to me.  MH is the only mail system for *serious*
|> }|> mail readers.
|> }
|> }This sounds suspiciously like "emacs is the only editor for *serious*
|> }programmers"...
|> 
|>     Normal Unix mail could be made to work, so far we've not had
|>     the demand to justify doing it -- besides going with a "POP"
|>     mail solution lets you integrate with MACs and PCs easier.

Good point.  Standard unix mail (even mh) really sucks when you compare it
to other mail systems out there.  You can't even add attachments to unix
mails!  Unix mail really needs a total overhaul and maybe using a POP
server is the start.

|> }|> >7) rsh doesn't work.
|> }|> 
|> }|> Works for us.
|> }
|> }Once again you're doing something different with your passwd information.
|> 
|>     You may be disagreeing on the defintion of "works", rsh does
|>     not acquire tickets on your behalf on the remote end -- it could
|>     with either a yucky hack or if you had Kerberos V.

xswscm-126-% rsh fescue echo hello world
Login incorrect.
(rsh):Kerberos rcmd failed: rcmd protocol failure.
trying normal rsh (/usr/ucb/rsh)
Login incorrect.
xswscm-127-%

This may be due to a configuration problem here, but even if it is
then rsh, by not acquiring tickets, effectively negates the usefulness
of rsh.  The whole dream of using your network of workstations as a
compute-server farm - by stealing cycles from behind people's backs -
disappears.

|> }|> >8) setuid scripts don't work.
|> }|> 
|> }|> They work for us.
|> }
|> }This one I really don't understand - if a script is setuid to uid b, and
|> }you are running from uid a, then as soon as you start executing the script
|> }it'll fail because uid b doesn't have any tickets on the system.  How do
|> }you avoid this?
|> 
|>     Setuid scripts are a bad idea, don't use them.  We find that setuid-root
|>     programs generally are doing things that don't need tickets (other than
|>     the user's), but you can through some grossness acquire them.

While I do, in general, agree with you, it is well worth pointing out the
difference between setuid-root programs and setuid programs.  A
setuid-other-than-root is a great way to share information in a controlled
way.  There are however security problems even with non-root setuid programs,
although I would still maintain that there are areas where they are useful.
The point is that Athena makes it extremely difficult to write setuid
programs by adding incompatible extensions to the Unix permissions scheme.

|> }|> >9) telnet is disabled in the standard configuration and it cannot
|> }|> >be enabled without opening a large security hole.
|> }|> 
|> }|> Nonsense.  It is no less secure than a standard Unix environment.
|> }
|> }In Athena it is normal to know the root password.  The security hole works
|> }like this: you telnet to my system, getting tickets in your name.  I su
|> }to root, then su from root to your user id.  Then I can access any files
|> }on Kerberized filesystems as though I was you.  How do you avoid this?
|> 
|>     And how is this *less* secure than normal NFS?
|> 
|>     BTW, our su doesn't have a well known password (that doesn't
|>     really add any security, just makes trivial attacks like
|>     you described less trivial).
|> 
|>     I don't see how you can ever make a multi-user system secure
|>     against someone who has or can obtain (through physical access,
|>     for example) "root" access to it.
|> 
|>     This is why client systems are intrinsically single-user
|>     under Athena -- if you violate this constraint you should
|>     understand the consequences.

One of the selling points of Athena is that you can publicize the root
password - therefore a "typical" Athena installation would have everybody
knowing their own root password.  A typical non-Athena network (at least
the ones that I worked in) will have a secure root password.  Of course
even if you hide your fileservers in locked rooms a user can still get
root access on his/her own workstation if you give him a screwdriver and
enough time...

After my time with Athena I've developed Giles law of system security:
any system that is sufficiently secure is not sufficiently usable, and
any system that is sufficiently usable is not sufficiently secure.


|> }|> >10) The following Unix functions do not always work:
|> }|> >getpwuid(), getpwnam()
|> }|> 
|> }|> Works for us.
|> }
|> }Once again the passwd database stuff.
|> 
|>      Basically because it is built into Ultrix.

This is why I think you're doing something different and I'm very
interested in what it is.  If these functions work for you then your
Ultrix passwd information is being updated.

|> }|> >11) The standard environment files, .login, .cshrc, .profile and
|> }|> >.env, do not have their normal use of per-user environment
|> }|> >customization.
|> }|> 
|> }|> It all depends on how you set it up.
|> }
|> }Care to explain a little more fully?
|> 
|>      Use tcsh, see it's docs for info on /etc/csh.cshrc,
|>      /etc/csh.login, /etc/csh.logout

On this system my .profile is a copy of a standard Athena profile.  It
calls several centralized Athena scripts which will call ~/.profile.mine
if I have one.  My .profile is not my own; some (but not all) of the
functionality of .profile has been moved to .profile.mine.  Similarly
my $ENV is not my own - I need to use .environment.  There are also
problems that I always have with csh scripts - they try to execute
my .environment which is a ksh file, not a csh file, because both
my .env (ksh) and .cshrc (csh) include it.

Basically my environment-setting files have been hijacked by Athena.
If this isn't true in your environment then you're very lucky.

|> }|> >12) Permissions disappear transparently if you have used telnet to
|> }|> >log into a system for more than around 8 hours, or if you have
|> }|> >a server process running for more than around 8 hours.
|> }|> 
|> }|> We let the system administrator choose the ticket lifetime.
|> }|> Besides, permissions that expire are a *big* security win.
|> }
|> }Not if you're trying to run a server process or a long batch job.
|> 
|>   We allow ticket lifetimes upto 30 days -- that covers most
|>   any long batch job I've seen -- server processes can renew their
|>   tickets periodically.

I didn't realize that you could have tickets that lasted up to 30 days,
and neither did my system administrator.  I'll have to talk to her when
she gets back after the holiday weekend.

Your point about server processes is also valid - it's just very difficult
to find Athena expertise to the level where somebody can tell me how to
do this.  In fact my server tool does try to renew its tickets periodically
(and I think it worked at one time) but the person who knew how to maintain
this has moved to another group.

|> }|> >14) It is difficult to use NFS to mount "Kerberized" Unix
|> }|> >filesystems on to DOS or NT workstations, on to other Unix
|> }|> >workstations e.g. Sun, HP, or on to other products, e.g. Gigaswitch/ATM.
|> }|> 
|> }|> A definite plus.  Standard NFS is about as secure as leaving the
|> }|> barn door open.
|> }
|> }Tell that to the people using PCs who want to access their home directories.
|> 
|>    Get "samba" (see comp.protocols.smb)

Once again I'll talk to my sysadmin.  Thanks!

|> }In Unix the concept of a login session is very ill-defined.  For example
|> }with regard to tickets: 1) your tickets will last beyond your login session;
|> }2) anybody else with the same uid on the same system can use your tickets;
|> }3) tickets can expire before your login session is completed.  If you don't
|> }have these problems then I'm very interested in how you did it.
|> 
|>     We wrote our own login program.
|> 
|> }|> Big deal.  With 20,000 users, how else are you supposed to do it?
|> }
|> }What's wrong with the automounter?
|> 
|>    It has its own set of woes.
|> 
|> }|> A definite plus.  The user controls his envoronment, not the administrator
|> }|> of each of a 1,000 different machines.
|> }
|> }You can administer those machines centrally using NIS.
|> 
|>    Ugh, never.

I'm lost in the indentation levels here...  I'd be very interested in
hearing about problems with the automounter - we used it on my last
project and it seemed to work very well.  Similarly for NIS.

|> 
|> 
|> This is not to say that Athena doesn't have its warts, it does,
|> but IMO anything short of integrating this stuff into the Unix
|> standard of the year and getting vendors together on it (how long
|> has DME been coming?) and actually putting it in their Unixes
|> is going to have warts.

I agree.  Unix itself has many major flaws that will not be
solved for some time.  Athena could have been a great system,
if only they'd moved the functionality down to the other side
of the OS primitives and made Athena Unix a little bit closer
to standard Unix.  Maybe DME will be it - I certainly hope so.

I should also say that I'm specifically talking about a
software development group environment with experienced Unix
developers from a range of backgrounds (Sun, DEC, HP, etc).
An educational environment is completely different, and I
know that there you typically need every bit of security you can
get.  As I said, there's a trade-off here between usability and
security.

Lezz Giles
Release Manager,
HPN



  reply	other threads:[~1995-05-26  4:00 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-04-20  4:00 DECAthena PAUL D. CHAPIN
1995-04-21  4:00 ` DECAthena Peter Mayne
1995-04-21  4:00   ` DECAthena PAUL D. CHAPIN
1995-04-22  4:00     ` DECAthena John Hascall
1995-04-23  4:00     ` DECAthena Peter Mayne
1995-04-21  4:00   ` DECAthena stev
1995-05-05  4:00   ` DECAthena J.Brainard
1995-05-16  4:00     ` bad.DECAthena (was Re: DECAthena) Leslie Giles
1995-05-16  4:00       ` John Hascall
1995-05-30  4:00         ` J.Brainard
1995-05-17  4:00       ` Paul J Lustgraaf
1995-05-17  4:00         ` John Hascall
1995-05-22  4:00         ` Leslie Giles
1995-05-22  4:00           ` John Hascall
1995-05-26  4:00             ` Leslie Giles [this message]
1995-05-26  4:00               ` John Hascall
1995-05-27  4:00               ` Steve Dyer
1995-05-30  4:00           ` Axel Clauberg
1995-05-18  4:00       ` Steve Dyer
1995-05-22  4:00         ` Leslie Giles
1995-05-22  4:00           ` John Hascall
1995-05-26  4:00           ` Steve Dyer
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox