Skip to content

Commit 1065a78

Browse files
dmabuptzkat
authored andcommitted
config: support default user on IBM i (#65)
setuid() can not accept a 'nobody' parameter on IBM i. The default user (QSECOFR) on IBM i has user id 0. PR-URL: #65 Credit: @dmabupt Reviewed-By: @zkat
1 parent ab0f026 commit 1065a78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/config/defaults.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ Object.defineProperty(exports, 'defaults', {get: function () {
239239
process.getuid() !== 0,
240240
'update-notifier': true,
241241
usage: false,
242-
user: process.platform === 'win32' ? 0 : 'nobody',
242+
user: (process.platform === 'win32' || os.type() === 'OS400') ? 0 : 'nobody',
243243
userconfig: path.resolve(home, '.npmrc'),
244244
umask: process.umask ? process.umask() : umask.fromString('022'),
245245
version: false,

0 commit comments

Comments
 (0)