ARTICLES

su succeeded

Dee September 18, 2002 at 09:09:44 Pacific
Solaris 5.7, 477mhz

Every time I become Super-User on my terminal, a message stating su succeeded is echoed back and I have to press the enter key to return to the command prompt. This is very anoying. I have have all over includeing the /etc/default/su in order to stop this. Any suggestions?

Dee



Google Ads

#1
+1
Mark M September 18, 2002 at 17:38:46 Pacific

Are you using a console window as opposed to a terminal window?

you can make sure that the line in the file /etc/default/su reads:

#CONSOLE=/dev/console

Also, you may want to check your /etc/syslog.conf to see if auth.notice is being sent to anywhere else except /var/adm/messages and /dev/sysmsg.

To isolate whether syslog is causing the problem you could edit /etc/default/su and change SYSLOG=YES to SYSLOG=NO (but I wouldn't recommend leaving it like this for obvious reasons).

Is this a fresh install or did someone use the machine before you?

Thanks

Mark



#2
+1
Dee September 20, 2002 at 15:07:18 Pacific

I think at times I was using a console; when I open a new terminal and su to root I get the "su succeeded" message after that it's fine.

I looked at /etc/default/su and console is pounded out. This is a fresh installed system that was only used by the installer before I got on it.

Since I am no longer on site I will have the operator check /etc/syslog.conf to auth.notices is being sent any where else I will keep you informed.

Thanks Mark!

Dee



#3
+1
Mark M September 24, 2002 at 01:26:37 Pacific

No probs.. it's strange, but you do get this kind of thing where you have to press return when something is redirected to your shell. It seems strange that it's echoing back to you and doing this though. If you're just opening a standard terminal and su'ing, there should be no problem.

You should just get the # prompt after an su, so like I say, it seems that some sort of output to terminal has been enabled for SU. :S

If you try using the "Console" window then you will by default have this message echo problem as far as I remember. It's annoying but the console is generally used as an admin monitoring tool - lots of people redirect syslog events to it so they can see what's going on rather than keep checking logfiles.



Google Ads
Start New Discussion Reply to Message Icon
Related Posts

« IP for second interface? sol8 on vmware (w2k) »


This post is quite old and has been locked from receiving new replies. Please create a new posting instead.



Ask the Community!
Describe your Problem
Example: Hard Drive Not Detected on My PC


Google Ads



Results for: su succeeded

can't change vfstab file www.computing.net/answers/solaris/cant-change-vfstab-file/4053.html

SU command doesn't work! www.computing.net/answers/solaris/su-command-doesnt-work/2176.html

can't su under ssh www.computing.net/answers/solaris/cant-su-under-ssh/1708.html