FS#36797 - freeradius package doesn't cleanup well after removal

Attached to Project: Community Packages
Opened by Philipp Pirozhkov (philpirj) - Thursday, 05 September 2013, 11:18 GMT
Last edited by Sergej Pupykin (sergej) - Friday, 06 September 2013, 12:31 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sergej Pupykin (sergej)
Architecture i686
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
freeradius package doesn't cleanup well after removal, user home folder is not deleted, group is deleted twice

Warnings:
1. on remove
groupdel: group 'radiusd' does not exist

2. on install after removal
useradd: warning: the home directory already exists.
Not copying any file from skel directory into it.


Additional info:
* package version(s)
community/freeradius 2.2.0-8
Possibly affects both i686 and x86_64

* config and/or log files etc.

Steps to reproduce:

# pacman -S freeradius
resolving dependencies...
looking for inter-conflicts...

Packages (1): freeradius-2.2.0-8

Total Installed Size: 7.36 MiB

:: Proceed with installation? [Y/n]
...

# pacman -Rs freeradius
checking dependencies...

Packages (1): freeradius-2.2.0-8

Total Removed Size: 7.36 MiB

:: Do you want to remove these packages? [Y/n]
(1/1) removing freeradius [###############################################################] 100%
groupdel: group 'radiusd' does not exist

# pacman -S freeradius
resolving dependencies...
looking for inter-conflicts...

Packages (1): freeradius-2.2.0-8

Total Installed Size: 7.36 MiB

:: Proceed with installation? [Y/n]
...
useradd: warning: the home directory already exists.
Not copying any file from skel directory into it.
Optional dependencies for freeradius
libpcap [installed]
unixodbc [installed]
python2 [installed]

# pacman -Rs freeradius
...
# rm -rf /etc/raddb
# rm -rf /var/lib/radiusd

# pacman -S freeradius
...
<- No errors on installation when manually cleaning up. Not sure if /etc/raddb should be removed or not
This task depends upon

Closed by  Sergej Pupykin (sergej)
Friday, 06 September 2013, 12:31 GMT
Reason for closing:  Fixed
Comment by Philipp Pirozhkov (philpirj) - Thursday, 05 September 2013, 11:57 GMT
There's another problem after installation.
# radiusd -x
...
Failed binding to /var/run/radiusd/radiusd.sock: No such file or directory

# mkdir -p /var/run/radiusd/
# radiusd -x
<- runs with no problems

Not sure if these two are related.
Comment by Philipp Pirozhkov (philpirj) - Thursday, 05 September 2013, 22:47 GMT
And yet another problem:

/etc/raddb.default / /etc/raddb are created wuth root:root, while they should be radiusd:radiusd.
This results in "unable to write 'random state'" when starting freeradius with `# radiusd -X`
Comment by Philipp Pirozhkov (philpirj) - Thursday, 05 September 2013, 22:52 GMT
Have to admit that this doesn't affect the package I have created for git master branch of freeradius. Somehow this one is said to be "freeradius is on the package blacklist" when uploaded to AUR.
Comment by Sergej Pupykin (sergej) - Friday, 06 September 2013, 12:30 GMT
fixed except removing home dir. Comment added into post_remove().

You cannot upload same named package to aur.

Loading...