LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Arch
User Name
Password
Arch This Forum is for the discussion of Arch Linux.

Notices


Reply
  Search this Thread
Old 11-06-2010, 12:39 PM   #1
Mr. Alex
Senior Member
 
Registered: May 2010
Distribution: No more Linux. Done with it.
Posts: 1,238

Rep: Reputation: Disabled
Question Yaourt and super user


Some say that you shouldn't use yaourt with root privileges because it's dangerous. But if I try to use it as a regular user, it asks for some password. So how can I use it without root privileges? Besides, it installs software on GNU system, how can I install something as a regular user on GNU??
 
Old 11-06-2010, 02:43 PM   #2
TheStarLion
Member
 
Registered: Nov 2009
Location: UK
Distribution: Gentoo
Posts: 472

Rep: Reputation: 41
By default, it will do everything it can as the regular unprivileged user until it requires the root password, then will fall back to using sudo to get priveliged.

Yaourt itself does not actually handle any package management - it calls on Pacman for that, which requires the root password.
What Yaourt does do is make the AUR accessible as if it were any other repository, and automates running makepkg.

Try downloading a pkgbuild from the AUR and running makepkg on it as root - it'll complain too.

Compiling something as root - or doing anything as root - is potentially risky because it has complete access to do everything and anything.
 
1 members found this post helpful.
Old 11-06-2010, 02:58 PM   #3
Mr. Alex
Senior Member
 
Registered: May 2010
Distribution: No more Linux. Done with it.
Posts: 1,238

Original Poster
Rep: Reputation: Disabled
So installing something from AUR is dangerous?
 
Old 11-06-2010, 09:37 PM   #4
TheStarLion
Member
 
Registered: Nov 2009
Location: UK
Distribution: Gentoo
Posts: 472

Rep: Reputation: 41
Try asking Yaourt to make you a package from the AUR - even it will warn that it is potentially dangerous.
All this actually means is that it's totally unsupported - it comes with no warrenty, just the files it needs to make the package, and even then that package is not trusted. Who knows what it could do?
However, I've often discovered that if you want to make use of the AUR, then you're taking a risk every time you choose to trust an AUR package will do what it says it will - and even then, that's if it will compile.
 
1 members found this post helpful.
Old 11-07-2010, 03:45 AM   #5
Mr. Alex
Senior Member
 
Registered: May 2010
Distribution: No more Linux. Done with it.
Posts: 1,238

Original Poster
Rep: Reputation: Disabled
I thought that someone checks packages which go to AUR...
 
Old 11-07-2010, 11:52 AM   #6
TheStarLion
Member
 
Registered: Nov 2009
Location: UK
Distribution: Gentoo
Posts: 472

Rep: Reputation: 41
Yes. The Maintainer.
As far as I'm aware, the only other time is when a TU takes one under their wing and moves it to [community]

It's not like .deb or .rpm based package management where all repositories give a GPG key, and all packages are signed with it. Pacman repositories have their checks to ensure they're correct; AUR ones are always unsupported and used at the user's own risk.
 
Old 11-07-2010, 12:36 PM   #7
Mr. Alex
Senior Member
 
Registered: May 2010
Distribution: No more Linux. Done with it.
Posts: 1,238

Original Poster
Rep: Reputation: Disabled
Do you know cases when users suffered when installed software from AUR?
 
Old 11-07-2010, 01:44 PM   #8
TheStarLion
Member
 
Registered: Nov 2009
Location: UK
Distribution: Gentoo
Posts: 472

Rep: Reputation: 41
Not of other users, but I've had the odd problem when a package was orphaned, or taken up by a different maintainer. Most of the problems come from incorrect dependencies and make-dependencies, 404 not found errors, failed file checks or just it failing to compile for one reason or another (Ex. gnome-shell and unity packages).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Super user—yes! Super Cow? vyver Ubuntu 10 10-24-2010 07:29 PM
How do i change to super user then revert back to ordinary user ,using shell script? wrapster Solaris / OpenSolaris 6 03-18-2009 03:37 AM
super user privileges check for a normal user in bash script freeindy Programming 2 08-01-2008 06:08 AM
Suse -- How to export user PATH to super user? w0262 Linux - Newbie 5 01-10-2006 09:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Arch

All times are GMT -5. The time now is 03:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration