Operating System - HP-UX
1834174 Members
2609 Online
110064 Solutions
New Discussion

Re: umask setting & ssh -t

 
SOLVED
Go to solution
henk baars
Advisor

umask setting & ssh -t

Hello HP-Admins. I have an issue with umask. If I issue the command "ssh -t /usr/bin/ksh" I end up with a umask 0!. I tested it out on another box with the same ssh version and there the setting is ok 022. settings in /sbin/rc and /etc/profile & /.profile are identical but I assume it is set somewhere else. I only dont know where
2 REPLIES 2
Matti_Kurkela
Honored Contributor
Solution

Re: umask setting & ssh -t

Is your sshd started in a non-standard fashion in the box that has the problem? Maybe someone has hooked it up directly to /etc/inittab.

The standard way would be to start it using /sbin/init.d/secsh (for HP-UX ssh, at least in some versions) or /sbin/init.d/ssh.

In some old (10.20/11.00), unpatched HP-UX box I once saw, I think some custom processes that were started from /etc/inittab had umask 000. As far as I could determine, this was a hardcoded default value from the init process... or maybe even from the kernel. But my memory is hazy on this one.

MK
MK
henk baars
Advisor

Re: umask setting & ssh -t

Mikka gave the the solution, umask setting is in the startup script of sshd (not sure why it is set to this value).