You are not logged in.

#1 2015-04-01 09:55:29

Stevearch
Member
From: North Wales
Registered: 2014-04-21
Posts: 80

Sudo & Pacaur ?

Hi guys,

Apologies in advance if this is a silly question!

If i run the following Pacaur command i get this output -

➜  ~  sudo pacaur -Syu
[sudo] password for stephen: 
:: you cannot perform this operation as root
➜  ~  

Without sudo -

➜  ~  pacaur -Syu
[sudo] password for stephen:
:: Synchronising package databases...
 core is up to date
 extra is up to date
 community is up to date
 infinality-bundle is up to date
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Packages (22) ca-certificates-mozilla-3.18-3  cinnamon-2.4.7-1
              cinnamon-control-center-2.4.2-3  cinnamon-screensaver-2.4.2-1
              cinnamon-translations-2.4.4-1  cjs-2.4.2-1  dhcpcd-6.8.1-1
              firefox-37.0-1  freetype2-infinality-ultimate-2.5.5-4
              git-2.3.5-1  gnupg-2.1.2-3  i3-wm-4.10.1-1  i3status-2.9-1
              iptables-1.4.21-3  mesa-10.5.2-1  mesa-libgl-10.5.2-1
              muffin-2.4.5-1  nss-3.18-3  p11-kit-0.23.1-2  procps-ng-3.3.10-2
              sudo-1.8.13-1  which-2.21-1

Total Download Size:    62.95 MiB
Total Installed Size:  209.57 MiB
Net Upgrade Size:        4.76 MiB

:: Proceed with installation? [Y/n] 

Standard Pacman (no sudo) -

➜  ~  pacman -Syu
error: you cannot perform this operation unless you are root.
➜  ~  

Standard Pacman (with sudo) -

➜  ~  sudo pacman -Syu
:: Synchronising package databases...
 core is up to date
 extra is up to date
 community is up to date
 infinality-bundle is up to date
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Packages (22) ca-certificates-mozilla-3.18-3  cinnamon-2.4.7-1
              cinnamon-control-center-2.4.2-3  cinnamon-screensaver-2.4.2-1
              cinnamon-translations-2.4.4-1  cjs-2.4.2-1  dhcpcd-6.8.1-1
              firefox-37.0-1  freetype2-infinality-ultimate-2.5.5-4
              git-2.3.5-1  gnupg-2.1.2-3  i3-wm-4.10.1-1  i3status-2.9-1
              iptables-1.4.21-3  mesa-10.5.2-1  mesa-libgl-10.5.2-1
              muffin-2.4.5-1  nss-3.18-3  p11-kit-0.23.1-2  procps-ng-3.3.10-2
              sudo-1.8.13-1  which-2.21-1

Total Download Size:    62.95 MiB
Total Installed Size:  209.57 MiB
Net Upgrade Size:        4.76 MiB

:: Proceed with installation? [Y/n]

Can someone explain why Pacaur prompts for sudo *AFTER* the command is returned?
I've always thought when running a command as root the syntax is:

 sudo [command] 

Not a massive issue but im wondering if i have a configuration screwed up somewhere?

Any help is appreciated smile

Offline

#2 2015-04-01 09:59:33

Stevearch
Member
From: North Wales
Registered: 2014-04-21
Posts: 80

Re: Sudo & Pacaur ?

Sorry forgot to include sudo configuration -

➜  ~  sudo -ll
[sudo] password for stephen: 
User stephen may run the following commands on Archey:

Sudoers entry:
    RunAsUsers: ALL
    Commands:
	ALL
➜  ~  

Offline

#3 2015-04-01 10:25:12

Spyhawk
Member
Registered: 2006-07-07
Posts: 485

Re: Sudo & Pacaur ?

Because it calls sudo for you, only when it needs to.

Offline

#4 2015-04-01 10:28:55

parazyd
Member
From: Amsterdam
Registered: 2012-10-14
Posts: 259
Website

Re: Sudo & Pacaur ?

There are no issues. That's just how pacaur works. It'll ask you for your password when installing packages. It's just a script and sudo is just a command. It can be called from within scripts and ask for your input.

Offline

Board footer

Powered by FluxBB