> > 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 change the permision to 750 after creation a new user. > Could I change the default behavior without manual change the permission? > > -- > Best regards, > Denis Mikhlevich > RIPE NCC nic-hdl: IPv6-RU > >
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. Do note this may impact packages when they create users. It is far safer to change the permissions after the user creation. Chuck