Jump to content

Photo

Bodhi 2.2 sudo bug in terminal?


  • Please log in to reply
9 replies to this topic

#1 tmq

tmq

    Member

  • Members
  • 38 posts

Posted 12 January 2013 - 02:31 AM

In a fresh install of Bodhi 2.2, lxterminal won't recognize "sudo" - what am I missing?

xx@xxxx-desktop:~$ sudo
usage: sudo [-D level] -h | -K | -k | -V
usage: sudo -v [-AknS] [-D level] [-g groupname|#gid] [-p prompt] [-u user
            name|#uid]
usage: sudo -l[l] [-AknS] [-D level] [-g groupname|#gid] [-p prompt] [-U user
            name] [-u user name|#uid] [-g groupname|#gid] [command]
usage: sudo [-AbEHknPS] [-C fd] [-D level] [-g groupname|#gid] [-p prompt] [-u
            user name|#uid] [-g groupname|#gid] [VAR=value] [-i|-s] [<command>]
usage: sudo -e [-AknS] [-C fd] [-D level] [-g groupname|#gid] [-p prompt] [-u
            user name|#uid] file ...
xx@xxxx-desktop:~$ 
-

(time on a distro that uses "sudo" evidently)

Edited by tmq, 13 January 2013 - 04:06 PM.


#2 Jeff

Jeff

    Lead Developer

  • Developer
  • 10857 posts
  • LocationBloomington, IL

Posted 12 January 2013 - 02:33 AM

What exactly are you trying to do here? The sudo command you ran above just returned AOK.

~Jeff

#3 tmq

tmq

    Member

  • Members
  • 38 posts

Posted 12 January 2013 - 04:47 AM

What exactly are you trying to do here? The sudo command you ran above just returned AOK.


Good grief - I believe was thinking of slackware derivitives - su (then) pw = xxx

But root priviliges in terminal? What executes efm? I tried "su enlightenment_filemanager"...

#4 swordplay

swordplay

    Member

  • Members
  • 343 posts
  • LocationHonolulu

Posted 12 January 2013 - 05:03 AM

To run su

run

sudo su

and give your password. You'll then be in a root prompt.

Otherwise, just run whatever command you want with sudo, IE:

sudo synaptic

for instance, give your password, and it will be run as root.

Aloha.

PS: sudo means "do as su".

#5 Timmy

Timmy

    Resident Know-It-All

  • Moderators
  • 1419 posts
  • LocationSkåne, Sweden

Posted 12 January 2013 - 06:38 AM

PS: sudo means "do as su".


PS: sudo means "substitute user, do". ;)

Otherwise very solid advice.

``Every time I see some piece of medical research saying that caffeine is good for you, I high-five myself. Because I'm going to live forever.'' — Linus Torvalds
``Don’t argue with idiots because they will drag you down to their level and then beat you with experience.'' — Greg King
0DF7C09A

 


The Bodhi Linux Wiki


#6 swordplay

swordplay

    Member

  • Members
  • 343 posts
  • LocationHonolulu

Posted 12 January 2013 - 07:09 AM

Well, I guess in my mind it means that -- should have researched it.

sudo pretend I knew that.

Aloha.

#7 conspiritech

conspiritech

    Member

  • Members
  • 53 posts

Posted 12 January 2013 - 02:41 PM

That's the short help info for sudo. To do something you have to put a command after sudo on the line. Or do 'sudo -i' to enter a an interactive superuser shell.

#8 Timmy

Timmy

    Resident Know-It-All

  • Moderators
  • 1419 posts
  • LocationSkåne, Sweden

Posted 12 January 2013 - 03:11 PM

I just feel obliged to point out that it's not always a giod idea to run powerful GUI applications like filemanagers as root. That's obviously something you'll have to decide for yourself, but keep in mind; 'to err is human'.

``Every time I see some piece of medical research saying that caffeine is good for you, I high-five myself. Because I'm going to live forever.'' — Linus Torvalds
``Don’t argue with idiots because they will drag you down to their level and then beat you with experience.'' — Greg King
0DF7C09A

 


The Bodhi Linux Wiki


#9 tmq

tmq

    Member

  • Members
  • 38 posts

Posted 13 January 2013 - 04:04 PM

I just feel obliged to point out that it's not always a giod idea to run powerful GUI applications like filemanagers as root. That's obviously something you'll have to decide for yourself, but keep in mind; 'to err is human'.


Of course :) - occasionally I poke around filesystem folders (icons/themes) or even empty the trash manually.

#10 Timmy

Timmy

    Resident Know-It-All

  • Moderators
  • 1419 posts
  • LocationSkåne, Sweden

Posted 13 January 2013 - 04:22 PM

I would recommend using the traditional tools like cp, mv, rm etc for jobs like that. Most of them (if not all) have the -i and -v flags, and they're there for a reason. ;)

Now, you seem to know what you're doing, and as I said it's totally up to you. I just feel that everyone should know about this, and especially if an inexperienced user finds this thread.

May the FOSS be with you. :3

``Every time I see some piece of medical research saying that caffeine is good for you, I high-five myself. Because I'm going to live forever.'' — Linus Torvalds
``Don’t argue with idiots because they will drag you down to their level and then beat you with experience.'' — Greg King
0DF7C09A

 


The Bodhi Linux Wiki





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users