We have moved to a new Sailfish OS Forum. Please start new discussions there.
-1

SailfishOS SDK emulator root password [answered]

asked 2014-09-07 14:52:20 +0200

alloj gravatar image

updated 2014-09-08 17:42:36 +0200

kaltsi gravatar image

What is the root password for the SailfishOS SDK emulator? I went to Developer Settings and changed the password there but it seems that it changes it for user nemo. I'm using QProcess to launch a command. Thanks!

edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by molan
close date 2016-09-22 00:58:21.295235

Comments

There's no default root password. If you absolutely want to set up a root password, you can do it using the normal passwd command after logging in as root using the ssh key login as described by @dthierbach.

kaltsi ( 2014-09-08 17:47:14 +0200 )edit

1 Answer

Sort by » oldest newest most voted
2

answered 2014-09-08 06:49:06 +0200

dthierbach gravatar image

Is there even a password? At least in my SDK, the root password seems to be disabled (entry ! in /etc/shadow).

I don't know what you are trying to do, and I've no experience with QProcess, but you can use

ssh -p 2223 -i <SDKdir>/SailfishOS/vmshare/ssh/private_keys/SailfishOS_Emulator/root root@localhost

to login or execute commands as root on the emulator VM. I'm not sure if it's desireable to allow random applications to gain root rights in the first place, so I doubt it's possible.

edit flag offensive delete publish link more

Question tools

Follow
1 follower

Stats

Asked: 2014-09-07 14:52:20 +0200

Seen: 1,164 times

Last updated: Sep 08 '14