SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Read the man page for the 'useradd' command. You have the right command, but need to specify more than just the username, in order for all the usual stuff to happen.
For example, you want to specify whether or not to create the home directory, and whether or not to use the contents of /etc/skel as the basic home directory contents. Also, you'll want to specify what groups the user will be a member of, including the default group. If the user is to have his own group, you'll need to create that group too, using the "groupadd" or "addgroup" command.
Read the man page for the 'useradd' command. You have the right command, but need to specify more than just the username, in order for all the usual stuff to happen.
For example, you want to specify whether or not to create the home directory, and whether or not to use the contents of /etc/skel as the basic home directory contents. Also, you'll want to specify what groups the user will be a member of, including the default group. If the user is to have his own group, you'll need to create that group too, using the "groupadd" or "addgroup" command.
Sasha
Hello,
man useradd
Code:
bash: man: command not found
Can you post the complete command to add user account?
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810
Rep:
Although, as Sasha says, you have the right command - you may find it easier using the "adduser" script which will create all the directories for you. As root run :
Quote:
adduser user
to add the user "user" to the system. Now you have created a user without creating it's home directory you may find it easier to "userdel user" then run "adduser user" on your system.
What's the best way to add user account in slackware 12.2?
I did this.
Code:
useradd user
But there is nothing except ftp in /home/.
I prefer the 'adduser' that is the frontend for 'useradd' that has been adapted for Slackware. Take a look at the script '/usr/sbin/adduser'. It is well documented.
Be sure to add your user to the groups;
Quote:
users floppy audio video cdrom plugdev power netdev
You can use the up-arrow for the recommended groups after you add the user to the 'users' group. You will see the following;
Quote:
Initial group [ users ]:
Additional UNIX groups:
Users can belong to additional UNIX groups on the system.
For local users using graphical desktop login managers such
as XDM/KDM, users may need to be members of additional groups
to access the full functionality of removable media devices.
* Security implications *
Please be aware that by adding users to additional groups may
potentially give access to the removable media of other users.
If you are creating a new user for remote shell access only,
users do not need to belong to any additional groups as standard,
so you may press ENTER at the next prompt.
Press ENTER to continue without adding any additional groups
Or press the UP arrow to add/select/edit additional groups
:audio cdrom floppy plugdev video power netdev <<< pressed up-arrow to get suggested groups
I should have mentioned, not all Linuxes have both of "adduser" and "useradd" -- rather, I believe there's usually only one of them (the non-script version)
You can run kuser only as root. When trying to run kuser from the KDE Run tool, kuser should prompt you for the root password. You also can run kuser with the kdesu command, but you still need to provide the root password.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.