Linked Questions

0 votes
1 answer
200 views

Ubuntu22.04: useradd don't work as expected

I setup a factory new ubuntu 22.04. I run useradd test1, there is no home directory created. I run useradd -m test2, there is home directory with ~/.bashrc and some other environment files. But the ...
Bryan Chen's user avatar
-1 votes
1 answer
770 views

Cannot log-in into my linux ubuntu and lost my home directory and its files

So today i was learning a bit of linux using my linux ubuntu 20.04, i was learning about autofs. I installed autofs and configured it as was shown on the video i was watching. So it was time to create ...
Lihle's user avatar
  • 1
5 votes
1 answer
2k views

What's the difference between the -d and -m options for useradd?

When we use useradd, what is the difference between -d and -m? Because the definitions of both sound similar, which is responsible for creating a home directory.
shaunx333's user avatar
1 vote
1 answer
503 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 ...
mahmood's user avatar
  • 1,875
-2 votes
1 answer
2k 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....
user avatar
12 votes
2 answers
42k 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.
Bindass Amarjeet's user avatar
22 votes
1 answer
8k 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 ...
Michael's user avatar
  • 533
4 votes
2 answers
700 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.
Dmytro's user avatar
  • 41
3 votes
1 answer
246 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 ...
errorous's user avatar
  • 143
0 votes
3 answers
1k 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 ...
Puneet Dixit's user avatar
18 votes
5 answers
82k 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: ...
martin_0004's user avatar
  • 1,003
1 vote
2 answers
12k 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
Maythux's user avatar
  • 84.2k
4 votes
1 answer
5k 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 ...
firedev's user avatar
  • 153
8 votes
3 answers
16k 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 ...
Mo.'s user avatar
  • 333
4 votes
1 answer
8k 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. ...
jobin's user avatar
  • 27.7k

15 30 50 per page