Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
* No permission to do a su to root
@ 1998-04-24  4:00 Rene Akeret
  1998-04-24  4:00 ` Kjell Andresen
                   ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: Rene Akeret @ 1998-04-24  4:00 UTC (permalink / raw)



Hello

Im not able to do a su to root from any users. A normal login as root is
possible.
There is always an error like this : You have no permission to do su.

Ive looked in so many configurtion files, but without success.
I other Unix it's possible to change the user-setting.
Does anybody know, how its possible to change this settings ?

Sorry about this easy question, but normally, Im working with AIX.

Thanks a lot for your answer and have anice day.

With regards
Rene

e-mail: akeret@ch.ibm.com





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

* Re: No permission to do a su to root
  1998-04-24  4:00 No permission to do a su to root Rene Akeret
@ 1998-04-24  4:00 ` Kjell Andresen
  1998-04-24  4:00 ` Korbinian Grote
  1998-04-24  4:00 ` Joerg-Uwe Tessmer
  2 siblings, 0 replies; 16+ messages in thread
From: Kjell Andresen @ 1998-04-24  4:00 UTC (permalink / raw)




   Im not able to do a su to root from any users. A normal login as root is
   possible.
   There is always an error like this : You have no permission to do su.

usernames have to reside in /etc/group in this manner to be permitted:
system:*:0:root,user1,user2

Kjell



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

* Re: No permission to do a su to root
  1998-04-24  4:00 No permission to do a su to root Rene Akeret
  1998-04-24  4:00 ` Kjell Andresen
@ 1998-04-24  4:00 ` Korbinian Grote
  1998-04-24  4:00 ` Joerg-Uwe Tessmer
  2 siblings, 0 replies; 16+ messages in thread
From: Korbinian Grote @ 1998-04-24  4:00 UTC (permalink / raw)
  To: Rene Akeret


Rene Akeret wrote:
> 
> Hello
> 
> Im not able to do a su to root from any users. A normal login as root is
> possible.
> There is always an error like this : You have no permission to do su.

IIRC you have to be a member of the 'system' group to be able to su
root.
It needn't be the primary group a user belongs to, but must be in the
secondary groups at least.

Hope this helps,

Korbinian 
-- 
Korbinian Grote     | GSF Forschungszentrum fuer Umwelt & Gesundheit
AG BIODV            | Ingolstaedter Landstr. 1
Email: grote@gsf.de | D 85764 Neuherberg / Muenchen (Germany)
info: http://www.gsf.de/BIODV



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

* Re: No permission to do a su to root
  1998-04-24  4:00 No permission to do a su to root Rene Akeret
  1998-04-24  4:00 ` Kjell Andresen
  1998-04-24  4:00 ` Korbinian Grote
@ 1998-04-24  4:00 ` Joerg-Uwe Tessmer
  1998-04-25  4:00   ` Nick Maclaren
  2 siblings, 1 reply; 16+ messages in thread
From: Joerg-Uwe Tessmer @ 1998-04-24  4:00 UTC (permalink / raw)



Rene Akeret wrote:

> Hello
>
> Im not able to do a su to root from any users. A normal login as root is
> possible.
> There is always an error like this : You have no permission to do su.
>
> Ive looked in so many configurtion files, but without success.
> I other Unix it's possible to change the user-setting.
> Does anybody know, how its possible to change this settings ?
>
> Sorry about this easy question, but normally, Im working with AIX.
>
> Thanks a lot for your answer and have anice day.
>
> With regards
> Rene
>
> e-mail: akeret@ch.ibm.com

Hello,
only you are  a member of the group 0 (/etc/group), then you have
permissions to su to root.

Joerg-Uwe


--
http://www.agnld.uni-potsdam.de/~joerg/joerg.html
Joerg-Uwe Tessmer
Universitaet Potsdam
email: jut@agnld.Uni-Potsdam.de






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

* Re: No permission to do a su to root
  1998-04-24  4:00 ` Joerg-Uwe Tessmer
@ 1998-04-25  4:00   ` Nick Maclaren
  1998-04-25  4:00     ` Steinar Haug
  1998-04-25  4:00     ` Charles M Richmond
  0 siblings, 2 replies; 16+ messages in thread
From: Nick Maclaren @ 1998-04-25  4:00 UTC (permalink / raw)



In article <3540773A.9FB66F6E@agnld.uni-potsdam.de>,
Joerg-Uwe Tessmer  <jut@agnld.uni-potsdam.de> wrote:
>Rene Akeret wrote:
>
>> Im not able to do a su to root from any users. A normal login as root is
>> possible.
>> There is always an error like this : You have no permission to do su.
>
>only you are  a member of the group 0 (/etc/group), then you have
>permissions to su to root.

Which is one of the most idiotic security features that I have ever met.
A typical Unix system may have half-a-dozen documented ways to become
root, and this restriction affects none of the others.  For example:

login (sometimes, but with some constraints)
rlogin `hostname` -l root
telnet `hostname`
xdm

I have fairly often been caught by a major upgrade overwriting /etc/group,
so su doesn't work, and have never had any difficulty in bypassing the
check.


Nick Maclaren,
University of Cambridge Computing Service,
New Museums Site, Pembroke Street, Cambridge CB2 3QG, England.
Email:  nmm1@cam.ac.uk
Tel.:  +44 1223 334761    Fax:  +44 1223 334679



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

* Re: No permission to do a su to root
  1998-04-25  4:00   ` Nick Maclaren
@ 1998-04-25  4:00     ` Steinar Haug
  1998-04-25  4:00       ` Nick Maclaren
  1998-04-25  4:00     ` Charles M Richmond
  1 sibling, 1 reply; 16+ messages in thread
From: Steinar Haug @ 1998-04-25  4:00 UTC (permalink / raw)



[Nick Maclaren]

|   >only you are  a member of the group 0 (/etc/group), then you have
|   >permissions to su to root.
|   
|   Which is one of the most idiotic security features that I have ever met.

On the other hand, some of us find it quite useful.

|   A typical Unix system may have half-a-dozen documented ways to become
|   root, and this restriction affects none of the others.  For example:
|   
|   login (sometimes, but with some constraints)
|   rlogin `hostname` -l root
|   telnet `hostname`
|   xdm

On the system where I'm typing this, you can only login directly to root
on the physical console. None of the methods you mentioned here work, for
good reasons.

|   I have fairly often been caught by a major upgrade overwriting /etc/group,
|   so su doesn't work, and have never had any difficulty in bypassing the
|   check.

This may apply to *your* system. Please don't assume it applies to all
other systems.

Having limitations on who can su to root is not a panacea. But in some
situations it *does* give you some extra protection which is worth having.

Steinar Haug, Nethelp consulting, sthaug@nethelp.no



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

* Re: No permission to do a su to root
  1998-04-25  4:00     ` Steinar Haug
@ 1998-04-25  4:00       ` Nick Maclaren
  1998-04-25  4:00         ` Steinar Haug
  1998-04-26  4:00         ` Daniel S. Riley
  0 siblings, 2 replies; 16+ messages in thread
From: Nick Maclaren @ 1998-04-25  4:00 UTC (permalink / raw)



In article <6hse83$dk2$1@verdi.nethelp.no>,
Steinar Haug <sthaug@nethelp.no> wrote:
>
>On the system where I'm typing this, you can only login directly to root
>on the physical console. None of the methods you mentioned here work, for
>good reasons.

If you can lock out all the other methods then, yes, I agree that it
could be useful.  I should be interested (seriously) to know which
version of OSF/1 has enough control to do that.  I did actually try to
restrict root login, and gave up when I found that I couldn't block
most of the cases that were likely to be used by a hacker, but could
make life more difficult for myself :-(

Yes, I know that you can do it if you lock out rlogin, telnet, rexec
and xdm entirely, but that makes a system pretty hard to use in most
environments.  Similarly, replacing all of those with customised
versions make a system rather unlike OSF/1.  Login itself can be
controlled by the privileged terminal facility, but most systems nowadays
don't run getty to anything EXCEPT the console!


Nick Maclaren,
University of Cambridge Computing Service,
New Museums Site, Pembroke Street, Cambridge CB2 3QG, England.
Email:  nmm1@cam.ac.uk
Tel.:  +44 1223 334761    Fax:  +44 1223 334679



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

* Re: No permission to do a su to root
  1998-04-25  4:00       ` Nick Maclaren
@ 1998-04-25  4:00         ` Steinar Haug
  1998-04-26  4:00           ` Nick Maclaren
  1998-04-26  4:00         ` Daniel S. Riley
  1 sibling, 1 reply; 16+ messages in thread
From: Steinar Haug @ 1998-04-25  4:00 UTC (permalink / raw)



[Nick Maclaren]

|   >On the system where I'm typing this, you can only login directly to root
|   >on the physical console. None of the methods you mentioned here work, for
|   >good reasons.
|   
|   If you can lock out all the other methods then, yes, I agree that it
|   could be useful.  I should be interested (seriously) to know which
|   version of OSF/1 has enough control to do that.

Um, I never said I was using Digital Unix, did I? The same restriction
exists in other BSD based systems, for instance FreeBSD (which is what I
run). I can see how you could draw that conclusion, since the posting 
was in a Digital Unix group...

|   Yes, I know that you can do it if you lock out rlogin, telnet, rexec

I'm happily running a system with none of those services, using SSH only
for remote login.

|   and xdm entirely, but that makes a system pretty hard to use in most
|   environments.

. and I can do just fine without xdm too.

Steinar Haug, Nethelp consulting, sthaug@nethelp.no



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

* Re: No permission to do a su to root
  1998-04-25  4:00   ` Nick Maclaren
  1998-04-25  4:00     ` Steinar Haug
@ 1998-04-25  4:00     ` Charles M Richmond
  1998-04-26  4:00       ` Sasa Stiasni
  1 sibling, 1 reply; 16+ messages in thread
From: Charles M Richmond @ 1998-04-25  4:00 UTC (permalink / raw)



Nick Maclaren wrote:
> 
> In article <3540773A.9FB66F6E@agnld.uni-potsdam.de>,
> Joerg-Uwe Tessmer  <jut@agnld.uni-potsdam.de> wrote:
> >Rene Akeret wrote:
> >
> >> Im not able to do a su to root from any users. A normal login as root is
> >> possible.
> >> There is always an error like this : You have no permission to do su.
> >
> >only you are  a member of the group 0 (/etc/group), then you have
> >permissions to su to root.
> 
> Which is one of the most idiotic security features that I have ever met.
> A typical Unix system may have half-a-dozen documented ways to become
> root, and this restriction affects none of the others.  For example:
> 
> login (sometimes, but with some constraints)
> rlogin `hostname` -l root
> telnet `hostname`
> xdm
> 
> I have fairly often been caught by a major upgrade overwriting /etc/group,
> so su doesn't work, and have never had any difficulty in bypassing the
> check.
> 

Nick it sounds like your system has already been hacked. My DUnix 4.0b
system reacts as follows:

koibito> rlogin koibito -l root
Password:
root login refused on this terminal.
************************************************

koibito> xdm
Only root wants to run xdm
************************************************

koibito> telnet koibito
Trying 198.5.5.5...
Connected to koibito.iisc.com.
Escape character is '^]'.


Digital UNIX (koibito.iisc.com) (ttyq2)

login: root
Password:
root login refused on this terminal.
************************************************
koibito> login
login: root
Password:
root login refused on this terminal.
************************************************


All of your suppositions are incorrect from the start.

-- 
***********************************************************************
*  Charles Richmond    Integrated International Systems Corporation   *
*  cmr@iisc.com        cmr@koibito.iisc.com  cmr@shore.net            *
*  UNIX Internals, I18N, L10N, X, Realtime Imaging, and  Custom S/W   *
*  One Longfellow Place Suite 3309 , Boston , Ma. USA 02114-2431      *
*  (617) 723 7695    (617) 367 3151        FAX (617) 723 6861         *
***********************************************************************



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

* Re: No permission to do a su to root
  1998-04-25  4:00       ` Nick Maclaren
  1998-04-25  4:00         ` Steinar Haug
@ 1998-04-26  4:00         ` Daniel S. Riley
  1998-04-26  4:00           ` Nikola Milutinovic
  1 sibling, 1 reply; 16+ messages in thread
From: Daniel S. Riley @ 1998-04-26  4:00 UTC (permalink / raw)



nmm1@cus.cam.ac.uk (Nick Maclaren) writes:
> If you can lock out all the other methods then, yes, I agree that it
> could be useful.  I should be interested (seriously) to know which
> version of OSF/1 has enough control to do that.  I did actually try to
> restrict root login, and gave up when I found that I couldn't block
> most of the cases that were likely to be used by a hacker, but could
> make life more difficult for myself :-(

/etc/securettys covers most of the root login cases.  As far as I can
tell, it's been part of OSF1 "forever" (ours has a 1990 OSF copyright),
and the default on Digital Unix (checked on 3.2g and 4.0b) seems to be 

/dev/console
local:0
:0

If you can rlogin or telnet to a Digital Unix system and login as root,
then someone must have added a "ptys" entry to securettys (unless you
have "enhanced security" enabled, in which case some completely different
database applies).
-- 
Dan Riley                                         dsr@mail.lns.cornell.edu
Wilson Lab, Cornell University      <URL:http://www.lns.cornell.edu/~dsr/>
    "History teaches us that days like this are best spent in bed"



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

* Re: No permission to do a su to root
  1998-04-26  4:00         ` Daniel S. Riley
@ 1998-04-26  4:00           ` Nikola Milutinovic
  1998-04-26  4:00             ` Sasa Stiasni
  1998-04-27  4:00             ` Daniel S. Riley
  0 siblings, 2 replies; 16+ messages in thread
From: Nikola Milutinovic @ 1998-04-26  4:00 UTC (permalink / raw)



Daniel S. Riley wrote:
> /etc/securettys covers most of the root login cases.  As far as I can
> tell, it's been part of OSF1 "forever" (ours has a 1990 OSF copyright),
> and the default on Digital Unix (checked on 3.2g and 4.0b) seems to be
> 
> /dev/console
> local:0
> :0
> 
> If you can rlogin or telnet to a Digital Unix system and login as root,
> then someone must have added a "ptys" entry to securettys (unless you
> have "enhanced security" enabled, in which case some completely different
> database applies).

Different? Which one? I use C2 sec and that's the database in both BASE
and ENHANCED sec level.

Nix




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

* Re: No permission to do a su to root
  1998-04-25  4:00         ` Steinar Haug
@ 1998-04-26  4:00           ` Nick Maclaren
  0 siblings, 0 replies; 16+ messages in thread
From: Nick Maclaren @ 1998-04-26  4:00 UTC (permalink / raw)



In article <6hsr1a$epm$1@verdi.nethelp.no>,
Steinar Haug <sthaug@nethelp.no> wrote:
>[Nick Maclaren]
>
>|   >On the system where I'm typing this, you can only login directly to root
>|   >on the physical console. None of the methods you mentioned here work, for
>|   >good reasons.
>|   
>|   If you can lock out all the other methods then, yes, I agree that it
>|   could be useful.  I should be interested (seriously) to know which
>|   version of OSF/1 has enough control to do that.
>
>Um, I never said I was using Digital Unix, did I? The same restriction
>exists in other BSD based systems, for instance FreeBSD (which is what I
>run). I can see how you could draw that conclusion, since the posting 
>was in a Digital Unix group...

Well, none of the groups that I posted to is a Digital Unix group!
The newsgroup line as I see it is comp.unix.osf.osf1,comp.unix.osf.misc.
What newsgroup line did YOU see?

Since you (and others) point out that Digital Unix traps these cases,
I will take another look and see if the latest upgrades have closed
the loopholes in my OSF/1 systems.

However, there is still a problem, which is how to get a clean root
session from a remote connexion.  Yes, I am very happy to have the same
restrictions as 'su', but there are circumstances when even 'su -'
doesn't get a clean enough environment.  What I really need is a 'su --',
which does the checks and then goes through login.

[ Incidentally, to the other person who posted - that is most useful,
but the xdm check is invalid as that is not how you use xdm. ]


Nick Maclaren,
University of Cambridge Computing Service,
New Museums Site, Pembroke Street, Cambridge CB2 3QG, England.
Email:  nmm1@cam.ac.uk
Tel.:  +44 1223 334761    Fax:  +44 1223 334679



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

* Re: No permission to do a su to root
  1998-04-26  4:00           ` Nikola Milutinovic
@ 1998-04-26  4:00             ` Sasa Stiasni
  1998-04-27  4:00             ` Daniel S. Riley
  1 sibling, 0 replies; 16+ messages in thread
From: Sasa Stiasni @ 1998-04-26  4:00 UTC (permalink / raw)



On Sun, 26 Apr 1998 16:36:07 +0200, Nikola Milutinovic <milutinn@EUnet.yu> 
wrote:
>Daniel S. Riley wrote:
>> /etc/securettys covers most of the root login cases.  As far as I can
>> tell, it's been part of OSF1 "forever" (ours has a 1990 OSF copyright),
>> and the default on Digital Unix (checked on 3.2g and 4.0b) seems to be
>> 
>> /dev/console
>> local:0
>> :0
>> 
>> If you can rlogin or telnet to a Digital Unix system and login as root,
>> then someone must have added a "ptys" entry to securettys (unless you
>> have "enhanced security" enabled, in which case some completely different
>> database applies).
>
>Different? Which one? I use C2 sec and that's the database in both BASE
>and ENHANCED sec level.
>

Nope it's not.
Try:
du% man 4 authcap    or 
du% man 4 devassign

Sasa
-- 
mailto: sstiasni@irb.hr




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

* Re: No permission to do a su to root
  1998-04-25  4:00     ` Charles M Richmond
@ 1998-04-26  4:00       ` Sasa Stiasni
  0 siblings, 0 replies; 16+ messages in thread
From: Sasa Stiasni @ 1998-04-26  4:00 UTC (permalink / raw)



On Sat, 25 Apr 1998 12:09:06 -0400, Charles M Richmond <cmr@iisc.com> wrote:
>Nick Maclaren wrote:
>> 
>> In article <3540773A.9FB66F6E@agnld.uni-potsdam.de>,
>> Joerg-Uwe Tessmer  <jut@agnld.uni-potsdam.de> wrote:
>> >Rene Akeret wrote:
>> >
>> >> Im not able to do a su to root from any users. A normal login as root is
>> >> possible.
>> >> There is always an error like this : You have no permission to do su.
>> >
>> >only you are  a member of the group 0 (/etc/group), then you have
>> >permissions to su to root.
>> 
>> Which is one of the most idiotic security features that I have ever met.
>> A typical Unix system may have half-a-dozen documented ways to become
>> root, and this restriction affects none of the others.  For example:
>> 
>> login (sometimes, but with some constraints)
>> rlogin `hostname` -l root
>> telnet `hostname`
>> xdm
>> 
>> I have fairly often been caught by a major upgrade overwriting /etc/group,
>> so su doesn't work, and have never had any difficulty in bypassing the
>> check.
>> 
>
>Nick it sounds like your system has already been hacked. My DUnix 4.0b
>system reacts as follows:
>
>koibito> rlogin koibito -l root
>Password:
>root login refused on this terminal.
>************************************************
>
>koibito> xdm
>Only root wants to run xdm
>************************************************
>
>koibito> telnet koibito
>Trying 198.5.5.5...
>Connected to koibito.iisc.com.
>Escape character is '^]'.
>
>
>Digital UNIX (koibito.iisc.com) (ttyq2)
>
>login: root
>Password:
>root login refused on this terminal.
>************************************************
>koibito> login
>login: root
>Password:
>root login refused on this terminal.
>************************************************
>
>
>All of your suppositions are incorrect from the start.

But, I think, the main point here was that you can hack root if you have an
account an DU, and 'su' restrictions doesn't help there.. :-)
I find this restriction OK for dumb users but there are few advanced on my
machine, and I'm waiting for the day when they find out about general DU hole,
that any user can get root access (overwrite any file on system..).
I'm searching for the patch, there's none yet, and noone seems to work on it..

Sasa
-- 
mailto: sstiasni@irb.hr




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

* Re: No permission to do a su to root
  1998-04-26  4:00           ` Nikola Milutinovic
  1998-04-26  4:00             ` Sasa Stiasni
@ 1998-04-27  4:00             ` Daniel S. Riley
  1998-04-28  4:00               ` Nikola Milutinovic
  1 sibling, 1 reply; 16+ messages in thread
From: Daniel S. Riley @ 1998-04-27  4:00 UTC (permalink / raw)



Nikola Milutinovic <milutinn@EUnet.yu> writes:
> Daniel S. Riley wrote:
> > then someone must have added a "ptys" entry to securettys (unless you
> > have "enhanced security" enabled, in which case some completely different
> > database applies).

> Different? Which one? I use C2 sec and that's the database in both BASE
> and ENHANCED sec level.

I must confess, we don't run C2 security here (except for auditing), so I
was blindly believing the securettys man page where it says:

                                 Security Note
       The terminal database file used on a trusted system is /etc/auth/sys-
       tem/ttys and is documented in the ttys(4) reference page.

I started trying to trace down what other database this would be (since it
doesn't appear to actually be in ttys(4)), but decided I had better things
to do than try to decipher the twisty maze of C2 man pages, all subtly
different.
-- 
Dan Riley                                         dsr@mail.lns.cornell.edu
Wilson Lab, Cornell University      <URL:http://www.lns.cornell.edu/~dsr/>
    "History teaches us that days like this are best spent in bed"



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

* Re: No permission to do a su to root
  1998-04-27  4:00             ` Daniel S. Riley
@ 1998-04-28  4:00               ` Nikola Milutinovic
  0 siblings, 0 replies; 16+ messages in thread
From: Nikola Milutinovic @ 1998-04-28  4:00 UTC (permalink / raw)



OK, here's what I've figured out so far:

/etc/securettys:		list of login devices for root login.

/etc/auth/system/ttys:		C2 sec. file describing login devices.
				This includes max_tries, unsuc_login.

/etc/auth/system/devassign:	Describes devices??? What is this for?

Nix.




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

end of thread, other threads:[~1998-04-28  4:00 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-04-24  4:00 No permission to do a su to root Rene Akeret
1998-04-24  4:00 ` Kjell Andresen
1998-04-24  4:00 ` Korbinian Grote
1998-04-24  4:00 ` Joerg-Uwe Tessmer
1998-04-25  4:00   ` Nick Maclaren
1998-04-25  4:00     ` Steinar Haug
1998-04-25  4:00       ` Nick Maclaren
1998-04-25  4:00         ` Steinar Haug
1998-04-26  4:00           ` Nick Maclaren
1998-04-26  4:00         ` Daniel S. Riley
1998-04-26  4:00           ` Nikola Milutinovic
1998-04-26  4:00             ` Sasa Stiasni
1998-04-27  4:00             ` Daniel S. Riley
1998-04-28  4:00               ` Nikola Milutinovic
1998-04-25  4:00     ` Charles M Richmond
1998-04-26  4:00       ` Sasa Stiasni

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