Fwd: Re: Re[4]: can not start SVNserve
Здравствуйте, . -- Пересылаемое письмо -- От: David Weintraub qazw...@gmail.com К: KES kes-...@yandex.ru А также к: us...@subversion.tigris.org Время создания: Thu, 18 Dec 2008 14:30:51 -0500 Тема:can not start SVNserve Прикрепленные файлы: none The problem is the su command. For some reason, it is refusing to execute the svnserve command. You can try to figure out why su isn't working or you can switch to sudo. I don't think we can give you any more help with this list. On Thu, Dec 18, 2008 at 1:57 PM, KES kes-...@yandex.ru wrote: Здравствуйте, David. DW On Thu, Dec 18, 2008 at 3:03 AM, KES kes-...@yandex.ru wrote: Здравствуйте, Mel. Вы писали 18 декабря 2008 г., 9:05:35: M On Wednesday 17 December 2008 21:02:07 KES wrote: Здравствуйте, Mel. Вы писали 17 декабря 2008 г., 9:11:19: M On Sunday 14 December 2008 16:11:17 KES wrote: Здравствуйте, Polytropon. Вы писали 14 декабря 2008 г., 15:11:35: P On Sun, 14 Dec 2008 12:58:55 +0100 (CET), Wojciech Puchar P woj...@wojtek.tensor.gdynia.pl wrote: su: Sorry kes# pw user mod svn -s /bin/bash kes# pw user show svn svn:*:1005:1005::0:0:SVN user:/nonexistent:/bin/bash kes# /usr/local/etc/rc.d/svnserve start Starting svnserve. su: Sorry try to change directory to existent P (1) What's /bin/bash? Check existing shell. P (2) As you said: Check existing directory. P (3) Regarding su, check for wheel group inclusion. home# uname -a FreeBSD home.kes.net.ua 7.0-STABLE FreeBSD 7.0-STABLE #0: Tue Aug 12 02:11:24 EEST 2008 k...@kes.net.ua:/usr/obj/usr/src/sys/KES_KERN_v7 i386 home# pw user show svn svn:*:1003:1002::0:0:SVN user:/nonexistent:/usr/sbin/nologin As you can see on 'home' machine svn user has no valid shell also it has not valid home directory and it is not included into wheel group But svnserve is started and works fine. With same settings svnserve does not work on kes# uname -a FreeBSD kes.net.ua 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #: Sun Nov 23 17:19:12 EET 2008 k...@home.kes.net.ua:/usr/obj/usr/src/sys/KES_KERN_v7 i386 M echo 'rc_debug=YES'/etc/rc.conf M /usr/local/etc/rc.d/svnserve start M Show output from /var/log/messages. kes# kes# /usr/local/etc/rc.d/svnserve start /usr/local/etc/rc.d/svnserve: DEBUG: checkyesno: svnserve_enable is set to YES. Starting svnserve. /usr/local/etc/rc.d/svnserve: DEBUG: run_rc_command: doit: su -m svn -c 'sh -c /usr/local/bin/svnserve -d --listen-port=3690 --foreground -r /var/db/trunk' su: Sorry M Does this command work from the command line? M If not, does it work if called as su -fm rather then su -m? M If that does not work, does the primary group svn is supposed to be in exist? kes# su -m svn -c 'sh -c /usr/local/bin/svnserve -d --listen-port=3690 --foreground -r /var/db/trunk' su: Sorry kes# su -fm svn -c 'sh -c /usr/local/bin/svnserve -d --listen-port=3690 --foreground -r /var/db/trunk' su: Sorry kes# pw group show svn svn:*:1005: kes# cat /etc/group | grep svn svn:*:1005: kes# pw user show svn svn:*:1005:1005::0:0:SVN user:/nonexistent:/bin/bash As you see it does not work also with -fm option Also I notice next differences between FreeBDS 7.0 and 7.1 (detail below) Notice that on both system account is locked, has no valid shell and home directory on FreeBSD 7.0 when I try to login with svn user it says: This account is currently not available. on FreeBSD 7.1 when I try to login with svn user it says: su: Sorry Maybe there is a problem with su on FreeBSD 7.1? home# pw user show svn svn:*:1003:1002::0:0:SVN user:/nonexistent:/usr/sbin/nologin home# su svn This account is currently not available. kes# pw user show svn svn:*:1005:1005::0:0:SVN user:/nonexistent:/bin/bash kes# su svn su: Sorry kes# pw user mod svn -s /usr/bin/nologin kes# pw user show svn svn:*:1005:1005::0:0:SVN user:/nonexistent:/usr/bin/nologin kes# su svn su: Sorry DW Why don't you setup sudo and see if that will work for you? I've DW always found sudo much less troublesome than su. DW Then, you can modify your startup script to use sudo instead of su. Why maintainer of rc.subr use 'su' instead of 'sudo'? Maybe su has some benefit I do not know. If I edit standart rc.subr to use sudo instead of 'su' there maybe other sripts will not sturtup. -- С уважением, KES mailto:kes-...@yandex.ru -- -- David Weintraub qazw...@gmail.com -- Конец пересылаемого письма -- -- С уважением, KES mailto:kes-...@yandex.ru ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re[4]: can not start SVNserve
Здравствуйте, David. DW Is user svn a member of the group wheel? See DW http://lists.freebsd.org/pipermail/freebsd-questions/2004-November/063649.html It is not required to be member of group wheel to low process rights from root. wheel group is requierd only if I want to rise my rights to root. Also notice that on both systems 'home' and 'kes' there is svn group and user. The svn user is not member of wheel group. On both systems user svn has not home directory and has not valid shell (because of it is not required to login as svn user, this is just user to start svnserve process) On FreeBSD 7.0 svnserve startsup normally, on 7.1 it can not Error is described earlier. DW On Wed, Dec 17, 2008 at 3:02 PM, KES kes-...@yandex.ru wrote: Здравствуйте, Mel. Вы писали 17 декабря 2008 г., 9:11:19: M On Sunday 14 December 2008 16:11:17 KES wrote: Здравствуйте, Polytropon. Вы писали 14 декабря 2008 г., 15:11:35: P On Sun, 14 Dec 2008 12:58:55 +0100 (CET), Wojciech Puchar P woj...@wojtek.tensor.gdynia.pl wrote: su: Sorry kes# pw user mod svn -s /bin/bash kes# pw user show svn svn:*:1005:1005::0:0:SVN user:/nonexistent:/bin/bash kes# /usr/local/etc/rc.d/svnserve start Starting svnserve. su: Sorry try to change directory to existent P (1) What's /bin/bash? Check existing shell. P (2) As you said: Check existing directory. P (3) Regarding su, check for wheel group inclusion. home# uname -a FreeBSD home.kes.net.ua 7.0-STABLE FreeBSD 7.0-STABLE #0: Tue Aug 12 02:11:24 EEST 2008 k...@kes.net.ua:/usr/obj/usr/src/sys/KES_KERN_v7 i386 home# pw user show svn svn:*:1003:1002::0:0:SVN user:/nonexistent:/usr/sbin/nologin As you can see on 'home' machine svn user has no valid shell also it has not valid home directory and it is not included into wheel group But svnserve is started and works fine. With same settings svnserve does not work on kes# uname -a FreeBSD kes.net.ua 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #: Sun Nov 23 17:19:12 EET 2008 k...@home.kes.net.ua:/usr/obj/usr/src/sys/KES_KERN_v7 i386 M echo 'rc_debug=YES'/etc/rc.conf M /usr/local/etc/rc.d/svnserve start M Show output from /var/log/messages. kes# kes# /usr/local/etc/rc.d/svnserve start /usr/local/etc/rc.d/svnserve: DEBUG: checkyesno: svnserve_enable is set to YES. Starting svnserve. /usr/local/etc/rc.d/svnserve: DEBUG: run_rc_command: doit: su -m svn -c 'sh -c /usr/local/bin/svnserve -d --listen-port=3690 --foreground -r /var/db/trunk' su: Sorry -- С уважением, KES mailto:kes-...@yandex.ru -- С уважением, KES mailto:kes-...@yandex.ru ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re[4]: can not start SVNserve
Здравствуйте, David. DW On Thu, Dec 18, 2008 at 3:03 AM, KES kes-...@yandex.ru wrote: Здравствуйте, Mel. Вы писали 18 декабря 2008 г., 9:05:35: M On Wednesday 17 December 2008 21:02:07 KES wrote: Здравствуйте, Mel. Вы писали 17 декабря 2008 г., 9:11:19: M On Sunday 14 December 2008 16:11:17 KES wrote: Здравствуйте, Polytropon. Вы писали 14 декабря 2008 г., 15:11:35: P On Sun, 14 Dec 2008 12:58:55 +0100 (CET), Wojciech Puchar P woj...@wojtek.tensor.gdynia.pl wrote: su: Sorry kes# pw user mod svn -s /bin/bash kes# pw user show svn svn:*:1005:1005::0:0:SVN user:/nonexistent:/bin/bash kes# /usr/local/etc/rc.d/svnserve start Starting svnserve. su: Sorry try to change directory to existent P (1) What's /bin/bash? Check existing shell. P (2) As you said: Check existing directory. P (3) Regarding su, check for wheel group inclusion. home# uname -a FreeBSD home.kes.net.ua 7.0-STABLE FreeBSD 7.0-STABLE #0: Tue Aug 12 02:11:24 EEST 2008 k...@kes.net.ua:/usr/obj/usr/src/sys/KES_KERN_v7 i386 home# pw user show svn svn:*:1003:1002::0:0:SVN user:/nonexistent:/usr/sbin/nologin As you can see on 'home' machine svn user has no valid shell also it has not valid home directory and it is not included into wheel group But svnserve is started and works fine. With same settings svnserve does not work on kes# uname -a FreeBSD kes.net.ua 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #: Sun Nov 23 17:19:12 EET 2008 k...@home.kes.net.ua:/usr/obj/usr/src/sys/KES_KERN_v7 i386 M echo 'rc_debug=YES'/etc/rc.conf M /usr/local/etc/rc.d/svnserve start M Show output from /var/log/messages. kes# kes# /usr/local/etc/rc.d/svnserve start /usr/local/etc/rc.d/svnserve: DEBUG: checkyesno: svnserve_enable is set to YES. Starting svnserve. /usr/local/etc/rc.d/svnserve: DEBUG: run_rc_command: doit: su -m svn -c 'sh -c /usr/local/bin/svnserve -d --listen-port=3690 --foreground -r /var/db/trunk' su: Sorry M Does this command work from the command line? M If not, does it work if called as su -fm rather then su -m? M If that does not work, does the primary group svn is supposed to be in exist? kes# su -m svn -c 'sh -c /usr/local/bin/svnserve -d --listen-port=3690 --foreground -r /var/db/trunk' su: Sorry kes# su -fm svn -c 'sh -c /usr/local/bin/svnserve -d --listen-port=3690 --foreground -r /var/db/trunk' su: Sorry kes# pw group show svn svn:*:1005: kes# cat /etc/group | grep svn svn:*:1005: kes# pw user show svn svn:*:1005:1005::0:0:SVN user:/nonexistent:/bin/bash As you see it does not work also with -fm option Also I notice next differences between FreeBDS 7.0 and 7.1 (detail below) Notice that on both system account is locked, has no valid shell and home directory on FreeBSD 7.0 when I try to login with svn user it says: This account is currently not available. on FreeBSD 7.1 when I try to login with svn user it says: su: Sorry Maybe there is a problem with su on FreeBSD 7.1? home# pw user show svn svn:*:1003:1002::0:0:SVN user:/nonexistent:/usr/sbin/nologin home# su svn This account is currently not available. kes# pw user show svn svn:*:1005:1005::0:0:SVN user:/nonexistent:/bin/bash kes# su svn su: Sorry kes# pw user mod svn -s /usr/bin/nologin kes# pw user show svn svn:*:1005:1005::0:0:SVN user:/nonexistent:/usr/bin/nologin kes# su svn su: Sorry DW Why don't you setup sudo and see if that will work for you? I've DW always found sudo much less troublesome than su. DW Then, you can modify your startup script to use sudo instead of su. Why maintainer of rc.subr use 'su' instead of 'sudo'? Maybe su has some benefit I do not know. If I edit standart rc.subr to use sudo instead of 'su' there maybe other sripts will not sturtup. -- С уважением, KES mailto:kes-...@yandex.ru ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re[4]: can not start SVNserve
Здравствуйте, Polytropon. Вы писали 14 декабря 2008 г., 15:11:35: P On Sun, 14 Dec 2008 12:58:55 +0100 (CET), Wojciech Puchar P woj...@wojtek.tensor.gdynia.pl wrote: su: Sorry kes# pw user mod svn -s /bin/bash kes# pw user show svn svn:*:1005:1005::0:0:SVN user:/nonexistent:/bin/bash kes# /usr/local/etc/rc.d/svnserve start Starting svnserve. su: Sorry try to change directory to existent P (1) What's /bin/bash? Check existing shell. P (2) As you said: Check existing directory. P (3) Regarding su, check for wheel group inclusion. home# uname -a FreeBSD home.kes.net.ua 7.0-STABLE FreeBSD 7.0-STABLE #0: Tue Aug 12 02:11:24 EEST 2008 k...@kes.net.ua:/usr/obj/usr/src/sys/KES_KERN_v7 i386 home# pw user show svn svn:*:1003:1002::0:0:SVN user:/nonexistent:/usr/sbin/nologin As you can see on 'home' machine svn user has no valid shell also it has not valid home directory and it is not included into wheel group But svnserve is started and works fine. With same settings svnserve does not work on kes# uname -a FreeBSD kes.net.ua 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #: Sun Nov 23 17:19:12 EET 2008 k...@home.kes.net.ua:/usr/obj/usr/src/sys/KES_KERN_v7 i386 -- С уважением, KES mailto:kes-...@yandex.ru ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re[4]: can not start SVNserve
P (3) Regarding su, check for wheel group inclusion. wrong. wheel group is needed to su to root,not from root ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Re[4]: can not start SVNserve
On Sun, 14 Dec 2008 16:32:42 +0100 (CET), Wojciech Puchar woj...@wojtek.tensor.gdynia.pl wrote: P (3) Regarding su, check for wheel group inclusion. wrong. wheel group is needed to su to root,not from root Right. Wow... I'm so stupid... must already be epidemic dementia. :-) -- Polytropon From Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org