maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   [SOLVED] root is not in the sudoers file. Funny. (https://talk.maemo.org/showthread.php?t=65421)

int_ua 2010-11-10 20:25

[SOLVED] root is not in the sudoers file. Funny.
 
so I just sshed to my N900 with pc-connectivity tools as root (I can't ssh as user, if someone knows a way, please post it) and tried to run python script as user:
Code:

Nokia-N900:/home/user/MyDocs/contribute/accelBlend# sudo -u user python n900_side.py
root is not in the sudoers file.  This incident will be reported.

That's funny, of course, but what if I need to execute something over ssh as normal user? What am I doing wrong?

Code:

# dpkg -s maemo-pc-connectivity | grep Version
Version: 0.5


hqh 2010-11-10 20:29

Re: root is not in the sudoers file. Funny.
 
Quote:

Originally Posted by int_ua (Post 869626)
I can't ssh as user, if someone knows a way, please post it

Set a password for the user (passwd user)

Quote:

Originally Posted by int_ua (Post 869626)
That's funny, of course, but what if I need to execute something over ssh as normal user? What am I doing wrong?

su user -c "echo hello"

benny1967 2010-11-10 20:32

Re: root is not in the sudoers file. Funny.
 
Once you're root, you can always do
Code:

su user
to become user for a while.

int_ua 2010-11-10 20:34

Re: root is not in the sudoers file. Funny.
 
Code:

passwd user
Changing password for user
Enter the new password (minimum of 5, maximum of 8 characters)

that's interesting limit)

nidO 2010-11-10 20:43

Re: root is not in the sudoers file. Funny.
 
Quote:

Originally Posted by int_ua (Post 869640)
Code:

passwd user
Changing password for user
Enter the new password (minimum of 5, maximum of 8 characters)

that's interesting limit)

You can thank crypt + DES for that, it's cryptographically pathetic and limited to 8 characters.


All times are GMT. The time now is 14:08.

vBulletin® Version 3.8.8