maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   SUDO usage??? (https://talk.maemo.org/showthread.php?t=47733)

roja 2010-03-18 23:39

SUDO usage???
 
Guys, I am new to Linux, and trying to learn. in X-term,
I put: "sudo", then it gives me "Usage -K etc", I wonder what these "-K" "-V" for? and how I can use them???

I use "su" to gain root in opensuse, what does "sudo" mean in N900(Busybox)??? Please educate me, many thanks.

roja 2010-03-19 00:25

Re: SUDO usage???
 
and if i just type "sudo" and enter in X term, what does it do???

nbc 2010-03-19 00:28

Re: SUDO usage???
 
A good tutorial for beginners http://www.unixtutorial.org/2008/01/sudo-tutorial/

Good reading

roja 2010-03-19 00:43

Re: SUDO usage???
 
thanks nbc, however i still wonder if i just type "sudo" and enter in X term on n900, what does it do???

fuzzbuzz 2010-03-19 00:45

Re: SUDO usage???
 
By default, you're not allowed to become root on the N900.

To do that, you must first install a package called "rootsh".

After that, you may type "sudo gainroot" to become root. At that point, if you like, you can set your own root password. This would allow you to type "su" and enter your root password to become root, like in Suse.

"sudo" is used to allow a user to execute a command as THEMSELVES, but with root privileges. It is also available on Suse, and all other unixes.

nbc 2010-03-19 00:54

Re: SUDO usage???
 
absolutely nothing. sudo in default usage take at list one argument, this argument is the command you want to use under another account. An example that won't work

Code:

sudo cat /etc/sudoers
If you really want to learn linux, try with another distrib on a desktop computer. the n900 has a linux but a really weird linux compare to other distributions.

roja 2010-03-19 00:58

Re: SUDO usage???
 
Thanks fuzzbuzz and nbc, so my understanding is that simply type "sudo" and enter will do nothing on n900 but gives me a list of parameters I can use with sudo command, correct???

nbc 2010-03-19 01:01

Re: SUDO usage???
 
Yes you're right. If you want to complete sudo documentation "man sudo" doesn't work on maemo (no man) but you can find it on internet : http://www.courtesan.com/sudo/man/sudo.html

reading reading, doing, the hard path to knowledge ;)

roja 2010-03-19 01:01

Re: SUDO usage???
 
and if i would like to gain root, i will need to install "rootsh", and then can i use "sudo" to gain root? or it has to be "sudo gainroot?"

nbc 2010-03-19 01:04

Re: SUDO usage???
 
with rootsh just use the command "root"

Code:

~ $ root

BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso26+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

Nokia-N900-51-1:~#

Be careful when you're root


All times are GMT. The time now is 03:38.

vBulletin® Version 3.8.8