Hot answers tagged users
Put the file in directory /etc/skel/Desktop/ in the chrooted version of you custom build. If the directory does not exist yet you need to create it. /etc/skel/ is used to create the "skeleton" for the new users /home/$USER/ directories and content.
If you only had read man useradd you would have seen: useradd is a low level utility for adding users. On Debian, administrators should usually use adduser(8) instead. low level utility!!! To add a user, use adduser instead. Moreover, if you read carefully what the -d option does (still in man useradd): -d, --home HOME_DIR The new user will ...
According with man useradd, -d /home/linda option will not create the directory /home/linda, if this is missing. So, you have to create it manually. To do this, run the followings commands in terminal: sudo -i #to get root privileges mkdir /home/linda #to create the directory /home/linda cp /etc/skel/* /home/linda ...
You can also modify /etc/pam.d/common-session to make it so that a user's home directory will be created on first log in. Add the following line to that file. ... session required pam_mkhomedir.so This is particularly useful if your system is on a network where the users are managed externally to your machine, by LDAP for instance.
You should be able to use this command: sudo usermod -a -G vboxusers $USER After that, check that you are in the vboxusers group with this command, make sure that vboxusers is in the shown list: groups $USER
Use adduser. DESCRIPTION adduser and addgroup add users and groups to the system according to command line options and configuration information in /etc/adduser.conf. They are friendlier front ends to the low level tools like useradd, groupadd and usermod programs, by default choosing Debian policy conformant UID ...
Create your own user and make it an administrator. Remove the other administrator. You can do all of this in the "user account" section (dash, "users"): The + adds a new user. The - removes one. I would advice to 1st make the new administrator and confirm it works as intended before you remove the original one.
Only top voted, non community-wiki answers of a minimum length are eligible