Is it possible to change the default username in Haiku from user to something else?

When setting-up pre-shared keys between my Haiku workstation and remote devices, it would be nice to be able to type ssh host.tld rather than ssh remoteuser@host.tld.

The default username in Haiku is user (which makes sense since it's designed to be a single-user OS), but altering that when starting remote sessions would be nice.

link|improve this question

feedback

3 Answers

up vote 1 down vote accepted

AFAIK the only way to do this at this point is to manually edit /etc/passwd.

link|improve this answer
feedback

Ssh has a config file located at ~/.ssh/config

Host computer host.tld
Hostname host.tld¬
User remote
Compression yes¬
Port 22
IdentityFile ~/.ssh/pkey¬

With this kind of config you can do

ssh computer

And it will connect to host.tld with username remote on port 22 with compression and the given identity file.

See ssh man for more information.

link|improve this answer
feedback

When you build your own images, you can also specify the user name in your UserBuildConfig file (see build/jam/UserBuildConfig.sample/.ReadMe):

HAIKU_ROOT_USER_NAME = notuser ;
HAIKU_ROOT_USER_REAL_NAME = "Your Name" ;
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.