1752793 Members
6260 Online
108789 Solutions
New Discussion

SU behavior in 11.31

 
SOLVED
Go to solution
Eric Yruegas
Frequent Advisor

SU behavior in 11.31

Before opening a case with HP support, thought I'd ask the collective if they've noticed, or can explain, the following behavior:

On HPUX 11.11 and 11.23, I using "su" to change users preserves the umask setting. Note I am *not* using the "su -" option, on purpose.

# umask
022
# su {anyotheruser}
$ umask
022

On HPUX 11.31 - it's working differently.

# umask
022
# su {anyotheruser}
$ umask
077

!?!??!? It seems the behavior of SU has changed in 11.31, but I cannot find a bit of documentation on this. Heck, maybe it's a bug?

/etc/profile is consistent across all machines, as well as root's .profile, and the {anyotheruser}'s .profile.

I'm hoping you all are seeing the same behavior on your 11.31 machines.

Thanks!
1 REPLY 1
VK2COT
Honored Contributor
Solution

Re: SU behavior in 11.31

Hello,

If you are certain that no profiles are
involved, then maybe this helps.

http://www11.itrc.hp.com/service/cki/docDisplay.do?docLocale=en&docId=ttr_na-SSB_1000940876

Title: "su" should not modify the umask; "su -" should modify umask like login on 11i v3

PHCO_39370 090903 'su cumulative patch'

Cheers,

VK2COT
VK2COT - Dusan Baljevic