linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [OFFTOPIC] Re: [PATCH] Single user linux
@ 2001-04-24 15:11 Jesse Pollard
  0 siblings, 0 replies; 29+ messages in thread
From: Jesse Pollard @ 2001-04-24 15:11 UTC (permalink / raw)
  To: linux-kernel

Tomas Telensky <ttel5535@ss1000.ms.mff.cuni.cz>
> On Tue, 24 Apr 2001, Alexander Viro wrote:
> > On Tue, 24 Apr 2001, Tomas Telensky wrote:
> > 
> > > of linux distributions the standard daemons (httpd, sendmail) are run as
> > > root! Having multi-user system or not! Why? For only listening to a port
> > > <1024? Is there any elegant solution?
> > 
> > Sendmail is old. Consider it as a remnant of times when network was
> > more... friendly. Security considerations were mostly ignored - and
> > not only by sendmail. It used to be choke-full of holes. They were
> > essentially debugged out of it in late 90s. It seems to be more or
> > less OK these days, but it's full of old cruft. And splitting the
> > thing into reasonable parts and leaving them with minaml privileges
> > they need is large and painful work.

Actually, if you view sendmail as being an expert system it is very
cutting edge :-) It can identify a user from very skimpy data if it
is allowed to (fuzzy matching user names). It identifies local hosts
(with FQDN or partial name, or only host name).

> Thanks for the comment. And why not just let it listen to 25 and then
> being run as uid=nobody, gid=mail?

Because then everybodys mail would be owned by user "nobody".

There are some ways to do this, but they are unreliable.

   1. If the users mail is delivered to /var/mail/<username>; then the
      file /var/mail/<username> must always exist.

	This requires ALL MUAs to truncate the file.
	Some MUAs use file existance to determine if there is new mail.
	If it doesn't exist, then no new mail... ever.

   2. sendmail will not be able to create the /var/mail/<username> mail box.

   3. sendmail will not be able to process forwarding mail.
	User nobody should not be able to read files in users home
	directory... .forward files are private to the user...

   4. sendmail will not be able to process user mail filters (same problem
	as forwarding).

	Note: these filters are applied on receipt of mail (saves time and
	disk space since the filter can discard mail immediately or put it
	in appropriate folders immediately).

-------------------------------------------------------------------------
Jesse I Pollard, II
Email: pollard@navo.hpc.mil

Any opinions expressed are solely my own.

^ permalink raw reply	[flat|nested] 29+ messages in thread
* [PATCH] Single user linux
@ 2001-04-24 11:44 imel96
  2001-04-24 12:52 ` [OFFTOPIC] " Mike A. Harris
  0 siblings, 1 reply; 29+ messages in thread
From: imel96 @ 2001-04-24 11:44 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: linux-kernel


hi,

a friend of my asked me on how to make linux easier to use
for personal/casual win user.

i found out that one of the big problem with linux and most
other operating system is the multi-user thing.

i think, no personal computer user should know about what's
an operating system idea of a user. they just want to use
the computer, that's it.

by a personal computer i mean home pc, notebook, tablet,
pda, and communicator. only one user will use those devices,
or maybe his/her friend/family. do you think that user want
to know about user account?

from that, i also found out that it is very awkward to type
username and password every time i use my computer.
so here's a patch. i also have removed the user_struct from
my kernel, but i don't think you'd like #ifdef's.
may be it'll be good for midori too.


	imel



--- sched.h	Mon Apr  2 18:57:06 2001
+++ sched.h~	Tue Apr 24 17:32:33 2001
@@ -655,6 +655,12 @@
 		       unsigned long, const char *, void *);
 extern void free_irq(unsigned int, void *);

+#ifdef CONFIG_NOUSER
+#define capable(x)	1
+#define suser()		1
+#define fsuser()	1
+#else
+
 /*
  * This has now become a routine instead of a macro, it sets a flag if
  * it returns true (to do BSD-style accounting where the process is flagged
@@ -706,6 +712,8 @@
 	}
 	return 0;
 }
+
+#endif /* CONFIG_NOUSER */

 /*
  * Routines for handling mm_structs

diff -ur linux/Documentation/Configure.help nouser/Documentation/Configure.help
--- linux/Documentation/Configure.help	Mon Apr  2 18:53:29 2001
+++ nouser/Documentation/Configure.help	Tue Apr 24 18:08:49 2001
@@ -13626,6 +13626,14 @@
   a work-around for a number of buggy BIOSes. Switch this option on if
   your computer crashes instead of powering off properly.

+Disable Multi-user (DANGEROUS)
+CONFIG_NOUSER
+  Disable kernel multi-user support. Normally, we treat each user
+  differently, depending on his/her permissions. If you _really_
+  think that you're not going to use your computer in a hostile
+  environment and would like to cut a few bytes, say Y.
+  Most people should say N.
+
 Watchdog Timer Support
 CONFIG_WATCHDOG
   If you say Y here (and to one of the following options) and create a
diff -ur linux/arch/i386/config.in nouser/arch/i386/config.in
--- linux/arch/i386/config.in	Mon Feb  5 18:50:27 2001
+++ nouser/arch/i386/config.in	Tue Apr 24 17:53:42 2001
@@ -244,6 +244,8 @@
    bool '    Use real mode APM BIOS call to power off' CONFIG_APM_REAL_MODE_POWER_OFF
 fi

+bool 'Disable Multi-user (DANGEROUS)' CONFIG_NOUSER
+
 endmenu

 source drivers/mtd/Config.in


^ permalink raw reply	[flat|nested] 29+ messages in thread

end of thread, other threads:[~2001-04-25  6:30 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-04-24 15:11 [OFFTOPIC] Re: [PATCH] Single user linux Jesse Pollard
  -- strict thread matches above, loose matches on Subject: below --
2001-04-24 11:44 imel96
2001-04-24 12:52 ` [OFFTOPIC] " Mike A. Harris
2001-04-24 13:18   ` Tomas Telensky
2001-04-24 13:34     ` Mohammad A. Haque
2001-04-24 13:40       ` Alexander Viro
2001-04-24 14:18         ` Alan Cox
2001-04-24 14:22           ` Alexander Viro
2001-04-24 14:37             ` Alan Cox
2001-04-24 14:41               ` Alexander Viro
2001-04-24 14:47               ` CaT
2001-04-24 14:59                 ` Alan Cox
2001-04-24 15:11                   ` CaT
2001-04-24 15:53                     ` Alan Cox
2001-04-24 16:04                       ` Alex Riesen
2001-04-24 17:02                       ` Jesse Pollard
2001-04-24 17:16                         ` Alan Cox
2001-04-24 17:30                       ` Markus Schaber
2001-04-24 14:30           ` Gábor Lénárt
2001-04-24 14:49             ` Pjotr Kourzanoff
2001-04-24 14:56               ` Gábor Lénárt
2001-04-24 14:59               ` CaT
2001-04-24 15:17                 ` Pjotr Kourzanoff
2001-04-24 14:50           ` Gerhard Mack
2001-04-24 15:00             ` Alan Cox
2001-04-24 13:37     ` Alexander Viro
2001-04-24 13:52       ` Tomas Telensky
2001-04-24 14:07         ` Alexander Viro
2001-04-24 19:03     ` David Gómez 
2001-04-25  5:26     ` Ben Ford

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).