A
A
Adel Khalitov2019-12-12 19:56:16
linux
Adel Khalitov, 2019-12-12 19:56:16

Why is the user included in the group, the rights are given to the group, but the file cannot be deleted?

fs.unlink

{ Error: EACCES: permission denied, unlink '/home/somepath/uploads/dis/f/Images/00006684/00009229.jpg'
errno: -13,
code: 'EACCES',
syscall: 'unlink',
path: '/home/somepath/uploads/dis/f/Images/00006684/00009229.jpg' }

-rw-rw-r--  1 f     importfoto  63486 Dec  3 19:21 00009229.jpg

node is running as user m
/etc/group
importfoto:x:1005: ..., m

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly Karasik, 2019-12-12
@vitaly_il1

you (the user) need permissions on the directory , not on the file

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question