[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: Drop daemon privilegies
From:       Brilliantov Kirill Vladimirovich <brilliantov () byterg ! ru>
Date:       2011-11-28 5:52:34
Message-ID: 4ED321A2.1070109 () byterg ! ru
[Download RAW message or body]

Hello!
I run syslogd with system and found this:
Jan  1 00:00:06 arm user.err monitor: Run drop_root, user monitor, errno 
0 (Success)
Jan  1 00:00:06 arm daemon.crit mini_httpd[296]: socket :: - Address 
family not supported by protocol
Jan  1 00:00:06 arm user.err monitor: After getpwnam, uid = 100, gid = 
100, errno 0 (Success)
Jan  1 00:00:06 arm user.err monitor: After setGID, r = 0, errno 0 (Success)
Jan  1 00:00:06 arm user.err monitor: After setUID, r = 0, errno 0 (Success)
Jan  1 00:00:06 arm daemon.warn mini_httpd[301]: started as root without 
requesting chroot(), warning only
Jan  1 00:00:06 arm daemon.notice mini_httpd[301]: mini_httpd/1.19 
19dec2003 starting on arm, port 80
Jan  1 00:00:06 arm user.err monitor: Can't run in daemon mode, errno 13 
(Permission denied)
Jan  1 00:00:06 arm daemon.info init: starting pid 306, tty '': 
'/sbin/getty -L ttyS0 115200'

But if I run daemon after manual all ok and in /var/log/messages I see this:
Jan  1 00:02:46 arm user.err monitor: Run drop_root, user monitor, errno 
0 (Success)
Jan  1 00:02:46 arm user.err monitor: After getpwnam, uid = 100, gid = 
100, errno 0 (Success)
Jan  1 00:02:46 arm user.err monitor: After setGID, r = 0, errno 0 (Success)
Jan  1 00:02:46 arm user.err monitor: After setUID, r = 0, errno 0 (Success)
Jan  1 00:02:46 arm user.info monitor: daemon started, pid-file 
/var/run/monitd.pid, PID 324
Jan  1 00:02:46 arm user.info monitor: Ready to send message


-- 
Best regards,
Brilliantov Kirill Vladimirovich

_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic