سؤال

I have an Synology DS212+, and when I log with root putty via ssh, I always enter in the folder /root.

How can I change that? I want to enter by default in /volume1. Is it possible to do this?

Thanks in advance.

هل كانت مفيدة؟

المحلول

go edit /etc/passwd and change the home directory that root has. Change

root:x:0:0:root:/root:/bin/ash

to

root:x:0:0:root:/volume1:/bin/ash
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top