Reply
Thread Tools
Posts: 856 | Thanked: 1,681 times | Joined on Apr 2010 @ Aleppo ,Syria
#1
Hello everyone
i would like to post some problems/bugs having in my N900
(Probably On every N900)

EDIT : 1-) IS SOLVED Thanks to misiak
and a bit of me
Guide solving it + using sudo (anything) as user
also using sudo (anything) as root

------------------------------------
sudo gainroot

echo "user ALL=(ALL) NOPASSWD: ALL" >> everybody.sudoers
echo "root ALL=(ALL) NOPASSWD: ALL" >> everybody.sudoers
mv everybody.sudoers /etc/sudoers.d
update-sudoers
-----------------------------------

EDIT : 3-) IS SOLVED
by :
installing procps

sudo gainroot
apt-get install procps

----------------------------------------------------------------------
1-)After installing sudser
i'm able to sudo (anything will be started as root) with out sudo gainroot
then entering commands
so the progblem here is
when i gain the root shell
sudo gainroot

then i type
sudo (anything)

i get
root is not in the sudoers file. This incident will be reported.

-------------------------------------

2-) For h-e-n users
the transfer speed betwean n900 and the pc with a usb cable is usualy 15mb/s but if i plugged to n900 a usb drive with h-e-n
then replugged n900 to pc
the transfer speed betwean n900 and the PC goes down to 3mb/s
So i have to reboot to get the full transfer speed again
(and you know how horrible is to make a reboot)!!

-------------------------------------

3-) after installing enchased busybox
ps -A
or ps -aux
doesn't work
can i grab the old ps from the old busybox?and put it in the new one?

So please Need someone to confirm that the problerms i have are bugs/or wrong with my n900

Thanks

Last edited by karam; 2011-08-24 at 22:39.
 

The Following 2 Users Say Thank You to karam For This Useful Post:
Posts: 1,048 | Thanked: 1,127 times | Joined on Jan 2010 @ Amsterdam
#2
Regarding question one: Effectively you are trying to make root "double root" by applying sudo in a root terminal. There for you get that error message. When in a root terminal, don't use sudo but simply the command. Note that the nice thing about sudo is that it executes just the one given command as root, after which the terminal is back to it's normal user state.

The second question I can not answer as I don't use h-e-n.
 
mece's Avatar
Posts: 1,111 | Thanked: 1,985 times | Joined on Aug 2009 @ Åbo, Finland
#3
Originally Posted by karam View Post
Hello everyone
i would like to post some problems/bugs having in my N900
(Probably On every N900)
1-)After installing sudser
i'm able to sudo (anything will be started as root) with out sudo gainroot
then entering commands
so the progblem here is
when i gain the root shell
sudo gainroot

then i type
sudo (anything)

i get
root is not in the sudoers file. This incident will be reported.

Is that normal?
Don't sudo as root. Root does everything sudo

you use sudo as user. Like
sudo cp file.txt /opt/

^^copies file.txt top /opt/ and you can do it without becoming root with sudo gainroot (or just root)

EDIT Thanks for the info on the package btw, I hadn't bother to fix it myself, and I was a little annoyed by the sudo thing actually. didn't know there was an app for it

EDIT2: root is an alias for sudo gainroot, and quite a bit shorter
__________________
Class .. : Meddler, Thread watcher, Developer, Helper
Humor .. : [********--] Alignment: Pacifist
Patience : [*****-----] Weapon(s): N900, N950, Metal music
Agro ... : [----------] Relic(s) : N95, NGage, Tamyia Wild One

Try Tweed Suit for your hardcore twittering needs
http://twitter.com/mece66
I like my coffee black, like my metal.

Last edited by mece; 2011-05-24 at 12:18.
 
Posts: 856 | Thanked: 1,681 times | Joined on Apr 2010 @ Aleppo ,Syria
#4
well thanks for response
Actualy i expected that but if you i did the same thing in any other linux os
ex: easy debian
It doesn't show that problem
 
Posts: 856 | Thanked: 1,681 times | Joined on Apr 2010 @ Aleppo ,Syria
#5
Originally Posted by mece View Post
Don't sudo as root. Root does everything sudo

you use sudo as user. Like
sudo cp file.txt /opt/

^^copies file.txt top /opt/ and you can do it without becoming root with sudo gainroot (or just root)
well it is sometimes needed or sometimes by mistaken i enter sudo (anything)
after i do sudo gainroot
That sometimes drives me crazy

Edit : Glad i helped

Last edited by karam; 2011-05-24 at 12:21.
 
mece's Avatar
Posts: 1,111 | Thanked: 1,985 times | Joined on Aug 2009 @ Åbo, Finland
#6
Originally Posted by karam View Post
well thanks for response
Actualy i expected that but if you i did the same thing in any other linux os
ex: easy debian
It doesn't show that problem
perhaps root is in sudoers in easy debian. Regardless sudo as root is 100% pointless.
__________________
Class .. : Meddler, Thread watcher, Developer, Helper
Humor .. : [********--] Alignment: Pacifist
Patience : [*****-----] Weapon(s): N900, N950, Metal music
Agro ... : [----------] Relic(s) : N95, NGage, Tamyia Wild One

Try Tweed Suit for your hardcore twittering needs
http://twitter.com/mece66
I like my coffee black, like my metal.
 
Posts: 856 | Thanked: 1,681 times | Joined on Apr 2010 @ Aleppo ,Syria
#7
Originally Posted by mece View Post
perhaps root is in sudoers in easy debian. Regardless sudo as root is 100% pointless.
Yep correct
but sometimes when running scripts that need to run as root
and the have sudo (something)
the problem appears
Anyway

How about h-e-n any solution?
 
Posts: 856 | Thanked: 1,681 times | Joined on Apr 2010 @ Aleppo ,Syria
#8
Originally Posted by mece View Post
Don't sudo as root. Root does everything sudo

you use sudo as user. Like
sudo cp file.txt /opt/

^^copies file.txt top /opt/ and you can do it without becoming root with sudo gainroot (or just root)

EDIT Thanks for the info on the package btw, I hadn't bother to fix it myself, and I was a little annoyed by the sudo thing actually. didn't know there was an app for it

EDIT2: root is an alias for sudo gainroot, and quite a bit shorter
Yep i already know this thanks
Also
sudo su
works after installing sudser
 
Posts: 805 | Thanked: 1,605 times | Joined on Feb 2010 @ Gdynia, Poland
#9
Originally Posted by karam View Post
Yep correct
but sometimes when running scripts that need to run as root
and the have sudo (something)
the problem appears
Anyway
You can get rid of this. Just follow these steps to add root to sudoers file

REMOVED, see first post for instructions now

Last edited by misiak; 2011-05-24 at 21:33. Reason: more details
 

The Following User Says Thank You to misiak For This Useful Post:
Posts: 856 | Thanked: 1,681 times | Joined on Apr 2010 @ Aleppo ,Syria
#10
Oh thank you very much misiak
trying it now

But jus a quike question

Will that be effected with passwd command ?
to use it with wiscp

Last edited by karam; 2011-05-24 at 21:47.
 
Reply


 
Forum Jump


All times are GMT. The time now is 02:28.