Operating System - Linux
1755056 Members
3184 Online
108829 Solutions
New Discussion юеВ

rexec/remsh command creates restricted file in HP-UX B.11.23 U ia64 box

 
rab_2
Occasional Advisor

rexec/remsh command creates restricted file in HP-UX B.11.23 U ia64 box

Not sure if this question is appropriate for this section.. but still posting it just so if someone can help, or someone faced similar problem..


To put the problem in short,
The rexec and remsh command targetting to HP-UX ia64 box is creating file
with -rw------- permission in HP-UX B.11.23 U ia64 box. Whereas we want the created file permission to be -rw-rw-rw-
However, HP-UX B.11.11 U 9000/800 boxes are all good.

Example :
HPPARISC$ remsh -l -n touch afile it creates very restricted file in IA64 box.

-rw------- 1 adcf81t zxxincb1 0 Jul 25 17:17 afile

whereas when I run following command
HPIA64$ remsh -l -n touch afile it creates file with good required permission in PARISC box.

-rw-rw-rw- 1 adcf81t zxxincb1 0 Jul 25 17:18 afile

The man page for rexecd and remshd both are referring to same /etc/default/security file.

So I added following line in
/etc/default/security file in HP-UX B.11.23 U ia64 Unix box.
UMASK=000

Just wondering if the machine needs to be restarted before this comes into effect ? or anything I missed or wrongly did ?

Because after even adding that line in that file, it didn't work.
Although the man page of security(4) says that
default value: UMASK=0

Any tip I could try ?

Thanks
Rabi
3 REPLIES 3
Robert-Jan Goossens
Honored Contributor

Re: rexec/remsh command creates restricted file in HP-UX B.11.23 U ia64 box

Hi,

# grep -i umask /sbin/init.d/inetd

if you change the umask setting, you will need to restart the /sbin/init.d/initd daemon.

US
http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en&docId=emr_na-c00921584-1
Europe
http://www4.itrc.hp.com/service/cki/docDisplay.do?docLocale=en&docId=emr_na-c00921584-1

Robert-Jan
rab_2
Occasional Advisor

Re: rexec/remsh command creates restricted file in HP-UX B.11.23 U ia64 box

I see that the inetd file is very old.
-r-xr-xr-x 1 bin bin 1611 Sep 3 2003 /sbin/init.d/inetd

Do you mean if I change anything in /etc/default/security file, like adding a line UMASK=000 in there... and then I need to restart the inetd deamon to make that effective ?
Please confirm.

Thanks for your quick response.

Regards,
Rabi
skt_skt
Honored Contributor

Re: rexec/remsh command creates restricted file in HP-UX B.11.23 U ia64 box

did u fix the mentioned issue?