one ran into the same . . . Couldn't open file "dev_hwid" (Permission denied) . . . error
CAUSE: one was changing default directory away from the default /home/<sid>adm
one was changing default directory away from a directory where dev_hwid file exists.
tcsh:x6dadm@bmw:/> pwd
/
tcsh:x6dadm@bmw:/> saplikey pf=/usr/sap/X6D/SYS/profile/X6D_ASCS01_bmw -show
. . .
***ERROR=> 20 likey_admin_clt: Couldn't open file "dev_hwid" (Permission denied). [likeylat_w.c 508]
E 20 likey_admin_clt: Couldn't open file "dev_hwid" (Permission denied).
. . .
SOLVED: change the default directory to a directory that has the dev_hwid file existing in it
/home/<sid>adm is one of those directories
/sapmnt/<SID>/exe/<codepage>/<os_platform> is another of those directories
tcsh:x6dadm@bmw:/home/x6dadm> find . -name "dev_hwid"
./dev_hwid
tcsh:x6dadm@bmw:/home/x6dadm>
tcsh:x6dadm@bmw:/sapmnt> find . -name "dev_hwid"
./X6D/exe/uc/linuxx86_64/dev_hwid
tcsh:x6dadm@bmw:/sapmnt>
tcsh:x6dadm@bmw:/home/x6dadm> saplikey pf=/usr/sap/X6D/SYS/profile/X6D_ASCS01_bmw -show
SAP License Key Administration - Copyright (C) 2003 - 2007 SAP AG
List of installed License Keys:
==========================================
1. License Key:
------------------------------------------
System : X6D
. . .
Software Product : NetWeaver_DB6
. . .
Type of License Key : permanent
. . .
Validity : valid
2. License Key:
------------------------------------------
System : X6D
. . .
Software Product : Maintenance_DB6
. . .
Type of License Key : permanent
. . .
Validity : valid
------------------------------------------
2 license keys listed.
tcsh:x6dadm@bmw:/home/x6dadm>