Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Why does portage lock acct-user ebuilds on unmerge
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
justin025
n00b
n00b


Joined: 01 Jul 2024
Posts: 4

PostPosted: Sat Sep 07, 2024 8:30 pm    Post subject: Why does portage lock acct-user ebuilds on unmerge Reply with quote

I was just wondering why it makes more sense to lock an unused user instead of deleting it; for example qemu creates a user but after qemu is uninstalled the user is retained. Is there a specific reason why it was implemented this way and will I do any damage to my system by deleting extra accounts?
Back to top
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 3380
Location: Canada

PostPosted: Sat Sep 07, 2024 9:51 pm    Post subject: Re: Why does portage lock acct-user ebuilds on unmerge Reply with quote

justin025 wrote:
I was just wondering why it makes more sense to lock an unused user instead of deleting it; for example qemu creates a user but after qemu is uninstalled the user is retained. Is there a specific reason why it was implemented this way and will I do any damage to my system by deleting extra accounts?


Users are created by separate ebuilds, probably acct-user/gemu in your case which are dependency of the main package. To clear dependencies yiu need to run emerge --depclean, same as in the case dependency is some ljbrary
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22404

PostPosted: Sat Sep 07, 2024 9:53 pm    Post subject: Reply with quote

Removing a user account does not automatically remove all files owned by that account. If such files did exist, and the account were removed, a future user creation could accidentally assign that uid to some other name, with confusing or even security-sensitive consequences. By retaining the account, but locking it, future user creations are prevented from picking that uid unless explicitly forced to reuse an in-use uid.
Back to top
View user's profile Send private message
justin025
n00b
n00b


Joined: 01 Jul 2024
Posts: 4

PostPosted: Sat Sep 07, 2024 10:00 pm    Post subject: Reply with quote

Thanks for the explanation
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