You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by KES <ke...@yandex.ru> on 2008/12/12 08:13:41 UTC
can not start SVNserve
Здравствуйте, 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-kes@yandex.ru
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=983277
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
Re: can not start SVNserve
Posted by Ryan Schmidt <su...@ryandesign.com>.
On Dec 12, 2008, at 02:13, KES wrote:
> Здравствуйте, Users.
>
> What is wrong?
You tell us. :) What's your question?
> 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
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=983596
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
Re: Re[2]: can not start SVNserve
Posted by David Weintraub <qa...@gmail.com>.
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 <ke...@yandex.ru> 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 kes@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 kes@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 kes@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 <ke...@yandex.ru> 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-kes@yandex.ru
>>>
>>> ------------------------------------------------------
>>> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=983277
>>>
>>> To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
>>>
>
>
>
>
>
>
> --
> С уважением,
> KES mailto:kes-kes@yandex.ru
>
>
--
--
David Weintraub
qazwart@gmail.com
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=984168
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
Re: Re[2]: can not start SVNserve
Posted by David Weintraub <qa...@gmail.com>.
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 <ke...@yandex.ru> 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 kes@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 kes@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 kes@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 <ke...@yandex.ru> 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-kes@yandex.ru
>>>
>>> ------------------------------------------------------
>>> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=983277
>>>
>>> To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
>>>
>
>
>
>
>
>
> --
> С уважением,
> KES mailto:kes-kes@yandex.ru
>
>
--
--
David Weintraub
qazwart@gmail.com
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=984168
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=988327
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
Re: can not start SVNserve
Posted by David Weintraub <qa...@gmail.com>.
I'm a bit confused by what you're asking. I believe PW is a command
for editing groups and users on BSD, but I've never really used it.
My confusion comes from the output of PW. A typical user line has
seven fields, your output shows 11 fields. I am assuming that you're
showing me that user "svn" is a valid user. However, the shell is
setup to be /usr/sbin/nologin (which I assume is similar to setting
the shell to /etc/false).
Doing a "su svn" won't log you in becuase of the shell. I don't have
the /usr/local/etc/rc.d/svnserve script in front of me, so I can't
tell you what it is doing, but I suspect that since the "su svn"
command doesn't work, the script also does a "su svn -c $command", and
that is failing since your "svn" user is set to the "nologin" shell.
Have you tried changing the "svn" user shell to /bin/bash and see if
your startup script is working.
At least, once you've changed your shell to "/bin/bash", you'll be
able to sign on as user "svn", and try to start up the "svnserve"
program manually. Then, we can determine if the problem is with
"svnserve" or with your startup script.
It would be helpful if you explained your system, setup, what you were
doing, and the results instead of simply showing us the output of a
couple of commands. It is hard to figure out exactly what you are
trying to do and what you have done.
In theory, your computer is doing exactly what you told it to do -- no
more, no less, and thus there is no problem. Everything is working
perfectly as programmed.
What we need to know is what you *WANTED* it to do. Then we can figure
out how to get your system setup to do just that.
On Fri, Dec 12, 2008 at 3:13 AM, KES <ke...@yandex.ru> 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-kes@yandex.ru
>
> ------------------------------------------------------
> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=983277
>
> To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
>
--
--
David Weintraub
qazwart@gmail.com
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=984001
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=988247
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
Re: can not start SVNserve
Posted by David Weintraub <qa...@gmail.com>.
I'm a bit confused by what you're asking. I believe PW is a command
for editing groups and users on BSD, but I've never really used it.
My confusion comes from the output of PW. A typical user line has
seven fields, your output shows 11 fields. I am assuming that you're
showing me that user "svn" is a valid user. However, the shell is
setup to be /usr/sbin/nologin (which I assume is similar to setting
the shell to /etc/false).
Doing a "su svn" won't log you in becuase of the shell. I don't have
the /usr/local/etc/rc.d/svnserve script in front of me, so I can't
tell you what it is doing, but I suspect that since the "su svn"
command doesn't work, the script also does a "su svn -c $command", and
that is failing since your "svn" user is set to the "nologin" shell.
Have you tried changing the "svn" user shell to /bin/bash and see if
your startup script is working.
At least, once you've changed your shell to "/bin/bash", you'll be
able to sign on as user "svn", and try to start up the "svnserve"
program manually. Then, we can determine if the problem is with
"svnserve" or with your startup script.
It would be helpful if you explained your system, setup, what you were
doing, and the results instead of simply showing us the output of a
couple of commands. It is hard to figure out exactly what you are
trying to do and what you have done.
In theory, your computer is doing exactly what you told it to do -- no
more, no less, and thus there is no problem. Everything is working
perfectly as programmed.
What we need to know is what you *WANTED* it to do. Then we can figure
out how to get your system setup to do just that.
On Fri, Dec 12, 2008 at 3:13 AM, KES <ke...@yandex.ru> 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-kes@yandex.ru
>
> ------------------------------------------------------
> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=983277
>
> To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
>
--
--
David Weintraub
qazwart@gmail.com
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=984001
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
Re: can not start SVNserve
Posted by Mel <fb...@rachie.is-a-geek.net>.
On Sunday 21 December 2008 12:49:04 KES wrote:
> Здравствуйте, 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:
<snip>
> >> 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?
Is /etc/pam.d/su present and does it contain the line:
account include system
If so, the /etc/pam.d/system should contain:
# account
#account required pam_krb5.so
account required pam_login_access.so
account required pam_unix.so
If this is all ok, I suggest rebuilding pam with OPENPAM_DEBUG defined, so
that you can see where things go wrong.
Just out of curiousity, if you install something like mysql or squid, those
users should be inaccessable for the same reason, cause I don't see anything
wrong with the svn user itself.
--
Mel
Problem with today's modular software: they start with the modules
and never get to the software part.
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=989598
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
Re[2]: can not start SVNserve
Posted by KES <ke...@yandex.ru>.
Здравствуйте, 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> <wo...@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
>> >>> >> >> kes@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
>> >>> >> >> kes@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: checkyesno: svnserve_enable
>> is set to YES. K> Dec 21 13:47:58 kes kes: /r/svnserve: DEBUG:
>> run_rc_command: doit: K> su -m svn -c 'sh -c "/usr/local/bin/svnserve -d
>> K> --listen-port=3690 --foreground -r /var/db/trunk"'
>> K> Dec 21 13:47:58 kes su: pam_acct_mgmt: authentication error
>>
>> K> Yeah, there is problem with pam. Why pam restrict root to run command
>> K> under other user?
>>
>> Strange, but mysql works... ((
>>
>> kes# /r/mysql-server start
>> /r/mysql-server: DEBUG: checkyesno: mysql_enable is set to YES.
>> /r/mysql-server: DEBUG: pid file (/var/db/mysql/kes.net.ua.pid): not
>> readable. /r/mysql-server: DEBUG: run_rc_command: start_precmd:
>> mysql_prestart /r/mysql-server: DEBUG: checkyesno: mysql_limits is set to
>> NO.
>> Starting mysql.
>> /r/mysql-server: DEBUG: run_rc_command: doit: su -m mysql -c 'sh -c
>> "/usr/local/bin/mysqld_safe --defaults-extra-file=/var/db/mysql/my.cnf
>> --user=mysql --datadir=/var/db/mysql
>> --pid-file=/var/db/mysql/kes.net.ua.pid > /dev/null 2>&1 &"'
>> /r/mysql-server: DEBUG: run_rc_command: start_postcmd: mysql_poststart
M> This is a bit of a guess, but what if you change the uid and gid for the svn
M> user/group to below 1000.
This does not affect =(
svnserve_enable="YES"
svnserve_data="/var/db/trunk"
svnserve_flags="-d --listen-port=3690 --foreground"
svnserve_user="tst"
svnserve_group="tst"
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 tst -c 'sh -c "/usr/local/bin/svnserve -d --listen-port=3690 --foreground -r /var/db/trunk"'
su: Sorry
kes# pw user show tst
tst:*:300:300::0:0:User &:/home/nonexistent:/usr/sbin/nologin
kes# pw group show tst
tst:*:300:
--
С уважением,
KES mailto:kes-kes@yandex.ru
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=994213
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
Re: can not start SVNserve
Posted by Mel <fb...@rachie.is-a-geek.net>.
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> <wo...@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
> >>> >> >> kes@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
> >>> >> >> kes@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: checkyesno: svnserve_enable
> is set to YES. K> Dec 21 13:47:58 kes kes: /r/svnserve: DEBUG:
> run_rc_command: doit: K> su -m svn -c 'sh -c "/usr/local/bin/svnserve -d
> K> --listen-port=3690 --foreground -r /var/db/trunk"'
> K> Dec 21 13:47:58 kes su: pam_acct_mgmt: authentication error
>
> K> Yeah, there is problem with pam. Why pam restrict root to run command
> K> under other user?
>
> Strange, but mysql works... ((
>
> kes# /r/mysql-server start
> /r/mysql-server: DEBUG: checkyesno: mysql_enable is set to YES.
> /r/mysql-server: DEBUG: pid file (/var/db/mysql/kes.net.ua.pid): not
> readable. /r/mysql-server: DEBUG: run_rc_command: start_precmd:
> mysql_prestart /r/mysql-server: DEBUG: checkyesno: mysql_limits is set to
> NO.
> Starting mysql.
> /r/mysql-server: DEBUG: run_rc_command: doit: su -m mysql -c 'sh -c
> "/usr/local/bin/mysqld_safe --defaults-extra-file=/var/db/mysql/my.cnf
> --user=mysql --datadir=/var/db/mysql
> --pid-file=/var/db/mysql/kes.net.ua.pid > /dev/null 2>&1 &"'
> /r/mysql-server: DEBUG: run_rc_command: start_postcmd: mysql_poststart
This is a bit of a guess, but what if you change the uid and gid for the svn
user/group to below 1000.
--
Mel
Problem with today's modular software: they start with the modules
and never get to the software part.
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=992507
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
Re[2]: can not start SVNserve
Posted by KES <ke...@yandex.ru>.
Здравствуйте, 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> <wo...@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
>> >> >> kes@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
>> >> >> kes@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-kes@yandex.ru
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=988841
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
Re: can not start SVNserve
Posted by Mel <fb...@rachie.is-a-geek.net>.
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> <wo...@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
> >> >> kes@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
> >> >> kes@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
The problem is elsewhere. Probably in pam(3) on the faulty machine. The only
change to su.c from 7.0 to 7.1 is fixing a compiler warning. There are 3
instances where su exits with "Sorry". All occasions are logged to syslog.
Can you dig those log entries up?
--
Mel
Problem with today's modular software: they start with the modules
and never get to the software part.
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=988823
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
Re: Re[4]: can not start SVNserve
Posted by David Weintraub <qa...@gmail.com>.
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 <ke...@yandex.ru> wrote:
> Здравствуйте, David.
>
>
> DW> On Thu, Dec 18, 2008 at 3:03 AM, KES <ke...@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> <wo...@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 kes@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
>>>>> >> kes@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-kes@yandex.ru
>
>
--
--
David Weintraub
qazwart@gmail.com
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=986917
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
Re[4]: can not start SVNserve
Posted by KES <ke...@yandex.ru>.
Здравствуйте, David.
DW> On Thu, Dec 18, 2008 at 3:03 AM, KES <ke...@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> <wo...@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 kes@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
>>>> >> kes@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-kes@yandex.ru
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=986891
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
Re: Re[2]: can not start SVNserve
Posted by David Weintraub <qa...@gmail.com>.
Why don't you setup "sudo" and see if that will work for you? I've
always found sudo much less troublesome than "su".
Then, you can modify your startup script to use sudo instead of "su".
On Thu, Dec 18, 2008 at 3:03 AM, KES <ke...@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> <wo...@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 kes@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
>>> >> kes@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
>
>
>
>
>
--
--
David Weintraub
qazwart@gmail.com
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=986880
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
Re: Re[2]: can not start SVNserve
Posted by David Weintraub <qa...@gmail.com>.
Why don't you setup "sudo" and see if that will work for you? I've
always found sudo much less troublesome than "su".
Then, you can modify your startup script to use sudo instead of "su".
On Thu, Dec 18, 2008 at 3:03 AM, KES <ke...@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> <wo...@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 kes@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
>>> >> kes@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
>
>
>
>
>
--
--
David Weintraub
qazwart@gmail.com
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=986880
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=988130
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
Re[2]: can not start SVNserve
Posted by KES <ke...@yandex.ru>.
Здравствуйте, 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> <wo...@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 kes@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
>> >> kes@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
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=986404
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
Re: can not start SVNserve
Posted by Mel <fb...@rachie.is-a-geek.net>.
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> <wo...@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 kes@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
> >> kes@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
Does this command work from the command line?
If not, does it work if called as su -fm rather then su -m?
If that does not work, does the primary group svn is supposed to be in exist?
--
Mel
Problem with today's modular software: they start with the modules
and never get to the software part.
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=986367
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
Re[4]: can not start SVNserve
Posted by KES <ke...@yandex.ru>.
Здравствуйте, 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 <ke...@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> <wo...@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 kes@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 kes@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-kes@yandex.ru
>>
>>
--
С уважением,
KES mailto:kes-kes@yandex.ru
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=986397
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
Re: Re[2]: can not start SVNserve
Posted by David Weintraub <qa...@gmail.com>.
Is user "svn" a member of the group "wheel"? See
http://lists.freebsd.org/pipermail/freebsd-questions/2004-November/063649.html
On Wed, Dec 17, 2008 at 3:02 PM, KES <ke...@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> <wo...@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 kes@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 kes@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-kes@yandex.ru
>
>
--
--
David Weintraub
qazwart@gmail.com
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=986067
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
Re: Re[2]: can not start SVNserve
Posted by David Weintraub <qa...@gmail.com>.
Is user "svn" a member of the group "wheel"? See
http://lists.freebsd.org/pipermail/freebsd-questions/2004-November/063649.html
On Wed, Dec 17, 2008 at 3:02 PM, KES <ke...@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> <wo...@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 kes@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 kes@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-kes@yandex.ru
>
>
--
--
David Weintraub
qazwart@gmail.com
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=986067
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=988139
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
Re[2]: can not start SVNserve
Posted by KES <ke...@yandex.ru>.
Здравствуйте, 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> <wo...@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 kes@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 kes@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-kes@yandex.ru
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=986016
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
Re: can not start SVNserve
Posted by Mel <fb...@rachie.is-a-geek.net>.
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> <wo...@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 kes@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 kes@home.kes.net.ua:/usr/obj/usr/src/sys/KES_KERN_v7
> i386
echo 'rc_debug="YES"'>>/etc/rc.conf
/usr/local/etc/rc.d/svnserve start
Show output from /var/log/messages.
--
Mel
Problem with today's modular software: they start with the modules
and never get to the software part.
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=985514
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].