You are not logged in.

#1 2012-11-17 00:46:43

skiabox
Member
Registered: 2012-11-15
Posts: 23

Sudo command not found

I am trying to execute sudo but I get the following message:

bash: sudo: command not found

- echo $PATH gives :

/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/bin/core_perl

- more .bashrc gives :

#
# ~/.bashrc
#

# If not running interactively, don't do anything
[[ $- != *i* ]] && return

alias ls='ls --color=auto'
PS1='[\u@\h \W]\$ '

Offline

#2 2012-11-17 00:48:10

elp
Member
Registered: 2007-04-10
Posts: 27

Re: Sudo command not found

Have you installed it? pacman -S sudo

Offline

#3 2012-11-17 00:55:24

skiabox
Member
Registered: 2012-11-15
Posts: 23

Re: Sudo command not found

Oh, man.Thank you so much.It works now!

Offline

#4 2012-11-17 01:10:58

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: Sudo command not found

Please mark your thread as [solved].

Also, in future, please use

code tags

when posting code.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#5 2012-11-17 02:05:46

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: Sudo command not found

You should probably mark this thread as [Solved].  This can be done by editing the first post.

In the future, you should check the desired command/file with pkgfile. It is available i the repos.  You would have just had to do

$ pkgfile sudo
core/sudo
extra/bash-completion
extra/fvwm-crystal
community/logwatch

In this case it seems pretty obvious that the necessary package would be the core/sudo one.

Offline

#6 2012-11-17 14:47:29

elp
Member
Registered: 2007-04-10
Posts: 27

Re: Sudo command not found

cfr wrote:

Please mark your thread as [solved].

Also, in future, please use

code tags

when posting code.

Sorry. I just forgot about that. sad

Offline

Board footer

Powered by FluxBB