Re[2]: can not start SVNserve
Здравствуйте, Mel. Вы писали 25 декабря 2008 г., 20:13:32: M> On Tuesday 23 December 2008 13:50:59 KES wrote: >> Здравствуйте, KES. >> >> Вы писали 21 декабря 2008 г., 13:49:04: >> >> K> Здравствуйте, Mel. >> >> K> Вы писали 21 декабря 2008 г., 13:10:47: >> >> M>> On Thursday 18 December 2008 09:03:54 KES 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> 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 >> >> M>> The problem is elsewhere. Probably in pam(3) on the faulty machine. The >> only M>> change to su.c from 7.0 to 7.1 is fixing a compiler warning. There >> are 3 M>> instances where su exits with "Sorry". All occasions are logged >> to syslog. M>> Can you dig those log entries up? >> >> K> Dec 21 13:47:54 kes su: kes to root on /dev/ttyp5 >> K> Dec 21 13:47:58 kes kes: /r/svnserve: DEBUG:
Re[2]: can not start SVNserve
Здравствуйте, Mel. Вы писали 21 декабря 2008 г., 13:10:47: M> On Thursday 18 December 2008 09:03:54 KES 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> 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 M> The problem is elsewhere. Probably in pam(3) on the faulty machine. The only M> change to su.c from 7.0 to 7.1 is fixing a compiler warning. There are 3 M> instances where su exits with "Sorry". All occasions are logged to syslog. M> Can you dig those log entries up? Dec 21 13:47:54 kes su: kes to root on /dev/ttyp5 Dec 21 13:47:58 kes kes: /r/svnserve: DEBUG: checkyesno: svnserve_enable is set to YES. Dec 21 13:47:58 kes kes: /r/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"' Dec 21 13:47:58 kes su: pam_acct_mgmt: authentication error Yeah, there is problem with pam. Why pam restrict root to run command under other user? -- С уважением, 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[2]: can not start SVNserve
Здравствуйте, 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> 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 ___ 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[2]: can not start SVNserve
Здравствуйте, 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> 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 ___ 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[2]: can not start SVNserve
So, just to clarify... On one machine: $ su svn Will change you to the "svn" user while on another machine: $ su svn Will output: su: Sorry The problem would be the configuration of the two machines and not a Subversion issue. You may want to try the BSD list about why you have these two different behaviors on your machines. I would also look at the manpage of the "su" command to see if there is something that could be affecting the behavior of the "su" command. Take a look at the "su" command in the startup script. It probably looks something like: su svn -c $path_to_svnserve/svnserve -r $SVN_REPOS -d See if you can execute this command on the command line. Also try putting "set +xv" and "set -xv" around the command inside the shell script. This puts the shell into verbose and debug mode, so it will echo all the commands it is executing before executing them. Sometimes this helps clarify where a problem might be. For example, your svnserve command might not be in the $PATH to be executed. Or, maybe an environment variable isn't being defined correctly. An alternative, try the "sudo" command if it is available on your machine: $ sudo -u svn $path_to_svnserve_dir/svnserve -r $SVN_ROOT -d Depending how your sudo command is setup (see /etc/sudo about configuration), it might ask you for a password, or maybe setup not to allow you to run the command. The default is to allow the root user to run all commands without a password. I've found sudo to work a bit better than "su" in many situations. On Sun, Dec 14, 2008 at 6:22 AM, KES wrote: > Здравствуйте, David. > > I have > 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 > on this machine sveserve startsup normally > >>My confusion comes from the output of PW > home# pw user show svn > svn:*:1003:1002::0:0:SVN user:/nonexistent:/usr/sbin/nologin > pw is utility to edit /etc/master.passwd > home# cat /etc/master.passwd | grep svn > svn:*:1003:1002::0:0:SVN user:/nonexistent:/usr/sbin/nologin > >>showing me that user "svn" is a valid user > 'svn' user is valid user > > >>Have you tried changing the "svn" user shell to /bin/bash > telling this: > :/nonexistent:/usr/sbin/nologin > I point that anyone can not use this user to login to system. But > because of 'svn' is valid system user process can low his right to > 'svn' user > > On this HOME machine when I try run svnserve it is runned despite on 'su svn' > can not login me: > home# su svn > This account is currently not available. > home# /usr/local/etc/rc.d/svnserve start > Starting svnserve. > home# ps ax|grep svn > 34209 ?? Ss 0:00,00 /usr/local/bin/svnserve -d --listen-port=3690 -r > /usr > 34211 p0 S+ 0:00,00 grep svn > > But on other machine with same user I can not start svnserver > kes# pw user show svn > svn:*:1005:1005::0:0:SVN user:/nonexistent:/usr/sbin/nologin > kes# /usr/local/etc/rc.d/svnserve start > Starting svnserve. > 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 > > > DW> Have you tried changing the "svn" user shell to /bin/bash and see if > DW> your startup script is working. > the differences between this machines only are next: > home# svnserve --version > svnserve, version 1.5.1 (r32289) > compiled Aug 3 2008, 00:10:41 > 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 > > and > kes# svnserve --version > svnserve, version 1.5.2 (r32768) > compiled Oct 8 2008, 21:55:55 > > 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 > > > DW> It would be helpful if you explained your system, setup, what you were > DW> doing, and the results instead of simply showing us the output of a > DW> couple of commands. It is hard to figure out exactly what you are > DW> trying to do and what you have done. > I try to run 'svnserve'. I just install svnserver and add user svn to > run svnserve under. I do same things on 'kes' as on 'home' machine. > > > > Вы писали 14 декабря 2008 г., 7:22:39: > > DW> I'm a bit confused by what you're asking. I believe PW is a command > DW> for editing groups and users on BSD, but I've never really used it. > > DW> My confusion comes from the output of PW. A typical user line has > DW> seven fields, your output shows 11 fields. I am assuming that you're > DW> showing me that user "svn" is a valid user. However, the shell is > DW> setup to be /usr/sbin/nologin (which I assume is similar to setting > DW> the shell to /etc/false). > > DW> Doing a "su svn" won't log you in becuase of the shell. I don't have > DW> the /usr/local
Re: Re[2]: can not start SVNserve
On Sun, 14 Dec 2008 12:58:55 +0100 (CET), Wojciech Puchar 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 (1) What's /bin/bash? Check existing shell. (2) As you said: Check existing directory. (3) Regarding su, check for wheel group inclusion. -- 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"
Re[2]: can not start SVNserve
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 ___ 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[2]: can not start SVNserve
Здравствуйте, David. I have 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 on this machine sveserve startsup normally >My confusion comes from the output of PW home# pw user show svn svn:*:1003:1002::0:0:SVN user:/nonexistent:/usr/sbin/nologin pw is utility to edit /etc/master.passwd home# cat /etc/master.passwd | grep svn svn:*:1003:1002::0:0:SVN user:/nonexistent:/usr/sbin/nologin >showing me that user "svn" is a valid user 'svn' user is valid user >Have you tried changing the "svn" user shell to /bin/bash telling this: :/nonexistent:/usr/sbin/nologin I point that anyone can not use this user to login to system. But because of 'svn' is valid system user process can low his right to 'svn' user On this HOME machine when I try run svnserve it is runned despite on 'su svn' can not login me: home# su svn This account is currently not available. home# /usr/local/etc/rc.d/svnserve start Starting svnserve. home# ps ax|grep svn 34209 ?? Ss 0:00,00 /usr/local/bin/svnserve -d --listen-port=3690 -r /usr 34211 p0 S+ 0:00,00 grep svn But on other machine with same user I can not start svnserver kes# pw user show svn svn:*:1005:1005::0:0:SVN user:/nonexistent:/usr/sbin/nologin kes# /usr/local/etc/rc.d/svnserve start Starting svnserve. 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 DW> Have you tried changing the "svn" user shell to /bin/bash and see if DW> your startup script is working. the differences between this machines only are next: home# svnserve --version svnserve, version 1.5.1 (r32289) compiled Aug 3 2008, 00:10:41 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 and kes# svnserve --version svnserve, version 1.5.2 (r32768) compiled Oct 8 2008, 21:55:55 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 DW> It would be helpful if you explained your system, setup, what you were DW> doing, and the results instead of simply showing us the output of a DW> couple of commands. It is hard to figure out exactly what you are DW> trying to do and what you have done. I try to run 'svnserve'. I just install svnserver and add user svn to run svnserve under. I do same things on 'kes' as on 'home' machine. Вы писали 14 декабря 2008 г., 7:22:39: DW> I'm a bit confused by what you're asking. I believe PW is a command DW> for editing groups and users on BSD, but I've never really used it. DW> My confusion comes from the output of PW. A typical user line has DW> seven fields, your output shows 11 fields. I am assuming that you're DW> showing me that user "svn" is a valid user. However, the shell is DW> setup to be /usr/sbin/nologin (which I assume is similar to setting DW> the shell to /etc/false). DW> Doing a "su svn" won't log you in becuase of the shell. I don't have DW> the /usr/local/etc/rc.d/svnserve script in front of me, so I can't DW> tell you what it is doing, but I suspect that since the "su svn" DW> command doesn't work, the script also does a "su svn -c $command", and DW> that is failing since your "svn" user is set to the "nologin" shell. DW> Have you tried changing the "svn" user shell to /bin/bash and see if DW> your startup script is working. DW> At least, once you've changed your shell to "/bin/bash", you'll be DW> able to sign on as user "svn", and try to start up the "svnserve" DW> program manually. Then, we can determine if the problem is with DW> "svnserve" or with your startup script. DW> It would be helpful if you explained your system, setup, what you were DW> doing, and the results instead of simply showing us the output of a DW> couple of commands. It is hard to figure out exactly what you are DW> trying to do and what you have done. DW> In theory, your computer is doing exactly what you told it to do -- no DW> more, no less, and thus there is no problem. Everything is working DW> perfectly as programmed. DW> What we need to know is what you *WANTED* it to do. Then we can figure DW> out how to get your system setup to do just that. DW> On Fri, Dec 12, 2008 at 3:13 AM, KES wrote: >> Здравствуйте, Users. >> >> What is wrong? >> kes# pw user show svn >> svn:*:1005:1005::0:0:SVN user:/nonexistent:/usr/sbin/nologin >> kes# su svn >> su: Sorry >> kes# /usr/local/etc/rc.d/svnserve start >> Starting svnserve. >> su: Sorry >> >> >> -- >> С уважением, >> KES mailto:kes-...@yandex.ru >> >> -- >> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=983277 >> >> To unsubscribe from this