Reply
Thread Tools
Posts: 515 | Thanked: 266 times | Joined on Nov 2009 @ Oelsted, Denmark
#11
As already stated You're not going to be able to SSH to the GPRS address. It's most likely NAT'ed...

Otherwise all our phones would have been hacked to death by now (given that packages aren't updated/patched regularly and there is no local firewall)...
__________________
Christian Wilken - tux-POWER.dk!
... May the Source be with You ...
 
Posts: 21 | Thanked: 0 times | Joined on Nov 2010 @ india
#12
DrWilken
Thanks.

But soon after opening the terminal if i execute su - (it doesnt work)
~$su -
su: must be suid to work properly

not sure if still i am doing something wrong
__________________
shail
 
Posts: 21 | Thanked: 0 times | Joined on Nov 2010 @ india
#13
thanks all for letting me know that ssh wont work on GPRS.

I need to try it on WLAN and will update you all with the result.
__________________
shail
 
Posts: 21 | Thanked: 0 times | Joined on Nov 2010 @ india
#14
Originally Posted by DrWilken View Post
Don't run:
Code:
sudo su -
But rather:
Code:
su -
sudo runs commands as "superuser" or root (normally)... And You're not allowed to run su as via sudo as 'user'...

And since You want to change from 'user' to 'root' without using sudo just run su -
But soon after opening the terminal if i execute su - (it doesnt work)
~$su -
su: must be suid to work properly

not sure if still i am doing something wrong
__________________
shail
 
James_Littler's Avatar
Posts: 820 | Thanked: 436 times | Joined on May 2010 @ Portsmouth, UK.
#15
the root password is rootme if I remember correctly
 
Posts: 21 | Thanked: 0 times | Joined on Nov 2010 @ india
#16
Originally Posted by James_Littler View Post
the root password is rootme if I remember correctly
no it doesnt work.
i mean rootme doesnt work.
__________________
shail
 
Posts: 515 | Thanked: 266 times | Joined on Nov 2009 @ Oelsted, Denmark
#17
Originally Posted by shailesh View Post
But soon after opening the terminal if i execute su - (it doesnt work)
~$su -
su: must be suid to work properly

not sure if still i am doing something wrong
I see... I'm not sure this is something I would want to do, but the error message says that the 'su' binary isn't suid which can be solved by doing (as root - i.e. run 'sudo gainroot' or just 'root'):
Code:
chmod u+s /bin/su
__________________
Christian Wilken - tux-POWER.dk!
... May the Source be with You ...
 
Posts: 701 | Thanked: 585 times | Joined on Sep 2010 @ London, England
#18
Originally Posted by shailesh View Post
sudo su - (trying to login as root)
it prompts me to enter the password (if i enter the same password abcde)
it throws an error :-
sorry, try again.
Here it is not asking for your root password but your user password. This is because you are running sudo, which is designed to allow users to run selected commands as root (or another user) therefore it asks for the user password to verify it is the user running it, and then only if the user has permission to run the requested command (as defined in the sudoers file) will it run the command as root.

I believe the default setting for ssh on the N900 is to enable root login, so why aren't you logging in as root with PuTTY if that is what you want? Otherwise why not keep things simple and just type "root" to get a root shell when you are logged in as a user.
 
Posts: 1,341 | Thanked: 708 times | Joined on Feb 2010
#19
Yep, as retsaw said, just typing "root" in x-terminal should change your role to 'root', if rootsh is correctly installed.

If you do "sudo su -", and it asks a password, then you somehow have configured password for a normal "user".

'root' is practically same as 'sudo su -'

'sudo gainroot' is not the same, as it won't change home directory and PATH variable may be different than for a "real" root.

If you have ssh-server installed, then you have also root-password set. You can ssh internally also:
ssh -l root localhost
 
Posts: 21 | Thanked: 0 times | Joined on Nov 2010 @ india
#20
Originally Posted by DrWilken View Post
I see... I'm not sure this is something I would want to do, but the error message says that the 'su' binary isn't suid which can be solved by doing (as root - i.e. run 'sudo gainroot' or just 'root'):
Code:
chmod u+s /bin/su
after trying this it did work (su - and then later entering the password which i set for root makes me root). Thanks alot.
but a slight problem here.
earlier when i was trying to use sudo su -
it was asking for a password (however it was not accepting the paasword) but now if i try to do sudo su -
it says
sorry, user user is not allowed to execute '/bin/su -' as root on Nokia-900.
i am pretty sure this wasnt the case earlier.
can u help me with this as well sir.
__________________
shail
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 06:50.