Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
owner of portage?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
dan.andersson
n00b
n00b


Joined: 08 Mar 2012
Posts: 9

PostPosted: Sun May 19, 2013 9:31 am    Post subject: owner of portage? Reply with quote

I got a little puzzled i run "emerge --sync" as user and got permission denied on allot directorys, ok there is not any important there so i deleted all and tried again with same result. Hmm do i remember it wrong can't i sync as user (i am in portage group) ok so i run it as root and that works but now root owns all directorys under portage not portage as it was before.

Should i care? what has changed?

typical error with emerge --sync
rsync: mkstemp "/usr/portage/x11-terms/gnome-terminal/.ChangeLog.ix2ri1" failed: Permission denied (13)
rsync: failed to set times on "/usr/portage/x11-themes/pidgin-smileys": Operation not permitted (1)

and now when they are owned by root thats expected

chown -R portage:portage /usr/portage

doesnt change anything
Back to top
View user's profile Send private message
slis
Retired Dev
Retired Dev


Joined: 11 Oct 2010
Posts: 67
Location: Limanowa

PostPosted: Sun May 19, 2013 10:27 am    Post subject: Reply with quote

Have you run emerge as root / privileged user?
Back to top
View user's profile Send private message
dan.andersson
n00b
n00b


Joined: 08 Mar 2012
Posts: 9

PostPosted: Sun May 19, 2013 10:46 am    Post subject: Reply with quote

Yes, to get it to sync i run "emerge --sync" as root, i think it should set the owner to portage regardless of who runs it, as it cant be run as portage or at least i never do
Back to top
View user's profile Send private message
slis
Retired Dev
Retired Dev


Joined: 11 Oct 2010
Posts: 67
Location: Limanowa

PostPosted: Sun May 19, 2013 10:55 am    Post subject: Reply with quote

Please take a look on this page: http://www.gentoo.org/proj/en/portage/doc/manually-fixing-portage.xml
Maybe you should try to remove the old one and unpack portage from snapshot.
Back to top
View user's profile Send private message
dol-sen
Retired Dev
Retired Dev


Joined: 30 Jun 2002
Posts: 2805
Location: Richmond, BC, Canada

PostPosted: Sun May 19, 2013 2:43 pm    Post subject: Reply with quote

You need to set it up to use user privileges
/etc/portage/make.conf:
FEATURES="userpriv"

Plus you may need to change the permissions on your existing /usr/portage
_________________
Brian
Porthole, the Portage GUI frontend irc@freenode: #gentoo-guis, #porthole, Blog
layman, gentoolkit, CoreBuilder, esearch...
Back to top
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 9522
Location: beyond the rim

PostPosted: Tue May 21, 2013 6:46 am    Post subject: Reply with quote

slis wrote:
Please take a look on this page: http://www.gentoo.org/proj/en/portage/doc/manually-fixing-portage.xml

Please do not tell people to use those instructions if you don't fully understand the problem. That guide is only useful for very specific problem cases, for most issues it won't help at all and may actually cause additional problems.
Back to top
View user's profile Send private message
slis
Retired Dev
Retired Dev


Joined: 11 Oct 2010
Posts: 67
Location: Limanowa

PostPosted: Tue May 21, 2013 6:52 am    Post subject: Reply with quote

ok, my bad. I should read more carefully initial question.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum