Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

su - root environment issue

Status
Not open for further replies.

aixmurderer

IS-IT--Management
Nov 28, 2000
603
NZ
This should be easy, probably staring me in the face and I cannot see it.

When executing a su - root we have a problem with the user ID being retained.

When firing up an application or sending an email the processes are running with the user's account ID instead of root. Sending mail from the command line shows the sender to be user@domainname.com instead of root@domainname.com

How can I change this behaviour? The same procedure on Linux works correctly.

IBM Certified Confused - MQSeries
IBM Certified Flabbergasted - AIX 5 pSeries System Administration
MS Certified Windblows Rebooter
 
Have you tried just su -

without the root user name at the end?
 
hi ,

just to clarify what you are doing , are you saying when you
for example have looged in as root and do the following

as root

id ( shows as root )

you send a mail
mail -s "as root" email address

( Do you get the email from root )


# su - username

id ( does it show up as username ? )

then you send a mail

mail -s "as username" email address

( do you get email as username ?)

still logged in as the user , you do a su - root

and send a mail ( do you get mail from root or user name)

 
To clarify things:

I log is as user "chris"

$ su -

# whoami
root

# id
uid=0(root) gid=0(system) groups=2(bin),3(sys),7(security),8(cron),10(audit),11(lp)

When I send mail (mail someone@mydomain.com < afile.txt) it comes through as from sender chris@mydomain.com instead of root@mydomain.com

When I start an application a "ps -ef" shows it to be owned by "chris" instead if "root".

IBM Certified Confused - MQSeries
IBM Certified Flabbergasted - AIX 5 pSeries System Administration
MS Certified Windblows Rebooter
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top