Linked Questions

1
vote
2answers
9k views

When to use adduser or useradd [duplicate]

The Question consist of three parts What are the differences between them When to use adduser or useradd and why there is more than one command for the same purpose
3
votes
1answer
148 views

Removing and adding user back again doesn't remove it properly [duplicate]

If I, as a root user, add user milos, then the system asks me to provide some info, which I do. When I, after that, userdel milos, it removes it and removes milos group. Now, if I'm to useradd ...
864
votes
9answers
3.1m views

A command to list all users? And how to add, delete, modify users?

I need a command to list all users in terminal. And how to add, delete, modify users from terminal. That could help in administrating your accounts easily by terminal.
17
votes
5answers
76k views

Ubuntu 14.04: New user created from command line has missing features

I am trying to create a new user in Ubuntu 14.04 LTS from the bash command line. I use the following commands: sudo useradd -c "Samwise the Brave" sam sudo passwd sam Enter new UNIX password: ...
21
votes
1answer
3k views

At what point is the ~/.bashrc file created?

For instance, if I were to run the command adduser test, is the .bashrc created automatically upon creation of the home directory for the user test? If it's not created upon user creation, under what ...
5
votes
2answers
12k views

How can I add a user and set the password for them at the same time?

How do I add a user and set their password at the same time? I tried: useradd user1 -p user@123 Where user1 is their username and user@123 is their password.
4
votes
2answers
6k views

useradd not asking for a password?

I created new users from the terminal using sudo useradd -g mygroup testuser but I wasn’t prompted to set a password? why was that? the users have now been created but I need to set a password for ...
4
votes
1answer
6k views

How to log in as guest user via terminal?

I need to login as a guest user via a terminal for experimental purposes for checking the working of one of scripts. I know I can log in as a different user using su username or su - username. ...
3
votes
1answer
759 views

Arrows do not work, all I see is ^[[A ^[[B^ [[C ^[[D

That should be something obvious, but I can't seem to find a way to fix it. I am using iTerm and logging in to Ubuntu server remotely. This is what I see when I press arrows: $ ^[[A^[[B^[[C^[[D ...
4
votes
2answers
244 views

Deny Firefox access to home directory

Is there a way to deny Firefox access to files in the home directory? Every time an ADSL modem light is blinking suspiciously, I am worried about my files being transferred to a hacker.
0
votes
3answers
306 views

How to change the prompt of a user, so that it shows the current directory?

I created user 'user11' in Linux and changed its home directory using the -d option but when I login with this user, it shows '-bash-4.3$'. I want to know: What is the meaning of '-bash-4.3' and ...
-1
votes
1answer
161 views

How to add users from text file into the unix system?

I have a homework that require creating text file of users in unix and then reading each line of the file and actually adding them to the system? How can this be done? what i have done: https://i....
1
vote
1answer
51 views

No home folder for user

Although I have explicitly specified a home directory for a newly added user, after the login, there is no home for that user. mahmood@ubuntu1604:~$ sudo useradd test -d /home/test -s /bin/bash ...