question about su command

question about su command

Post by Villy Kru » Mon, 26 Jul 1999 04:00:00




>Hi everyone
>I am a beginner in AIX(Unix) world.
>I want to know is it possible to use su command without keyin the passwd
>from the stdin?
>thx

It is if you are logged in as root or su'd to root already.

Villy

 
 
 

question about su command

Post by NICHOLAS DRON » Mon, 26 Jul 1999 04:00:00


: Hi everyone
: I am a beginner in AIX(Unix) world.
: I want to know is it possible to use su command without keyin the passwd
: from the stdin?

No, it's not.

My understanding is that su(1) and passwd(1) both open
the controlling tty directly, which makes redirection
and piping impossible.

You may instead use sudo(1), the source code of which
is available at ftp://ftp.cs.colrado.edu.  You may
also find a pre-compiled version at http://www.bull.de/

 
 
 

question about su command

Post by wen » Mon, 26 Jul 1999 04:00:00


Hi everyone
I am a beginner in AIX(Unix) world.
I want to know is it possible to use su command without keyin the passwd
from the stdin?
thx
 
 
 

question about su command

Post by Steve W. Jacks » Mon, 26 Jul 1999 04:00:00




:> >Hi everyone
:> >I am a beginner in AIX(Unix) world.
:> >I want to know is it possible to use su command without keyin the passwd
:> >from the stdin?
:> >thx
:> >
:>
:>
:> It is if you are logged in as root or su'd to root already.
:>
:>
:>
:>
:>
:>
:>
:>
:> Villy

This is precisely what's done in a lot of startup scripts -- using the "su
-c" variant from root to start up, say, a daemon like Oracle's.

= Steve =

--
Steve W. Jackson,  Montgomery, Alabama
http://www.mindspring.com/~sjacksn/stevehome.html

 
 
 

question about su command

Post by mhbar.. » Wed, 28 Jul 1999 04:00:00





> : Hi everyone
> : I am a beginner in AIX(Unix) world.
> : I want to know is it possible to use su command without keyin the
passwd
> : from the stdin?

> No, it's not.

> My understanding is that su(1) and passwd(1) both open
> the controlling tty directly, which makes redirection
> and piping impossible.

> You may instead use sudo(1), the source code of which
> is available at ftp://ftp.cs.colrado.edu.  You may
> also find a pre-compiled version at http://www.bull.de/

For an AIX beginner, compiling and installing SUDO may be a bit much
(took me ages), even the pre-compiled may be a bit OTT.
If you have access, just use the root user, or (*really* bad security)
set passwd's to
(blank)
and then remove the ADMCHG from /etc/security/passwd
or try the $HOME/.rhosts file (look up man pages, again, *bad* security
loop-hole)

Hope this helps

Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.

 
 
 

1. su command question??

Sun E450
SunOS 5.6
CDE

From March of 1999 to December 31, 2000, "su - username" never logged
anything into the CDE console window.

But as of January 1, 2001, every "su - username" command logs:
su: "su username" succeeded for root on /dev/pts/n"

Even root cron jobs that "su" log these messages into the CDE console
for device /dev/???..

Why would these "su" messages start logging to the console window
because of the year change??

I did notice that /var/adm/messages is still empty and usually has
something logged by now. Permissions & owner is the same as
messages.0,1,2.

Thanks
JS

Sent via Deja.com
http://www.deja.com/

2. Alpha Hardware Question (Buslogic SCSI Cards)

3. Question about path setting after issueing the command 'su'

4. Repost: Makefiles

5. newbie question: logging in as root using the su command

6. Moral question

7. executing script commands after su command

8. Trident PCI-47

9. return status of commands run in su - <name> -c "<command>"

10. failed su command

11. su command without '-' gives no hostname in prompt

12. passing commands after an su?

13. Advice needed on su command