>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
Villy
Villy
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/
:> >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
> 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/
Hope this helps
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
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'
5. newbie question: logging in as root using the su command
7. executing script commands after su command
9. return status of commands run in su - <name> -c "<command>"
11. su command without '-' gives no hostname in prompt
12. passing commands after an su?
13. Advice needed on su command