N
N
Nikolai Savelyev2018-04-24 13:22:54
linux
Nikolai Savelyev, 2018-04-24 13:22:54

How to force 1s to save with the necessary rights?

Users work in 1C 8.3 under Ubuntu 16.04.
Everything is fine, but the files from the program are saved with permissions 750. Umask in the system is standard 0022, the user has the same, and even

cat /proc/9474/status 
Name:	1cv8
Umask:	0022
State:	S (sleeping)
Tgid:	9474
Ngid:	0
Pid:	9474
PPid:	2049

But 1c creates files anyway by umask 0027.
Any ideas?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Dmitry Kinash, 2018-04-24
@Dementor

Have you checked the rights of the user under which the 1C:Enterprise server is running? Or do you have a file base?

A
Anton Anton, 2018-04-24
@Fragster

"This is not a bug, this is a feature" https://its.1c.ru/db/v839doc#bookmark:adm:TI000000060

When operating under Linux, 1C:Enterprise creates files with explicitly granted permissions 0660 (read/write privilege for the file owner and owner group). The value of the file creation mode mask (umask) set in the environment can only lead to "tightening" the creation rules, that is, only to clearing already set flags. Because access flags for other users are not set when the platform creates files, it will not be possible to modify them using umask.

O
oneway22, 2018-08-31
@oneway22

For myself, I solved the problem of accessing 1c synchronization files (via a shared folder) by adding the nobody user to the grp1cv8 group.
usermod -a -G grp1cv8 nobody

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question