Re: 'su lyx' changes file access privileges

2020-10-01 Thread Pavel Sanda
On Thu, Oct 01, 2020 at 01:40:11PM +0200, paolo m. wrote: > % su - user2 > % umask > 002 > > Umask does not change and lyx starts. File privileges are changed, as > before. Interesting. I do not see this problem here (qt4), umask is respected by lyx so the user2 resaves the file as -rw-rw-r--

Re: 'su lyx' changes file access privileges

2020-10-01 Thread paolo m.
Pavel Sanda wrote: > On Wed, Sep 30, 2020 at 10:04:20AM +0200, Pavel Sanda wrote: >> On Sun, Sep 27, 2020 at 04:31:24PM +0200, paolo m. wrote: >> > > Here it is for example >> > > $ umask >> > > 22 >> > > >> > > Kornel >> > >> > Umask is the same for both users: >> > % umask >> > 002 >> >

Re: 'su lyx' changes file access privileges

2020-09-30 Thread Pavel Sanda
On Wed, Sep 30, 2020 at 10:04:20AM +0200, Pavel Sanda wrote: > On Sun, Sep 27, 2020 at 04:31:24PM +0200, paolo m. wrote: > > > Here it is for example > > > $ umask > > > 22 > > > > > > Kornel > > > > Umask is the same for both users: > > % umask > > 002 > > > > > > % grep -i umask /etc/zs

Re: 'su lyx' changes file access privileges

2020-09-30 Thread Pavel Sanda
On Sun, Sep 27, 2020 at 04:31:24PM +0200, paolo m. wrote: > > Here it is for example > > $ umask > > 22 > > > > Kornel > > Umask is the same for both users: > % umask > 002 > > > % grep -i umask /etc/zshenv > umask u=rwx,g=rwx,o=rx Does umask output changes if you invoke su with '-',

Re: 'su lyx' changes file access privileges

2020-09-27 Thread paolo m.
Scott Kostyshak wrote: > On Sun, Sep 27, 2020 at 04:31:24PM +0200, paolo m. wrote: >> Kornel Benko wrote: >> >> > Am Sun, 27 Sep 2020 14:03:44 +0200 >> > schrieb "paolo m. " : >> > >> >> Kornel Benko wrote: >> >> >> >> > Am Sun, 27 Sep 2020 13:19:52 +0200 >> >> > schrieb "paolo m." : >> >> >

Re: 'su lyx' changes file access privileges

2020-09-27 Thread Scott Kostyshak
On Sun, Sep 27, 2020 at 04:31:24PM +0200, paolo m. wrote: > Kornel Benko wrote: > > > Am Sun, 27 Sep 2020 14:03:44 +0200 > > schrieb "paolo m. " : > > > >> Kornel Benko wrote: > >> > >> > Am Sun, 27 Sep 2020 13:19:52 +0200 > >> > schrieb "paolo m." : > >> > > >> >> Sometimes, while in user1

Re: 'su lyx' changes file access privileges

2020-09-27 Thread paolo m.
Kornel Benko wrote: > Am Sun, 27 Sep 2020 14:03:44 +0200 > schrieb "paolo m. " : > >> Kornel Benko wrote: >> >> > Am Sun, 27 Sep 2020 13:19:52 +0200 >> > schrieb "paolo m." : >> > >> >> Sometimes, while in user1 session, I find convenient launching lyx as >> >> user2 >> >> (same group as use

Re: 'su lyx' changes file access privileges

2020-09-27 Thread Kornel Benko
Am Sun, 27 Sep 2020 14:03:44 +0200 schrieb "paolo m. " : > Kornel Benko wrote: > > > Am Sun, 27 Sep 2020 13:19:52 +0200 > > schrieb "paolo m." : > > > >> Sometimes, while in user1 session, I find convenient launching lyx as > >> user2 > >> (same group as user1) to open a lyx file, through 's

Re: 'su lyx' changes file access privileges

2020-09-27 Thread paolo m.
Kornel Benko wrote: > Am Sun, 27 Sep 2020 13:19:52 +0200 > schrieb "paolo m." : > >> Sometimes, while in user1 session, I find convenient launching lyx as >> user2 >> (same group as user1) to open a lyx file, through 'su'. >> As user2 changes and save that file, access privileges are changed as

Re: 'su lyx' changes file access privileges

2020-09-27 Thread Kornel Benko
Am Sun, 27 Sep 2020 13:19:52 +0200 schrieb "paolo m." : > Sometimes, while in user1 session, I find convenient launching lyx as user2 > (same group as user1) to open a lyx file, through 'su'. > As user2 changes and save that file, access privileges are changed as well. > That does not happen w

'su lyx' changes file access privileges

2020-09-27 Thread paolo m.
Sometimes, while in user1 session, I find convenient launching lyx as user2 (same group as user1) to open a lyx file, through 'su'. As user2 changes and save that file, access privileges are changed as well. That does not happen when a text file is opened by kwrite, so it should be something s