Active Topics

 


Reply
Thread Tools
int_ua's Avatar
Posts: 676 | Thanked: 1,067 times | Joined on Jul 2010 @ Kyiv, Ukraine
#1
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

Last edited by int_ua; 2010-11-10 at 20:34.
 
Posts: 388 | Thanked: 842 times | Joined on Sep 2009 @ Finland
#2
Originally Posted by int_ua View Post
I can't ssh as user, if someone knows a way, please post it
Set a password for the user (passwd user)

Originally Posted by int_ua View Post
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"
 

The Following 2 Users Say Thank You to hqh For This Useful Post:
benny1967's Avatar
Posts: 3,790 | Thanked: 5,718 times | Joined on Mar 2006 @ Vienna, Austria
#3
Once you're root, you can always do
Code:
su user
to become user for a while.
 

The Following 2 Users Say Thank You to benny1967 For This Useful Post:
int_ua's Avatar
Posts: 676 | Thanked: 1,067 times | Joined on Jul 2010 @ Kyiv, Ukraine
#4
Code:
passwd user
Changing password for user
Enter the new password (minimum of 5, maximum of 8 characters)
that's interesting limit)
 
Posts: 278 | Thanked: 303 times | Joined on Feb 2010 @ Norwich, UK
#5
Originally Posted by int_ua View Post
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.
 

The Following User Says Thank You to nidO For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 21:04.