Modify

Opened 5 years ago

Last modified 4 years ago

#13232 new defect

djbdns axfrdns "chown: unknown group" on server start

Reported by: crew@… Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: packages Version: Attitude Adjustment 12.09 Beta
Keywords: djbdns axfrdns dns network Cc:

Description

root@firewall:~# /etc/init.d/axfrdns start
chown: unknown group

looks like the $UID and $GID variables are not being set early enough in start(). The fix looks fairly simple:

--- /etc/init.d/axfrdns.~1~     2012-09-03 10:43:06 -0700
+++ /etc/init.d/axfrdns 2013-03-23 17:08:22 -0700
@@ -24,9 +24,9 @@
     ln -sf /etc/tinydns/data $ROOT/data
     cd $ROOT
     tinydns-data
+    config_foreach get_userids global
     chown -R $UID:$GID $ROOT
     tcprules $ROOT/tcp.cdb $ROOT/tcp.cdb.tmp < /etc/axfrdns/tcp
-    config_foreach get_userids global
     config_foreach start_daemon axfrdns
 }


Attachments (0)

Change History (1)

comment:1 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.