![]() |
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. |
Re: SUDO usage???
and if i just type "sudo" and enter in X term, what does it do???
|
Re: SUDO usage???
|
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???
|
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. |
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 |
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???
|
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 ;) |
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?"
|
Re: SUDO usage???
with rootsh just use the command "root"
Code:
~ $ root |
Re: SUDO usage???
thanks nbc, in term of linux distribution, i was thinking about fedora, however someone told me it is unstable, what is your suggestion fedora or ubuntu?
|
Re: SUDO usage???
You really don't care. The two are stable enough (if you don't take the development one). It's more a matter of feeling and guts at least for desktop usage.
And you can always install the two and try them. And buy some good linux books. |
Re: SUDO usage???
thanks nbc, in suse, there are lots of things a user can't do without "root" to "protect" the system, if a user messed up, just delete that "user". I wonder if this applies to X term on N900, e.g if you are not "root", you can't do anything to harm/mess up the OS, and when you have gained "root", then a single command can kill n900 off???
|
Re: SUDO usage???
Yes, it's hard to broke the system without root on desktop distrib. As far as I've looked, the security seems not bad at all on n900 but I'm not sure the phone will work well if you delete all the files in /home/user so even without root, be careful when playing with terminal.
|
Re: SUDO usage???
Quote:
I could start a rant about the annoying little differences between various distros (especially Debian based vs Redhat based [for example Ubuntu vs Fedora]) that makes life slightly difficult when you're mostly using/administering one but still have to regularly visit the other too. |
Re: SUDO usage???
guys, where is "/home/user" folder? I can only see MyDocs folder in X Term, any ideas???
|
Re: SUDO usage???
Quote:
|
Re: SUDO usage???
b666m, thanks for your reply. been reading some of your useful replies to others' posts. Quick question for you, i have a UK n900(unbranded), i wonder if there is any benefits to flash the device(it is quite new, no dev/testing app installed)???
Many thanks |
Re: SUDO usage???
Quote:
Code:
cd .. |
Re: SUDO usage???
Quote:
it's still in a very good shape and fast. :) so in my opinion you only have to flash your device if you're noticing any problems ("speed" problems, crashing apps and so on) |
Re: SUDO usage???
the touch screen vibration sometime can be very strong, but sometime can be very weak as well, so i am thinking maybe flash the device may make it behave properly, any ideas?
|
All times are GMT. The time now is 07:43. |
vBulletin® Version 3.8.8