Skip to content

u/codemac

In this archive from Nov 2009 to May 2021

0
posts
29
comments
0
media
96
score

Top comments

From man useradd:

-m, --create-home

Create the user's home directory if it does not exist. The files and directories contained in the skeleton directory (which can be defined with the -k option) will be copied to the home directory.

By default, if this option is not specified and CREATE_HOME is not enabled, no home directories are created.

And if I cat /etc/login.defs | grep CREATE_HOME I get no results. You must provide the -m option to useradd (as well as the user's home directory) as those are the defaults for /etc/login.defs. Yes arch should change them, but it's been like this for a long time.

Thanks for the great video!

12 points

Awesome!

Learning arch will serve you well, because you are actually rarely "learning arch". You're usually learning bluez, or kernel parameters, or udev rules, etc.

The vanilla approach can be frustrating, but it means time you spend debugging and understanding at least taught you something about the wider OSS linux ecosystem, rather than just arch.

I still to this day have no idea wtf is going on when I use debian, but because I've used things like arch for so long - I can figure out how to fix my problems and move on.

7 points

No way, then it would differ from Debian etc.

... lots of things in arch differ from "Debian etc" due to the fact that programs aren't patched.

and you have to provide a way of not creating the home directory.

Rejoice, because it's literally the very next sentence in the manpage! From man useradd again:

   -M
       Do no create the user's home directory, even if the system wide
       setting from /etc/login.defs (CREATE_HOME) is set to yes.
7 points

Subreddits

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.