Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* su
@ 1995-02-02 10:06 Ujfalussy Balazs
  1995-02-03  4:17 ` su Jester
                   ` (3 more replies)
  0 siblings, 4 replies; 15+ messages in thread
From: Ujfalussy Balazs @ 1995-02-02 10:06 UTC (permalink / raw)


Dear netters,
I am new to OSF/1. How can i enable su to root? Currently no user can su
to root which is quite frustrating. I browsed trough the on-line manuals,
found something aboute XIsso etc, but did not help. Please help,

Balazs
-- 

 Balazs Ujfalussy
--------------------------------------------------------------------------
 Research Institute for Solid-State Physics, Hungarian Academy of Sciences
 Net:  bu@power.szfki.kfki.hu
 Tel:  [36-1]169-9499/11-71  Fax:  [36-1]155-1193
   ****    This post made from 100% recycled electrons  ****
---------------------------------------------------------------------------



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

* Re: su
  1995-02-02 10:06 su Ujfalussy Balazs
@ 1995-02-03  4:17 ` Jester
  1995-02-03 14:16   ` su Umberto D'ORTONA
  1995-02-03 10:12 ` su Chris Stone
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 15+ messages in thread
From: Jester @ 1995-02-03  4:17 UTC (permalink / raw)


bu@power.szfki.kfki.hu (Ujfalussy Balazs) wrote:
> Dear netters,
> I am new to OSF/1. How can i enable su to root? Currently no user can su
> to root which is quite frustrating. I browsed trough the on-line manuals,
> found something aboute XIsso etc, but did not help. Please help,

The users that are allowed access must be members of the 'system' group.
You can do this by making the correct changes in /etc/group.

- Jester -
jes@vt.edu



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

* Re: su
  1995-02-02 10:06 su Ujfalussy Balazs
  1995-02-03  4:17 ` su Jester
@ 1995-02-03 10:12 ` Chris Stone
  1995-02-03 20:42 ` su Peyton Bland
  1995-02-07 21:23 ` su Gilles Vandenbeuck
  3 siblings, 0 replies; 15+ messages in thread
From: Chris Stone @ 1995-02-03 10:12 UTC (permalink / raw)


In article: <3gqar5$sfj@sunserv.kfki.hu>  bu@power.szfki.kfki.hu (Ujfalussy Balazs) writes:
> 
> Dear netters,
> I am new to OSF/1. How can i enable su to root? Currently no user can su
> to root which is quite frustrating. I browsed trough the on-line manuals,
> found something aboute XIsso etc, but did not help. Please help,
> 

Add the user to the system group in /etc/group

e.g

system:*:0:root,user1,user2... 

Chris Stone
===========

B   | The Telecommunications provider to the Railway Community
 R  | Technical Services                      Tel: +44 1 734 579089
  T | Reading, UK                             Fax: +44 1 734 579092



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

* Re: su
  1995-02-03  4:17 ` su Jester
@ 1995-02-03 14:16   ` Umberto D'ORTONA
  1995-02-03 23:38     ` su Mike Simons
  1995-02-17  7:11     ` su David Chin
  0 siblings, 2 replies; 15+ messages in thread
From: Umberto D'ORTONA @ 1995-02-03 14:16 UTC (permalink / raw)


In article <3gsaoo$lql@solaris.cc.vt.edu> Jester <jes@vt.edu> writes:
>bu@power.szfki.kfki.hu (Ujfalussy Balazs) wrote:
>> I am new to OSF/1. How can i enable su to root? Currently no user can su
>
>The users that are allowed access must be members of the 'system' group.
>You can do this by making the correct changes in /etc/group.

This will be probably solve the problem in that case.
but I have here a alpha machine (osf v2.1) where none of the user
that are in the 'system' group can su. Once the boss of the lab, which want 
to have the root passwd but know nothing about unix has put a lot of mess.
of course impossible to know what he has done because he pretends it's not 
his fault. probably he has try to change something on the security.
since that day, impossible so tu.
and I checked that /bin/su has still the set uid bit
gibbs _>ll /bin/su 
-rwsr-xr-x   1 bin      bin        24576 Feb 22  1994 /bin/su*
when someone try su, nothing happen, he simply gets the prompt again.
If someone has any idea, I would be extremly pleased.
greetings
umberto


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

* Re: su
  1995-02-02 10:06 su Ujfalussy Balazs
  1995-02-03  4:17 ` su Jester
  1995-02-03 10:12 ` su Chris Stone
@ 1995-02-03 20:42 ` Peyton Bland
  1995-02-07 21:23 ` su Gilles Vandenbeuck
  3 siblings, 0 replies; 15+ messages in thread
From: Peyton Bland @ 1995-02-03 20:42 UTC (permalink / raw)


In article <3gqar5$sfj@sunserv.kfki.hu>, bu@power.szfki.kfki.hu (Ujfalussy
Balazs) wrote:

> I am new to OSF/1. How can i enable su to root? Currently no user can su
> to root which is quite frustrating. I browsed trough the on-line manuals,
> found something aboute XIsso etc, but did not help. Please help,

Just add an entry to /etc/group under the system group (group id = 0).  It
probably just has root in it now.

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Peyton Bland                                     Digital Image Processing
Lab
Dept. of Radiology                                     University of
Michigan
"We all have better moments than anybody ever knows, and so do all the
others.  We are a great mystery.  Each one of us is a secret, and on that
basis we ought to treat each other with the deepest respect."      --
Garrison Keillor


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

* Re: su
  1995-02-03 14:16   ` su Umberto D'ORTONA
@ 1995-02-03 23:38     ` Mike Simons
  1995-02-04  4:35       ` su Mike Iglesias
  1995-02-17  7:11     ` su David Chin
  1 sibling, 1 reply; 15+ messages in thread
From: Mike Simons @ 1995-02-03 23:38 UTC (permalink / raw)


Umberto D'ORTONA (umberto@ccr.jussieu.fr) wrote:
: In article <3gsaoo$lql@solaris.cc.vt.edu> Jester <jes@vt.edu> writes:
: >
: >The users that are allowed access must be members of the 'system' group.
: >You can do this by making the correct changes in /etc/group.

	Yep... that does need to be done...

: This will be probably solve the problem in that case.
: but I have here a alpha machine (osf v2.1) where none of the user
: that are in the 'system' group can su.

: and I checked that /bin/su has still the set UID bit

	actually it has the GID (set Group ID bit set... which is
how it _SHOULD_ be)

gives ---->
: -rwsr-xr-x   1 bin      bin        24576 Feb 22  1994 /bin/su*
                        ^^^^^^^
                        |||||||

		that's your problem...

	the su command needs to be
owned by the group 'system'.... so that when someone runs it the
SUID bit allows the program to run with 'system' group privlages.
if root does a 'chgrp system /bin/su' that _should_ make su
work well.
	You might have other problems though... if your system
admin. went through your bin directories and changed all you other
'group' and 'owner' ownerships to 'bin bin' then you will have many
other things fail too.  But I don't feel like listing things now...
so I hope he didn't :-).

		Good Luck,
			Mike Simons
			msimons@csugrad.cs.vt.edu


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

* Re: su
  1995-02-03 23:38     ` su Mike Simons
@ 1995-02-04  4:35       ` Mike Iglesias
  0 siblings, 0 replies; 15+ messages in thread
From: Mike Iglesias @ 1995-02-04  4:35 UTC (permalink / raw)


In article <3gueqc$lmm@csugrad.cs.vt.edu>,
Mike Simons <msimons@csugrad.cs.vt.edu> wrote:
>	actually it has the GID (set Group ID bit set... which is
>how it _SHOULD_ be)

I'm sorry, this is wrong.  /bin/su is supposed to be suid root.

-rws--x--x   1 root     bin        24576 Feb 04 1993  /bin/su*

>	You might have other problems though... if your system
>admin. went through your bin directories and changed all you other
>'group' and 'owner' ownerships to 'bin bin' then you will have many
>other things fail too.  But I don't feel like listing things now...
>so I hope he didn't :-).

I know someone who did that on a VMS system once.  What a mess...


--
Mike Iglesias                        Internet:    iglesias@draco.acs.uci.edu
University of California, Irvine     phone:       (714) 824-6926
Office of Academic Computing         FAX:         (714) 824-2069
Central Computing Support


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

* Re: su
  1995-02-02 10:06 su Ujfalussy Balazs
                   ` (2 preceding siblings ...)
  1995-02-03 20:42 ` su Peyton Bland
@ 1995-02-07 21:23 ` Gilles Vandenbeuck
  3 siblings, 0 replies; 15+ messages in thread
From: Gilles Vandenbeuck @ 1995-02-07 21:23 UTC (permalink / raw)


Ujfalussy Balazs (bu@power.szfki.kfki.hu) wrote:
: Dear netters,
: I am new to OSF/1. How can i enable su to root? Currently no user can su
: to root which is quite frustrating. I browsed trough the on-line manuals,
: found something aboute XIsso etc, but did not help. Please help,

: Balazs
: --

:  Balazs Ujfalussy
: --------------------------------------------------------------------------
:  Research Institute for Solid-State Physics, Hungarian Academy of Sciences
:  Net:  bu@power.szfki.kfki.hu
:  Tel:  [36-1]169-9499/11-71  Fax:  [36-1]155-1193
:    ****    This post made from 100% recycled electrons  ****
: ---------------------------------------------------------------------------

Hi.

You just have to add your 'su' user names to your system group in /etc/group :

system:*:0:root,xxx,yyy

for example. Users xxx and yyy will be able to su.
--
    >	Gilles Vandenbeuck, System Administrator, Energy Control Systems   <
    >	CAE Electronics Ldt.,                                              <
    >	8585 Cote de Liesse, St-Laurent, Quebec, Canada, H4T 1G6           <
    >	(514) 341-6780 ext 3733, gillesv@cae.ca                            <


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

* Re: su
  1995-02-03 14:16   ` su Umberto D'ORTONA
  1995-02-03 23:38     ` su Mike Simons
@ 1995-02-17  7:11     ` David Chin
  1 sibling, 0 replies; 15+ messages in thread
From: David Chin @ 1995-02-17  7:11 UTC (permalink / raw)


Umberto D'ORTONA (umberto@ccr.jussieu.fr) wrote:
[Deletia]
> and I checked that /bin/su has still the set uid bit
> gibbs _>ll /bin/su 
> -rwsr-xr-x   1 bin      bin        24576 Feb 22  1994 /bin/su*
> when someone try su, nothing happen, he simply gets the prompt again.
> If someone has any idea, I would be extremly pleased.

There's the problem.  /bin/su should be

  -rws--x--x   1 root     bin     ................. /bin/su

The group ownership isn't important, I don't think.  But root should
own su.

--
David Chin                               Cornell University '92
                                         Oregon State University '??
_________________________________________________________________________
Internet:                        |        
  dchin@graphy.physics.orst.edu  |        Phone:  (503) 752-3632
_________________________________|        Add:  101 NW 23rd St.,
                                 |              Corvallis,
"In short, in matters vegetable, |              OR 97330
 animal, and mineral ..."        |        
_________________________________|_______________________________________


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

* su
@ 1997-09-14  4:00 John Wang
  1997-09-14  4:00 ` su Patrick Mendoza
                   ` (3 more replies)
  0 siblings, 4 replies; 15+ messages in thread
From: John Wang @ 1997-09-14  4:00 UTC (permalink / raw)



Hi, all:

   I have a DEC 3000 running DEC UNIX 3.2c.  I installed OS and Oracle. 
Everything is cool except this annoying thing.  If I log into the Oracle
account, when I do su, I keep getting "I do not have permission".  what is
happening here?? 

   Also I noticed that I can only login as root from the server itself.  If
I login as root through telnet, it will say root cannot login from this
terminal.  Is there any way I can avoid this??

Any help is GREATLY appreciated!!!

Thanks

John W.





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

* Re: su
  1997-09-14  4:00 su John Wang
  1997-09-14  4:00 ` su Patrick Mendoza
@ 1997-09-14  4:00 ` Tingli Pan
  1997-09-15  4:00 ` su Jan Wysocki
  1997-09-17  4:00 ` su System User
  3 siblings, 0 replies; 15+ messages in thread
From: Tingli Pan @ 1997-09-14  4:00 UTC (permalink / raw)



In article <5vh57u$2s2@winter.news.erols.com>,
John Wang <rwang@erols.com> wrote:
|Hi, all:
|
|   I have a DEC 3000 running DEC UNIX 3.2c.  I installed OS and Oracle. 
|Everything is cool except this annoying thing.  If I log into the Oracle
|account, when I do su, I keep getting "I do not have permission".  what is
|happening here?? 
|
|   Also I noticed that I can only login as root from the server itself.  If
|I login as root through telnet, it will say root cannot login from this
|terminal.  Is there any way I can avoid this??
|
Have you put your username into group system in file /etc/group?

The root account is allowed in server itself only. But you can use su
elsewhere.



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

* Re: su
  1997-09-14  4:00 su John Wang
@ 1997-09-14  4:00 ` Patrick Mendoza
  1997-09-14  4:00 ` su Tingli Pan
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 15+ messages in thread
From: Patrick Mendoza @ 1997-09-14  4:00 UTC (permalink / raw)



John Wang wrote:

> Hi, all:
>
>    I have a DEC 3000 running DEC UNIX 3.2c.  I installed OS and Oracle.
> Everything is cool except this annoying thing.  If I log into the Oracle
> account, when I do su, I keep getting "I do not have permission".  what is
> happening here??
>
>

Assuming your are logging in as foo, could it be that foo does not haveaccess
permissions to using su?

>    Also I noticed that I can only login as root from the server itself.  If
> I login as root through telnet, it will say root cannot login from this
> terminal.  Is there any way I can avoid this??
>
> Any help is GREATLY appreciated!!!
>
> Thanks
>
> John W.

  I'm not sure but it might have to deal with the /etc/hosts.allow and
/etc/hosts.deny files.   Hope my tips are of good use.  :-)

                                                -Patrick




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

* Re: su
  1997-09-14  4:00 su John Wang
  1997-09-14  4:00 ` su Patrick Mendoza
  1997-09-14  4:00 ` su Tingli Pan
@ 1997-09-15  4:00 ` Jan Wysocki
  1997-09-17  4:00 ` su System User
  3 siblings, 0 replies; 15+ messages in thread
From: Jan Wysocki @ 1997-09-15  4:00 UTC (permalink / raw)



John Wang (rwang@erols.com) wrote:
: Hi, all:

:    I have a DEC 3000 running DEC UNIX 3.2c.  I installed OS and Oracle. 
: Everything is cool except this annoying thing.  If I log into the Oracle
: account, when I do su, I keep getting "I do not have permission".  what is
: happening here?? 

If you want to su to root, then the issuing username must be in 
group 0 (system).  I.e. you need to add the Oracle account name to group
system in /etc/group.

:    Also I noticed that I can only login as root from the server itself.  If
: I login as root through telnet, it will say root cannot login from this
: terminal.  Is there any way I can avoid this??

You will need to add this line:

ptys

to the /etc/securettys file, to allow root logins from pseudoterminals.
(This is not allowed by default as it is a potential security risk:  Root's
password will be passed over your network.)


: Any help is GREATLY appreciated!!!

: Thanks

: John W.





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

* Re: su
  1997-09-14  4:00 su John Wang
                   ` (2 preceding siblings ...)
  1997-09-15  4:00 ` su Jan Wysocki
@ 1997-09-17  4:00 ` System User
  1997-09-19  4:00   ` su Figaro Tea
  3 siblings, 1 reply; 15+ messages in thread
From: System User @ 1997-09-17  4:00 UTC (permalink / raw)




It is a dangerous thing to allow terminals outside the server console to be
able to login directly as root, as you will have no control over them.

If you absolutely must, then /etc/securettys contains a list of those
terminals which may log in as root.

It is better to make users log in as themselves, then su to root (or su -
which goes through root login).

If you want to see who is becoming superuser with su, and when they did it,
look for file /var/adm/sialog.   If it isn't there create it with  touch
/var/adm/sialog.

All attempts to become superuser with au are logged in this file, if it
exists.


Doug

John Wang <rwang@erols.com> wrote in article
<5vh57u$2s2@winter.news.erols.com>...
> Hi, all:
> 
>    I have a DEC 3000 running DEC UNIX 3.2c.  I installed OS and Oracle. 
> Everything is cool except this annoying thing.  If I log into the Oracle
> account, when I do su, I keep getting "I do not have permission".  what
is
> happening here?? 
> 
>    Also I noticed that I can only login as root from the server itself. 
If
> I login as root through telnet, it will say root cannot login from this
> terminal.  Is there any way I can avoid this??
> 
> Any help is GREATLY appreciated!!!
> 
> Thanks
> 
> John W.
> 
> 
> 



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

* Re: su
  1997-09-17  4:00 ` su System User
@ 1997-09-19  4:00   ` Figaro Tea
  0 siblings, 0 replies; 15+ messages in thread
From: Figaro Tea @ 1997-09-19  4:00 UTC (permalink / raw)



On 17 Sep 1997, System User wrote:

> It is a dangerous thing to allow terminals outside the server console to be
> able to login directly as root, as you will have no control over them.

> John Wang <rwang@erols.com> wrote in article
> <5vh57u$2s2@winter.news.erols.com>...
> > Hi, all:
> > 
> >    I have a DEC 3000 running DEC UNIX 3.2c.  I installed OS and Oracle. 
> > Everything is cool except this annoying thing.  If I log into the Oracle
> > account, when I do su, I keep getting "I do not have permission".  what
> is
> > happening here?? 

You might also want to check that your group ID is 0, if it's not then you
can't su to root even if you know the password.

I also agree it's better to not let direct root logins except at the
console.

..._Tim_...
--=[Famous Last Words: "No need to unplug that, it'll just take a second."]=--
http://www.shack.org/zzhumphreyt
zzhumphreyt@winthrop.edu




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

end of thread, other threads:[~1997-09-19  4:00 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-02-02 10:06 su Ujfalussy Balazs
1995-02-03  4:17 ` su Jester
1995-02-03 14:16   ` su Umberto D'ORTONA
1995-02-03 23:38     ` su Mike Simons
1995-02-04  4:35       ` su Mike Iglesias
1995-02-17  7:11     ` su David Chin
1995-02-03 10:12 ` su Chris Stone
1995-02-03 20:42 ` su Peyton Bland
1995-02-07 21:23 ` su Gilles Vandenbeuck
  -- strict thread matches above, loose matches on Subject: below --
1997-09-14  4:00 su John Wang
1997-09-14  4:00 ` su Patrick Mendoza
1997-09-14  4:00 ` su Tingli Pan
1997-09-15  4:00 ` su Jan Wysocki
1997-09-17  4:00 ` su System User
1997-09-19  4:00   ` su Figaro Tea

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