Bodhi Linux Forums: Bodhi 2.2 sudo bug in terminal? - Bodhi Linux Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Bodhi 2.2 sudo bug in terminal?

#1 User is offline   tmq 

  • Member
  • Group: Members
  • Posts: 35
  • Joined: 22-January 12

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)

This post has been edited by tmq: 13 January 2013 - 04:06 PM

0

#2 User is offline   Jeff 

  • Lead Developer
  • Group: Developer
  • Posts: 9173
  • Joined: 23-November 10
  • 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
0

#3 User is offline   tmq 

  • Member
  • Group: Members
  • Posts: 35
  • Joined: 22-January 12

Posted 12 January 2013 - 04:47 AM

View PostJeff, on 12 January 2013 - 02:33 AM, said:

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"...
0

#4 User is offline   swordplay 

  • Member
  • Group: Members
  • Posts: 333
  • Joined: 08-June 12
  • 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".
Posted Image
1

#5 User is offline   Timmy 

  • Resident Know-It-All
  • Group: Moderators
  • Posts: 1394
  • Joined: 03-March 11
  • LocationSkåne, Sweden

Posted 12 January 2013 - 06:38 AM

View Postswordplay, on 12 January 2013 - 05:03 AM, said:

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
0x092F4A92


Bodhi Linux QuickStart Guide
The Bodhi Guide to Enlightenment
Marking a thread as [SOLVED]
The Bodhi Linux Wiki
Help us, help you!
Handy tips for Bodhi

0

#6 User is offline   swordplay 

  • Member
  • Group: Members
  • Posts: 333
  • Joined: 08-June 12
  • 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.
Posted Image
0

#7 User is offline   conspiritech 

  • Member
  • Group: Members
  • Posts: 51
  • Joined: 12-January 12

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.
0

#8 User is offline   Timmy 

  • Resident Know-It-All
  • Group: Moderators
  • Posts: 1394
  • Joined: 03-March 11
  • 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
0x092F4A92


Bodhi Linux QuickStart Guide
The Bodhi Guide to Enlightenment
Marking a thread as [SOLVED]
The Bodhi Linux Wiki
Help us, help you!
Handy tips for Bodhi

0

#9 User is offline   tmq 

  • Member
  • Group: Members
  • Posts: 35
  • Joined: 22-January 12

Posted 13 January 2013 - 04:04 PM

View PostTimmy, on 12 January 2013 - 03:11 PM, said:

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.
0

#10 User is offline   Timmy 

  • Resident Know-It-All
  • Group: Moderators
  • Posts: 1394
  • Joined: 03-March 11
  • 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
0x092F4A92


Bodhi Linux QuickStart Guide
The Bodhi Guide to Enlightenment
Marking a thread as [SOLVED]
The Bodhi Linux Wiki
Help us, help you!
Handy tips for Bodhi

0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users