maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   MeeGo / Harmattan (https://talk.maemo.org/forumdisplay.php?f=45)
-   -   How to gain root privileges on N9? (https://talk.maemo.org/showthread.php?t=79147)

visiting01 2011-10-16 13:29

How to gain root privileges on N9?
 
How to gain root privileges on N9?

I have turned developer mode on and I can access a terminal.

(Sorry if this question has been responded already.)

Manatus 2011-10-16 13:41

Re: How to gain root privileges on N9?
 
Type 'devel-su'. Password is 'rootme' if I remember correctly. Though it still doesn't have full privileges to everywhere, you can at least kill the ads from web pages with special hosts-file etc.

Dave999 2011-10-16 14:02

Re: How to gain root privileges on N9?
 
yeah, its not like the mighty n900 :(

Alfred 2011-10-16 14:30

Re: How to gain root privileges on N9?
 
Quote:

Originally Posted by Chuck Norris (Post 1109519)
yeah, its not like the mighty n900 :(

or YOU Chuck:)

visiting01 2011-10-16 15:18

Re: How to gain root privileges on N9?
 
Quote:

Originally Posted by Manatus (Post 1109515)
Type 'devel-su'. Password is 'rootme' if I remember correctly. Though it still doesn't have full privileges to everywhere, you can at least kill the ads from web pages with special hosts-file etc.

Thank you for the information!
It worked.

Makeclick 2011-10-24 16:32

Re: How to gain root privileges on N9?
 
is there rootsh like N900? or must i always devel-su and rootme?

RobbH 2011-10-27 00:29

Re: How to gain root privileges on N9?
 
Quote:

Originally Posted by Manatus (Post 1109515)
Type 'devel-su'. Password is 'rootme' if I remember correctly. Though it still doesn't have full privileges to everywhere, you can at least kill the ads from web pages with special hosts-file etc.

Can anyone elaborate on the limitations of root access on the N9? What privileges are missing?

reinob 2011-10-27 08:19

Re: How to gain root privileges on N9?
 
@RobbH,

Look here: http://talk.maemo.org/showthread.php?t=76635
and here: http://wiki.maemo.org/N950/Aegis-notes

Basically, root is not a super-user anymore, but has to comply with whatever policy is defined by Nokia.

RobbH 2011-10-27 10:59

Re: How to gain root privileges on N9?
 
Quote:

Originally Posted by reinob (Post 1114406)
@RobbH,
Basically, root is not a super-user anymore, but has to comply with whatever policy is defined by Nokia.

Thanks. I don't yet have a good understanding of Aegis, but it appears to me that any privileges users have can be taken away at any time, by Nokia.

Is that a reasonably accurate summary of the problem?

reinob 2011-10-27 11:55

Re: How to gain root privileges on N9?
 
Yup. It's supposed to protect the N9 from its owner :)

Manatus 2011-10-28 07:40

Re: How to gain root privileges on N9?
 
Nokia designed Harmattan thinking that it will be the next major platform for them and they had to be serious about it. I think aegis-thing is mostly done to comply with common requirements from companies to have easily and securely wiped phones, and to protect users from malicious software.

You can see with mount command that they are using aegisfs filesystem for directories containing sensitive user data. I assume this is encrypted filesystem.
Can someone confirm that it has encryption? If it has, we probably don't need to take care of encrypting stuff by ourselves.

EDIT: It is possible that aegisfs gets enabled only when you start using MfE account, depending on Exchange server policies. It'd be nice to know more about when and generally what data gets encrypted.

MaikEF 2011-11-05 16:46

Re: How to gain root privileges on N9?
 
Quote:

Originally Posted by visiting01 (Post 1109511)
How to gain root privileges on N9?

I have turned developer mode on and I can access a terminal.

(Sorry if this question has been responded already.)


at 1st: sorry for my bad english :-)

to be root you must in file /etc/ssh/sshd_config the entry
PermitRootLogin no change to PermitRootLogin yes

thats the things i´ve done to go root like n900:

1.) activate developer-mode in phone -> settings -> security
2.) login in terminal as user: ´devel-su´, Password= ´rootme´
3.) keep own user-password: ´passwd user´
4.) open winscp with ´user´ and your own user-password
5.) in winscp open terminal (STRG/CTR+T) and type ´cp /etc/ssh/sshd_config /home/user/´
6.) now you can in change and save the file
7.) take N9 in your hand and open terminal -> ´devel-su´, Password= ´rootme´ and type ´cp /home/user/sshd_config /etc/ssh/sshd_config´
8.) then type ´pkill -o sshd´ or just reboot, and you should be have full root-privileges and you can login as root.

hope this help you.

shmerl 2011-11-05 23:38

Re: How to gain root privileges on N9?
 
As was discussed already, opening root ssh access is not a good idea. Use regular "user" user for ssh access, and gain root rights with devel-su.

babraq 2011-11-06 11:14

Re: How to gain root privileges on N9?
 
Quote:

Originally Posted by MaikEF (Post 1118788)
at 1st: sorry for my bad english :-)

to be root you must in file /etc/ssh/sshd_config the entry
PermitRootLogin no change to PermitRootLogin yes

<SNIP>

I had root login via SSH permitted already on N9 after activating developer mode.

MaikEF 2011-11-06 11:22

Re: How to gain root privileges on N9?
 
Quote:

Originally Posted by babraq (Post 1119014)
I had root login via SSH permitted already on N9 after activating developer mode.

in WinSCP/Putty?
Whats the Username in WinSCP/Putty to work with Rootprivileges?

F2thaK 2011-11-06 11:53

Re: How to gain root privileges on N9?
 
Quote:

Originally Posted by babraq (Post 1119014)
I had root login via SSH permitted already on N9 after activating developer mode.

the latest update for SSH disables root logins

admiral0 2011-11-06 12:22

Re: How to gain root privileges on N9?
 
lrn2ssh winnabs.

babraq 2011-11-06 13:44

Re: How to gain root privileges on N9?
 
Quote:

Originally Posted by MaikEF (Post 1119019)
in WinSCP/Putty?
Whats the Username in WinSCP/Putty to work with Rootprivileges?

You're not getting it.

SSH consist of two parts -- server and client. You are always connecting from client to server. On N9 is running server on which you can connect from your PC with WinSCP/Putty or other client.

First you need to change password for default user on N9. Open terminal and type "devel-su", when prompted for password, type "rootme". Then you have local root shell access. Now, type "passwd user", which will change password for default user. Type anything you want to be your password. Now, logout -- press Ctrl-D or type "logout".

Now, on your PC start Putty and try connecting to your phone with proper IP address as user named "user". When you are asked for password, type whatever you typed before, when you were changing password. Now, you should be successfully logged to your phone. If you want root privilegies, just type "devel-su" and password is again "rootme".

It's not neccessary, but advised you will change password for root too.

I hope, you'll find this little guide helpful. :)

babraq 2011-11-06 13:55

Re: How to gain root privileges on N9?
 
Quote:

Originally Posted by F2thaK (Post 1119030)
the latest update for SSH disables root logins

When was it? After latest update to openssh-server I was still able to connect as root. Hmmmm. Obviously, reboot is needed to restart server. Tested it just now, you were right.

blakkpanter 2011-12-13 00:06

Re: How to gain root privileges on N9?
 
I changed the user password, developer password and root password, and can log in under root through ssh


All times are GMT. The time now is 10:49.

vBulletin® Version 3.8.8