group names in /etc/passwd, ssh root login & more

2003-02-08 Thread Uwe Mayer
Hallo,

the cygwin user guide says its a feature that groups can be the owner
of files. can somebody tell me why this is so when you can set the
group attributes accordingly?
also in linux you have a group "root" and a user "root". if both occur
in your /etc/passwd file sshd won't allow "root" to login. :(
only workaround i have is calling the "group root" admin instead of
root.
i find this very disturbing...

any comments?

Ciao
Uwe  mailto:[EMAIL PROTECTED]
--
'Das ist mein voller Ernst', sagte die Frau, als sie ihren Mann die Treppe 
hinaufpoltern hoerte.


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




mod_auth_ntsec

2003-02-07 Thread Uwe Mayer
Hi,

I just mentioned the problem with mod_php4, the same applies to
mod_auth_ntsec.

However this time I extracted the mod_auth_ntsec.dll directly to
/lib/apache/new and re-run:

$ ./apache-mod_auth_ntsec.sh.done
[activating module `ntsec_auth' in /etc/apache/httpd.conf]
cp mod_auth_ntsec.dll /usr/lib/apache/mod_auth_ntsec.dll
chmod 755 /usr/lib/apache/mod_auth_ntsec.dll
cp /etc/apache/httpd.conf /etc/apache/httpd.conf.bak
cp /etc/apache/httpd.conf.new /etc/apache/httpd.conf
rm /etc/apache/httpd.conf.new

...which worked almost.
The lines

  LoadModule ntsec_auth_module  lib/apache/mod_auth_ntsec.dll
  AddModule mod_ntsec_auth.c

are added to the httpd_conf, BUT the last line should be:

  AddModule mod_auth_ntsec.c

small typo... :)

Ciao
Uwe  mailto:[EMAIL PROTECTED]
--
Nur tote Fische schwimmen mit dem Strom!


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




mod_php4

2003-02-07 Thread Uwe Mayer
Hi,

there have been some problems installing mod_php4 with apache, using
setup.exe. i had the problem previously and here is how you can
install php anyways:

what happens is that setup.exe installs mod_php4, returns and nothing.
php doesn't work.

what i did was:
extract the libphp4.dll from your cygwin download directory into
/usr/lib/apache/new

run:

$ /usr/sbin/apxs -i -a -n php4 libphp4.dll
[activating module `php4' in /etc/apache/httpd.conf]
cp libphp4.dll /usr/lib/apache/libphp4.dll
chmod 755 /usr/lib/apache/libphp4.dll
cp /etc/apache/httpd.conf /etc/apache/httpd.conf.bak
cp /etc/apache/httpd.conf.new /etc/apache/httpd.conf
rm /etc/apache/httpd.conf.new

$ new/rebase.exe -d -b  0x6800 -o 0x1 /usr/lib/apache/libphp4.dll 
/usr/bin/cygbz21.0.dll /usr/bin/cygcrypto.dll /usr/bin/cygintl-1.dll /usr/bin/pq.dll 
/usr/bin/cygxml2-2.dll /usr/bin/cygz.dll
d:\Cygwin\lib\apache\libphp4.dll: new base = 67ec, new size = 14
d:\Cygwin\bin\cygbz21.0.dll: new base = 67e9, new size = 3
d:\Cygwin\bin\cygcrypto.dll: new base = 67dd, new size = c
d:\Cygwin\bin\cygintl-1.dll: new base = 67db, new size = 2
d:\Cygwin\bin\pq.dll: new base = 67d8, new size = 3
d:\Cygwin\bin\cygxml2-2.dll: new base = 67ce, new size = a
d:\Cygwin\bin\cygz.dll: new base = 67cb, new size = 3

apxs should have added the lines
  LoadModule php4_modulelib/apache/libphp4.dll
  AddModule mod_php4.c

to /etc/apache/httpd.conf, but it didn't add a mime type handler:

   AddType application/x-httpd-php .php
   AddType application/x-httpd-php .php4

   AddType application/x-httpd-php-source .phps

Adding these worked for me.
 
Ciao,
Uwe  mailto:[EMAIL PROTECTED]
--
Nur tote Fische schwimmen mit dem Strom!


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




need help in compilation

2002-11-27 Thread Uwe Mayer
Hi,

I get the following error message whin compiling anacron for cygwin:

--
gcc -c -DSPOOLDIR=\"/var/spool/anacron\" -DRELEASE=\"2.3\" 
-DANACRONTAB=\"/etc/anacrontab\"  -Wall
-pedantic -O2 readtab.c -o readtab.o
readtab.c:32:21: obstack.h: No such file or directory
readtab.c:33:1: warning: C++ style comments are not allowed in ISO C89
readtab.c:33:1: warning: (this will be reported only once per input file)
In file included from readtab.c:38:
global.h:35:1: warning: C++ style comments are not allowed in ISO C89
global.h:35:1: warning: (this will be reported only once per input file)
readtab.c: In function `read_tab_line':
readtab.c:91: warning: implicit declaration of function `obstack_1grow'
readtab.c:94: warning: implicit declaration of function `obstack_finish'
readtab.c:94: warning: return makes pointer from integer without a cast
readtab.c: In function `register_env':
readtab.c:123: warning: implicit declaration of function `obstack_alloc'
readtab.c:123: warning: assignment makes pointer from integer without a cast
readtab.c:124: warning: assignment makes pointer from integer without a cast
readtab.c: In function `register_job':
readtab.c:155: warning: assignment makes pointer from integer without a cast
readtab.c:159: warning: assignment makes pointer from integer without a cast
readtab.c:162: warning: assignment makes pointer from integer without a cast
readtab.c: In function `read_tab':
readtab.c:236: warning: implicit declaration of function `obstack_init'
readtab.c:242: warning: implicit declaration of function `obstack_free'
readtab.c: In function `arrange_jobs':
readtab.c:278: warning: implicit declaration of function `obstack_grow'
readtab.c:282: warning: assignment makes pointer from integer without a cast
/usr/include/stdio.h: At top level:
readtab.c:41: storage size of `input_o' isn't known
readtab.c:42: storage size of `tab_o' isn't known
readtab.c:58: warning: `xmalloc' defined but not used
make: *** [readtab.o] Error 1
--

I guess obstack.h is missing. A packet search for obstack.h on
the cygwin homepage listed only source files for obstack.h. Now, I
didn't know how to deal with that.
I installed the binutils sources, changed the #include directive to
match the location of the missing header file,

/usr/src/binutils-20021107-2/include/obstack.h   (*)
/usr/src/binutils-20021107-2/libiberty/obstack.c
/usr/src/binutils-20021107-2/libiberty/obstacks.texi

and tried make again:
--
gcc  gregor.o lock.o log.o main.o matchrx.o readtab.o runjob.o  -o anacron
readtab.o(.text+0x150):readtab.c: undefined reference to `__obstack_newchunk'
readtab.o(.text+0x1f8):readtab.c: undefined reference to `__obstack_newchunk'
readtab.o(.text+0x43c):readtab.c: undefined reference to `__obstack_newchunk'
readtab.o(.text+0x480):readtab.c: undefined reference to `__obstack_newchunk'
readtab.o(.text+0x70c):readtab.c: undefined reference to `__obstack_newchunk'
readtab.o(.text+0x74c):readtab.c: more undefined references to `__obstack_newchunk' 
follow
readtab.o(.text+0xa7b):readtab.c: undefined reference to `__obstack_begin'
readtab.o(.text+0xaa7):readtab.c: undefined reference to `__obstack_begin'
readtab.o(.text+0xae5):readtab.c: undefined reference to `_obstack_free'
readtab.o(.text+0xc90):readtab.c: undefined reference to `__obstack_newchunk'
collect2: ld returned 1 exit status
make: *** [anacron] Error 1
--

This obviously doesn't work.
Can somebody tell me where the problem here is?
Wrong version of obstack?


Ciao
Uwe


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




compiling for cygwin in generall; compiling anacron;

2002-11-24 Thread Uwe Mayer
Hi,

I got two questions by my heart:
First, if I successfully compiled a linux program for cygwin and it is
running as expected, should I try to publish it so that it is
available via the cygwin setup tool?
I don't have much experience with this though (see 2nd question) but
I'd like to help those who suffer from the same problems as I do.

Second:
Cygwin probably runs on many non-server windows boxes. For those the
cron daemon poses the problem that regular sheduled tasks ain't run.
Thus I searched for anacron, didn't find it and now I'm trying to
compile it.
I posted a question on problem with compiling clicq (see msg:
<[EMAIL PROTECTED]>).
Since then I read a paper on GNU make, so this should not be a problem
any more.

The problem occurs during make anyways:
--
gcc -c -DSPOOLDIR=\"/var/spool/anacron\" -DRELEASE=\"2.3\" 
-DANACRONTAB=\"/etc/anacrontab\"  -Wall -pedantic -O2 readtab.c -o readtab.o
readtab.c:32:21: obstack.h: No such file or directory
readtab.c:33:1: warning: C++ style comments are not allowed in ISO C89
readtab.c:33:1: warning: (this will be reported only once per input file)
In file included from readtab.c:38:
global.h:35:1: warning: C++ style comments are not allowed in ISO C89
global.h:35:1: warning: (this will be reported only once per input file)
readtab.c: In function `read_tab_line':
readtab.c:91: warning: implicit declaration of function `obstack_1grow'
readtab.c:94: warning: implicit declaration of function `obstack_finish'
readtab.c:94: warning: return makes pointer from integer without a cast
readtab.c: In function `register_env':
readtab.c:123: warning: implicit declaration of function `obstack_alloc'
readtab.c:123: warning: assignment makes pointer from integer without a cast
readtab.c:124: warning: assignment makes pointer from integer without a cast
readtab.c: In function `register_job':
readtab.c:155: warning: assignment makes pointer from integer without a cast
readtab.c:159: warning: assignment makes pointer from integer without a cast
readtab.c:162: warning: assignment makes pointer from integer without a cast
readtab.c: In function `read_tab':
readtab.c:236: warning: implicit declaration of function `obstack_init'
readtab.c:242: warning: implicit declaration of function `obstack_free'
readtab.c: In function `arrange_jobs':
readtab.c:278: warning: implicit declaration of function `obstack_grow'
readtab.c:282: warning: assignment makes pointer from integer without a cast
/usr/include/stdio.h: At top level:
readtab.c:41: storage size of `input_o' isn't known
readtab.c:42: storage size of `tab_o' isn't known
readtab.c:58: warning: `xmalloc' defined but not used
make: *** [readtab.o] Error 1
--

I guess obstack.h is missing again. A packet search for obstack.h on
the cygwin homepage listed only source files for obstack.h. Now, I
didn't know how to deal with that.
I installed the binutils sources, changed the #include directive to
match the location of the missing header file,

/usr/src/binutils-20021107-2/include/obstack.h   (*)
/usr/src/binutils-20021107-2/libiberty/obstack.c
/usr/src/binutils-20021107-2/libiberty/obstacks.texi

and tried make again:
--
gcc  gregor.o lock.o log.o main.o matchrx.o readtab.o runjob.o  -o anacron
readtab.o(.text+0x150):readtab.c: undefined reference to `__obstack_newchunk'
readtab.o(.text+0x1f8):readtab.c: undefined reference to `__obstack_newchunk'
readtab.o(.text+0x43c):readtab.c: undefined reference to `__obstack_newchunk'
readtab.o(.text+0x480):readtab.c: undefined reference to `__obstack_newchunk'
readtab.o(.text+0x70c):readtab.c: undefined reference to `__obstack_newchunk'
readtab.o(.text+0x74c):readtab.c: more undefined references to `__obstack_newchunk' 
follow
readtab.o(.text+0xa7b):readtab.c: undefined reference to `__obstack_begin'
readtab.o(.text+0xaa7):readtab.c: undefined reference to `__obstack_begin'
readtab.o(.text+0xae5):readtab.c: undefined reference to `_obstack_free'
readtab.o(.text+0xc90):readtab.c: undefined reference to `__obstack_newchunk'
collect2: ld returned 1 exit status
make: *** [anacron] Error 1
--

Can somebody tell me where the problem here is?
Wrong version of obstack?

Thanks for any help.
Ciao
Uwe


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re[2]: compiling clicq, problems with c++

2002-11-18 Thread Uwe Mayer
Hallo Gareth,

Monday, November 18, 2002, 10:12:52 AM, you wrote:

GP> if you look at the actual contents of those files - they include each other
GP> the standard method of including socket.h is
GP> #define 

ok, changed that. Thanks.

GP> first point - a given line of output doesnt cause make to abort - its when a
GP> program returns with a return code indicating error that make aborts.

GP> second point - Gcc will continue after it finds errors - and try to report
GP> as much as possible.  you've only given the last 3 lines which are both
GP> warnings.  - you havent given the command invoked so we dont know if -Werror
GP> has been passed.  And theres no way to know whats between the command and
GP> the first of the lines you have stated.

GP> Not enough context.

ok, sorry. i wanted to keep the mail as short as possible, here's the
call to make:

merkosh@M111 /tmp/clicq-0.1
$ make
make  all-recursive
make[1]: Entering directory `/tmp/clicq-0.1'
Making all in icqlib
make[2]: Entering directory `/tmp/clicq-0.1/icqlib'
make  all-recursive
make[3]: Entering directory `/tmp/clicq-0.1/icqlib'
Making all in icqlib
make[4]: Entering directory `/tmp/clicq-0.1/icqlib/icqlib'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/tmp/clicq-0.1/icqlib/icqlib'
make[4]: Entering directory `/tmp/clicq-0.1/icqlib'
make[4]: Leaving directory `/tmp/clicq-0.1/icqlib'
make[3]: Leaving directory `/tmp/clicq-0.1/icqlib'
make[2]: Leaving directory `/tmp/clicq-0.1/icqlib'
Making all in src
make[2]: Entering directory `/tmp/clicq-0.1/src'
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../icqlib/icqlib-g -O2 -c clicq.c
clicq.c:16:18: term.h: No such file or directory
In file included from clicq.c:20:
cmd.h:43:8: warning: extra tokens at end of #endif directive
In file included from clicq.h:7,
 from clicq.c:22:
enum.h:21:8: warning: extra tokens at end of #endif directive
In file included from clicq.c:22:
clicq.h:148:8: warning: extra tokens at end of #endif directive
In file included from clicq.c:23:
cfg.h:14:8: warning: extra tokens at end of #endif directive
In file included from clicq.c:24:
icqhandle.h:25:8: warning: extra tokens at end of #endif directive
clicq.c: In function `input_handler':
clicq.c:131: warning: deprecated use of label at end of compound statement
clicq.c: In function `main':
clicq.c:267: warning: assignment from incompatible pointer type
clicq.c:268: warning: assignment from incompatible pointer type
make[2]: *** [clicq.o] Error 1
make[2]: Leaving directory `/tmp/clicq-0.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/clicq-0.1'
make: *** [all-recursive-am] Error 2


Where's the "Error" that make indicates?

GP> third and final point

...

GP> They are probably in header files which have been included.  Since you say
GP> this is c++ - they are probably members of a class which is defined in a
GP> header.

GP> but its not an issue probably.

Well, I did a full text search on the varriables in /tmp/clicq-0.1/*
and got only one match. :(



Thank you for your help

Ciao
Uwe


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




compiling clicq, problems with c++

2002-11-18 Thread Uwe Mayer
Hi,

I was trying to compile clicq, an icq client for linux, for cygwin.
However I'm a little new to C++ although not to programming in
general. Here is what I got problems with:

1. during make, gcc reported that the definition for AF_INET was
missing. since I knew it was located in socket.h I located it and
simply added an #include line.
How can it be that such a thing is missing in sources you download
from the web?
There were multiple socket.h files. I chose one which was located in a
*/cygwin/* path. Why different header files?

This problem seems to be solved.


2. make (or rather gcc) reports a number of problems like:

In file included from clicq.c:23:
cfg.h:14:8: warning: extra tokens at end of #endif directive

Although I'm sure there are no more characters after the #endif
directive. Whats going on here?

Since its only a warning I ignored those.


3. however, make still doesn't run through:

clicq.c: In function `main':
clicq.c:267: warning: assignment from incompatible pointer type
clicq.c:268: warning: assignment from incompatible pointer type
make[2]: *** [clicq.o] Error 1
make[2]: Leaving directory `/tmp/clicq-0.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/clicq-0.1'
make: *** [all-recursive-am] Error 2

First point: why is line 267 not causing make to abord, but line 268
if both are "warning"s of the same type?

Here's the contents of those lines:

267:
  rl_completion_entry_function = (Function*)&dummy_completer;
  rl_attempted_completion_function = &my_completer;

where dummy_completer:
char *dummy_completer(char *text, int state) {
  return (char*)NULL;
}

and my_completer:
char **my_completer(char *text, int start, int end) {
  return complete_commandarg(rl_line_buffer, text, start, end);
}

I couldn't find the declaration of rl_completion_entry_function and
rl_attempted_completion_function. Are there any Tricks to find these?


I'd be thankfull for any help!

Ciao
Uwe


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




upgrading - apache fails

2002-10-31 Thread Uwe Mayer
Hi,

I've been upgrading to cygwin 1.3.14-1. After the update the apache
web server won't start up again. The /var/log/apache/error_log
contains:

[Thu Oct 31 22:24:51 2002] [notice] Apache/1.3.24 (Cygwin) configured -- resuming 
normal operations
[Thu Oct 31 22:24:51 2002] [notice] Accept mutex: pthread (Default: pthread)
[Thu Oct 31 22:24:51 2002] [alert] Child 736 returned a Fatal error... 
Apache is exiting!
[Thu Oct 31 22:24:51 2002] [alert] (22)Invalid argument: setuid: unable to change to 
uid: 65535

when I run "/usr/sbin/apachectl start" as member of Administrator
apache starts, but installing the same command as a system service
won't work.

the file /var/run/httpd.pid looks like bevore:

-rw-rw-rw-1 SYSTEM   SYSTEM  5 Oct 31 22:24 httpd.pid

Any ideas?

Ciao
Uwe


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




remotely executing windows applications

2002-10-10 Thread Uwe Mayer

I have sshd installed on my win2k box. Together with cygwin, of
course. Recently I needed GUI access to my computer and after logging
in via ssh I run "cygstart winvnc.exe". The application started, but
did not show up in the system tray. However, it didn't accept
connections - although it was started (ps -aW). I couldn't kill it
though ("no such process").

Back at home I had the test: running "cygstart winvnc.exe" worked if I
was not logged on vie SSH.

Why didn't winvnc start up correctly? How do I change that?

Thanks
Ciao
Uwe


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re[2]: crontab: no changes made

2002-10-07 Thread Uwe Mayer

Hallo,

I found the solution to the emacs problem discussed below:

Monday, October 7, 2002, 3:44:41 AM, you wrote:

IP> On Sat, 5 Oct 2002, Uwe Mayer wrote:

>> When I start "crontab -e" it won't run, because I haven't vi
>> installed. I remembered reading something about an EDITOR or VISIBLE
>> environment variable, though I couldn't find it any more. Thus I set

IP> The correct name for the variable is VISUAL, although EDITOR also works.

>> export EDITOR=emacs
>>
>> Then crontabs starts up emacs, editing a temporary file (i.e.
>> /tmp/cron.1900)
>> However, when I close emacs (with or without saveing changes to the
>> tmp file) crontab displays "crontab: no changes made to crontab".
>>
>> Where's the flaw?

IP> If you are running Cygwin emacs, make sure it's writing the file in place.
IP> In a separate shell, check that the inode number of the temp file is the
IP> same before and after emacs has written the changes (using 'ls -i').
IP> Igor

George Lefter (<[EMAIL PROTECTED]>):
In this case its no problem with cron. Igor was right. Bevore writing
to a file emacs *renames* the old file to ~ and stores the
new buffer under the same name.

I had a search on "info emacs" and under node "Backup" I found out
that:

>For most files, the variable `make-backup-files' determines whether
> to make backup files.  On most operating systems, its default value is
> `t', so that Emacs does write backup files.

So you could either turn off backups,

>The default value of the `backup-enable-predicate' variable prevents
> backup files being written for files in the directories used for
> temporary files, specified by `temporary-file-directory' or
> `small-temporary-file-directory'.

check the "temporary-file-directory" variable in the *scratch* buffer:
temporary-file-directory C-x C-e

In my case it defaulted to "//mydocu~1/temp".
Which is IMHO an impractical default value. I added the following line
to my .emacs file:

(set 'temporary-file-directory "/tmp")

Now it works!

Harig, Mark A.(<[EMAIL PROTECTED]>):
I am useing Windows 2000, not NT.
And what concerns the group and user ownership. I changed them
temporaryly and started crontab. After editing the tab file with
crontab the user and group membership were restored automatically to
:SYSTEM.

Thanks for all your comments and suggestions!

Ciao
Uwemailto:[EMAIL PROTECTED]


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re[2]: crontab: no changes made

2002-10-07 Thread Uwe Mayer

Hallo Igor,

Monday, October 7, 2002, 3:44:41 AM, you wrote:

IP> The correct name for the variable is VISUAL, although EDITOR also works.

I found it again. "man 1 crontab"

>> export EDITOR=emacs
>>
>> Then crontabs starts up emacs, editing a temporary file (i.e.
>> /tmp/cron.1900)
>> However, when I close emacs (with or without saveing changes to the
>> tmp file) crontab displays "crontab: no changes made to crontab".

IP> If you are running Cygwin emacs, make sure it's writing the file in place.
IP> In a separate shell, check that the inode number of the temp file is the
IP> same before and after emacs has written the changes (using 'ls -i').
IP> Igor

I was useing the text-mode version of emacs from Cygwin.
I did that. After exporting VISUAL I called crontab -e and had a look
at the inode:

merkosh@M111 /tmp
$ ls -i 
1129733 crontab.2072

Then I saved the file from emacs:

merkosh@M111 /tmp
$ ls -i 
 868475 crontab.2072  1129733 crontab.2072~

Then I quit emacs, not saveing again:

merkosh@M111 /tmp
$ ls -i 
 934013 #crontab.2072#  1129733 crontab.2072~

:(
You were right. The original file was renamed to ~.
I'll have to check if I can disable that. I remember reading somewhere
about that.

Thanks very much. That was a good idea.

Ciao
Uwemailto:[EMAIL PROTECTED]


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re[2]: ssmtp and cron

2002-10-06 Thread Uwe Mayer

Hallo Elfyn,

Sunday, October 6, 2002, 9:49:53 PM, you wrote:

E> I forgot to mention this bit of important info...

E> Unless you config file has the domain that you use for email (hadiko.de) in
E> the rewriteDomain directive it will not work correctly. Also if you use
E> other names other than the one in front of the `@' it may cause probs...

E> Sorry i didnt mention this before.

Well, thanks very much. I guess that was it. rewriteDomain was set to
m111.hadiko.de instead of hadiko.de.

After I changed that the error message:

/usr/sbin/ssmtp: smtp server didn't accept MAIL From, replied "553 5.5.4 ... 
Domain name required for sender address root".

changed into:

/usr/sbin/ssmtp: smtp server didn't accept RCPT To: command, replied "550 5.1.1 
<[EMAIL PROTECTED]>... User unknown".

which was a beginning. The only place where "admin" stood was the
MAILTO=admin line in the crontab.
I found out that the MAILTO env-var specified the To: field in the
email. Setting it to "merkosh" would only work if there was a user
[EMAIL PROTECTED] (user merkosh known to the smtp host).
Setting it to an arbitrary e-mail adress would work if the address
existed.
According to /usr/doc/Cygwin/ssmtp-2.38.7.README, setting MAILTO=""
would send no mail and leaving MAILTO undefined will send an e-mail to
user merkosh who's address is taken from the /etc/ssmtp/revaliases
file (which works).
However, this all would just work if #FromLineOverride=YES was
commented out. Don't know why. Otherwise the "didn't accept MAIL
From..." error occured.

I probably send some time mails to [EMAIL PROTECTED] during testing... ;)
Well - Thank you very much again.

Ciao
Uwemailto:[EMAIL PROTECTED]


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




ssmtp and cron

2002-10-06 Thread Uwe Mayer

Can somebody enlighten me how ssmtp and cron work together, please?

F.e. what is the /etc/ssmtp/revaliases file for (which looks for me):
admin:[EMAIL PROTECTED]:smtp.hadiko.de:25
merkosh:[EMAIL PROTECTED]:smtp.hadiko.de:25

As far as I understood this, if mails are send *to* merkosh
ssmtp would get the destination e-mail and smtp host from this file -
right?
But calling "/usr/sbin/ssmtp merkosh" from the command line won't
work. (after supplying a dummy body)

Then to the /etc/ssmtp/ssmtp.conf file (which looks for me):
root=admin
mailhub=smtp.hadiko.de
rewriteDomain="Uwe Mayer"   #or: rewriteDomain=m111.hadiko.de
hostname=m111.hadiko.de
FromLineOverride=YES

admin is the login name of the administrator. So mails to root
should be send to user "admin" and his e-mail is looked up in
/etc/ssmtp/revaliases ??

Then the "sending mails from crontabs":
My crontab contained:
SHELL=/bin/bash
MAILTO=merkosh
* * * * * /usr/bin/date

And I expected mails send to user "merkosh" (<- as in man 5 crontab)
who's e-mail is looked up from /etc/ssmtp/revaliases...?

This didn't work. I get a letter.dead file in my home folder and the
following line in /var/log/cron.log:

/usr/sbin/ssmtp: smtp server didn't accept MAIL From, replied "553 5.5.4 ... 
Domain name required for sender address root".


What works is:

* * * * * /usr/bin/date | /usr/sbin/ssmtp [EMAIL PROTECTED]

which is unsattisfying, because it should work without the pipe... :(

Any ideas?
Ciao
Uwe


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




crontab: no changes made

2002-10-05 Thread Uwe Mayer

Hi,

When I start "crontab -e" it won't run, because I haven't vi
installed. I remembered reading something about an EDITOR or VISIBLE
environment variable, though I couldn't find it any more. Thus I set

export EDITOR=emacs

Then crontabs starts up emacs, editing a temporary file (i.e.
/tmp/cron.1900)
However, when I close emacs (with or without saveing changes to the
tmp file) crontab displays "crontab: no changes made to crontab".

Where's the flaw?

Thanks
Uwe


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




invalid user?

2002-10-05 Thread Uwe Mayer

Hallo,

I installed sshd as 'cygrunsrv -I sshd -p /usr/sbin/sshd -a "-D -d"' -
which worked. The server starts (cygrunsrv -S sshd) properly.
Then I tried to connect:

ssh localhost -l "Uwe Mayer"

Where "Uwe Mayer" is my regular W2k login.
The following is what was printed to the /var/log/sshd.log:


Connection from 127.0.0.1 port 1605

[..snip..]

debug1: attempt 0 failures 0
input_userauth_request: illegal user Uwe Mayer
Failed none for illegal user Uwe Mayer from 127.0.0.1 port 1605 ssh2
debug1: userauth-request for user Uwe Mayer service ssh-connection method publickey
debug1: attempt 1 failures 1
Failed publickey for illegal user Uwe Mayer from 127.0.0.1 port 1605 ssh2
debug1: userauth-request for user Uwe Mayer service ssh-connection method 
keyboard-interactive
debug1: attempt 2 failures 2
debug1: keyboard-interactive devs 
debug1: auth2_challenge: user=Uwe Mayer devs=
debug1: kbdint_alloc: devices ''
Failed keyboard-interactive for illegal user Uwe Mayer from 127.0.0.1 port 1605 ssh2
debug1: userauth-request for user Uwe Mayer service ssh-connection method password
debug1: attempt 3 failures 3
Failed password for illegal user Uwe Mayer from 127.0.0.1 port 1605 ssh2
debug1: userauth-request for user Uwe Mayer service ssh-connection method password
debug1: attempt 4 failures 4
Failed password for illegal user Uwe Mayer from 127.0.0.1 port 1605 ssh2
debug1: userauth-request for user Uwe Mayer service ssh-connection method password
debug1: attempt 5 failures 5
Failed password for illegal user Uwe Mayer from 127.0.0.1 port 1605 ssh2
Connection closed by 127.0.0.1
debug1: Calling cleanup 0x41c9c0(0x0)
debug1: Calling cleanup 0x41c9c0(0x0)


... what does "illegal user" mean? Doesn't it like the space in my
login name?
Is there any way arround it? My guess is that even supplying an
alternative to the /etc/passwd file (i.e. U-uwe) won't permit me to
login as "ssh localhost -l uwe" or?


Can somebody please help me here?
Thanks in advance
Uwe  mailto:[EMAIL PROTECTED]


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re[4]: file permissions for /cygdrive/c

2002-10-04 Thread Uwe Mayer

Hallo Vince,

Friday, October 4, 2002, 12:48:58 PM, you wrote:

VH> ahh i missread, sorry i shouldnt try and answer questions before my 3rd
VH> coffee.
VH> changing ownership to another administrator shouldnt make any difference,
VH> but i would have though not giving everyone at least read access to WINNT
VH> would cause problems. (registry etc) although i havent tried it so i could
VH> be wrong.

Do you think that instead of trying to restrict access on /cygdrive/c
in general it would be possible to just deny all access to a user or
group?
Not using Cygwin, but the W2k Security dialog.

I'm even thinking about denying the group 'User'.

Ciao
Uwemailto:[EMAIL PROTECTED]


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: cygwin service

2002-10-04 Thread Uwe Mayer

Hallo Christoffer,

Friday, October 4, 2002, 1:58:28 PM, you wrote:


CW> I can see the sshd runs as 'service' even when I close the
CW> shell window, thats nice. I wanted to do the same with apache,
CW> I did: '/sbin/cygrunsrv -I apache -p /usr/sbin/apachectl -a start'

CW> However, when I do: '/bin/cygrunsrv -S apache', I get :

A "ps -aW" should show apache running nevertheless.

CW> ".. error startign service, QueryServiceStatus: win32 error 1062: 
CW> The service has not been started".

CW> How can I correct this, or where can I find documentation on this?

Ahh - I can help here.

In the documentation for cygrunsrv (/usr/doc/Cygwin/cygrunsrv.README)
under General Notes you'll see that the daemon has to be started
without forking a child and then exiting - what usualy daemons do.

Run "/usr/sbin/httpd -h" for help on httpd.
There you'll see the switch for starting apache without forking into
background is "-k"

Use: "/bin/cygrunsrv -I apache -p /usr/sbin/httpd -a '-k' " instead.

Ciao
Uwemailto:[EMAIL PROTECTED]


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re[2]: file permissions for /cygdrive/c

2002-10-04 Thread Uwe Mayer

Hallo Vince,

Friday, October 4, 2002, 10:47:30 AM, you wrote:

VH> the easiest way to fix your first problem is to change your primary group
VH> and thus the group that owns files you create.
VH> This is the 4th field in the /etc/passwd file.
VH> Note here. my primary group is 10512 (domain administrators) while the
VH> Administrator default group is 513 (none.)

I did that already:
Everyone:*:0:0:,S-1-1-0::
SYSTEM:*:18:18:,S-1-5-18::
root:*:544:544:,S-1-5-32-544::
admin:unused_by_nt/2000/xp:500:544:U-M111\Administrator,S-1-5-21-1801674531-1606980848-1708537768-500:/home/Administrator:/bin/bash
Guest:unused_by_nt/2000/xp:501:513:U-M111\Guest,S-1-5-21-1801674531-1606980848-1708537768-501:/home/Guest:/bin/bash
IUSR_M111:unused_by_nt/2000/xp:1003:513:Internet Guest 
Account,U-M111\IUSR_M111,S-1-5-21-1801674531-1606980848-1708537768-1003:/home/IUSR_M111:/bin/bash
Uwe.Mayer:unused_by_nt/2000/xp:1000:544:Uwe Mayer,U-M111\Uwe 
Mayer,S-1-5-21-1801674531-1606980848-1708537768-1000:/home/Uwe Mayer:/bin/bash

But changeing the primary group in /etc/passwd won't do anything under
windows. The problem is that files created under windows have the
group None... Windows won't care for /etc/passwd and I didn't find a
way of setting "primary" groups under w2k.

VH> Vince.Hoffman:unused_by_nt/2000/xp:11063:10512:Vince
VH> Hoffman,U-CIRCLEUK\Vince.Hoffman,S-1-5-21-1382118675-421749423-1822239680-06
VH> 3:/home/Vince.Hoffman:/bin/bash

VH> this could help with the rest of your problems but it sounds liek you need
VH> to tie down your windows permissions which is doable but takes a bit of
VH> reading and fiddling not to break anything.

I installed W2k and all its programs as member of the Administrators
group. Will Windows have set its own permissions propperly enough so
that changing ownership from None to root (group Administrators)
shouldn't be a problem? (where None is a user or group) I mean if I
leave IUSR_M111 (don't really know why IUSR_M111 is group Users when
he has access to SSH2 files...) and SYSTEM as it is.

So far nothing should happen, because of the file permissions
?rwxrwxrwx.
If I then change all permissions to 770 - will that work? Permitting
execution to all files is dumb, but saver.

However, newly creates files /installed programs will still have group
None :(

Are there good papers on windows (/Cygwin) file permissions?

Ciao
Uwemailto:[EMAIL PROTECTED]


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: Bypassing cygwin's signal handling

2002-10-04 Thread Uwe Mayer

Dear Sir,

Due to the high frequency of spam e-mail
received from *@*.ru this domain
has been denied e-mail access to this
account. Your message has been deleted from
the server.

Yours
Uwe Mayer
-
This e-mail has been created automatically
Date: Freitag, 4. Oktober 2002
Time: 11:20:12


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




file permissions for /cygdrive/c

2002-10-03 Thread Uwe Mayer

Hi,

I've got some questions regarding file permissions with cygwin under
w2k (ntsec turned on).
I want to use 2k together with cygwin while allowing other people to
login via ssh onto my computer and would like to get the obvious
loopholes closed.

As a member of the administrators group all files created not under
cygwin are owned by the group None. (--> User Guide)
Since *everyone* is member of None he will be able to access the files
/folder accordingly. Is there any way out of this except running cron
to regularly chown these files?

Also when creating a file i.e. from the cmd.exe (like dir >test) the
file permissions are "inherited" from the folder even although "Allow
inherritable file permissions" is turned off for that folder the file
is created in.
Is there any way out of that?

I organized my PC into two partitions. C carries the w2k system and
all the windows programs that need installation. D carries cygwin and
all "private" data. is there any way to prevent other users from
accessing a certain partition, i.e. /cygdrive/c/, creating new
mountpoints, etc.?

Thanks in advance!

Ciao
Uwe


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/