Re: Home folder default permission

2023-03-23 Thread Nick Holland
On 3/23/23 14:36, Matthew Weigel wrote: On 2023-03-23 11:53 am, ch...@qatland.com wrote: I did not look at the code at all for this. Only using existing programs. If this should not be working then a patch will be needed somewhere. I didn't give it a try, but I took your report at face val

Re: Home folder default permission

2023-03-23 Thread Carsten Reith
> > I did not look at the code at all for this. Only using existing programs. > If this should not be working then a patch will be needed somewhere. > However I will state that having the ability to set the default > permissions somewhere would be useful, and a requirement in some > environment

Re: Home folder default permission

2023-03-23 Thread Denis Mikhlevich
Hi Chuck, Thank you a lot, for your clear answer! This is exactly what I wanted to find out. -- Best regards, Denis Mikhlevich RIPE NCC nic-hdl: IPv6-RU 23.03.2023 16:54, ch...@qatland.com wrote: useradd makes use of the permissions of /etc/skel The defaults is 755. If you change it to 7

Re: Home folder default permission

2023-03-23 Thread Matthew Weigel
On 2023-03-23 11:53 am, ch...@qatland.com wrote: I did not look at the code at all for this. Only using existing programs. If this should not be working then a patch will be needed somewhere. I didn't give it a try, but I took your report at face value and looked closer at the code. When i

Re: Home folder default permission

2023-03-23 Thread chuck
> On 2023-03-23 7:54 am, ch...@qatland.com wrote: >> >> useradd makes use of the permissions of /etc/skel The defaults is 755. >> If you change it to 750 new user directories will then have 750 as the >> default on their home directories. > > Does it? Looking at the code, it doesn't copy /etc/ske

Re: Home folder default permission

2023-03-23 Thread Matthew Weigel
On 2023-03-23 7:54 am, ch...@qatland.com wrote: useradd makes use of the permissions of /etc/skel The defaults is 755. If you change it to 750 new user directories will then have 750 as the default on their home directories. Does it? Looking at the code, it doesn't copy /etc/skel, it runs "m

Re: Home folder default permission

2023-03-23 Thread Jasper Valentijn
Op do 23 mrt. 2023 07:54 schreef Kastus Shchuka : > On Thu, Mar 23, 2023 at 06:08:05AM +0100, Jasper Valentijn wrote: > > Op di 21 mrt. 2023 20:33 schreef Denis Mikhlevich : > > > > > > > > By hand I change the permision to 750 after creation a new user. > > > Could I change the default behavior

Re: Home folder default permission

2023-03-23 Thread chuck
> > Hello, > > I'm setting up the new server under OpenBSD 7.2 > The aim of this server is the ssh terminal server for a few dozen logins > When I created new users by 'useradd -m new-user' command I discovered > that default persmission of home folders of the new users is 755 > For me it's oddly

Re: Home folder default permission

2023-03-22 Thread Kastus Shchuka
On Thu, Mar 23, 2023 at 06:08:05AM +0100, Jasper Valentijn wrote: > Op di 21 mrt. 2023 20:33 schreef Denis Mikhlevich : > > > > > By hand I change the permision to 750 after creation a new user. > > Could I change the default behavior without manual change the permission? > > > > https://man.ope

Re: Home folder default permission

2023-03-22 Thread Jasper Valentijn
Op di 21 mrt. 2023 20:33 schreef Denis Mikhlevich : > > By hand I change the permision to 750 after creation a new user. > Could I change the default behavior without manual change the permission? > https://man.openbsd.org/login.conf.5 >

Home folder default permission

2023-03-21 Thread Denis Mikhlevich
Hello, I'm setting up the new server under OpenBSD 7.2 The aim of this server is the ssh terminal server for a few dozen logins When I created new users by 'useradd -m new-user' command I discovered that default persmission of home folders of the new users is 755 For me it's oddly. By hand I