when adding a new user on linux i created the username and password but when log on it just goes to a blank screen. i read about adding users to a group or something. what are the steps to creating a new working user on linux?
Three answers:
Andrew S
2011-07-11 11:24:15 UTC
You really need to quote the distribution or at least what graphical environment you use - since you're getting a blank screen I take it you are not logging in on the console. The problem usually boils down to missing "skeleton" files that useradd or whatever other tool you use copies to the new user's home directory. Files that may be at issue are .klogin, .startxrc, .xinitrc, .xsession and probably a few others that don't immediately come to mind.
If you have an existing user 'old' that works, you can copy all of their configuration files over to the 'new' user as root:
cp -Rp ~old/.* ~new/
chown -R new ~new
However, this does risk creating security weaknesses if the old user has "sensitive" configuration files. ~/.ssh and ~/.netrc are likely candidates but there may be others.
montrose
2016-11-30 17:24:15 UTC
To create a clean consumer account decrease than any Linux distribution use command observed as useradd. The device administrator is in charge for growing to be account. Login as root consumer (or use sudo command).
Steve N
2011-07-11 11:13:36 UTC
Generic answer: useradd -G {group-name} username
Are you doing this through a terminal? What distro do you use? Are you doing it though a desktop environments user utility? More info means more accurate answer. But the top answer applies to all.
ⓘ
This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.