S
S
Sergey Khlopov2020-11-03 10:30:28
ubuntu
Sergey Khlopov, 2020-11-03 10:30:28

Is it possible that when connecting via SSH to the server by default, the user was already in a certain folder?


useradd test
Hello, tell me please, I created a /home/test
user on the server with the command
/var/www/site/ru/
:

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Saboteur, 2020-11-03
@Shlop

You can add cd /var/www/site/ru (.profile, .bashrc) in the user profile
You can change the user's home directory in /etc/passwd
depending on what you need

S
shurshur, 2020-11-03
@shurshur

usermod -d /var/www/site/ru test

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question