This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Cygwin services using uid 400, not SYSTEM. Why?
Hi again again,
On 7/21/2006 12:29 PM, Shaddy Baddah wrote:
The attachment is a log of commands that I executed that highlights the
problem very clearly. You will see that after running *exim-config* (not
cygserver-config), the Cygwin services correctly display as uid SYSTEM,
and not 400.
With attachment this time. Sorry for the inconvenience.
Regards,
Shaddy
$ ps -ef
UID PID PPID TTY STIME COMMAND
400 1612 1 ? 11:29:41 /usr/bin/cygrunsrv
400 1864 1 ? 11:29:41 /usr/bin/cygrunsrv
400 1920 1864 ? 11:29:41 /usr/sbin/sshd
400 1740 1612 ? 11:29:41 /usr/sbin/cygserver
sbaddah 3316 1 con 11:34:44 /usr/bin/rxvt
sbaddah 3344 3316 0 11:34:44 /usr/bin/sh
sbaddah 3880 3344 0 11:34:56 /usr/bin/ps
$ cygrunsrv -E sshd
$ cygrunsrv -E cygserver
$ exim-config
************************************************
This script sets some key parameters of the exim
installation and starts the exim daemon.
See the details in /usr/share/doc/Cygwin/exim-X-Y.README.
Interrupt with ^D.
mode of `/etc/passwd' changed to 0754 (rwxr-xr--)
mode of `/etc/group' changed to 0754 (rwxr-xr--)
ASP Backup Service:unused_by_nt/2000/xp:11193:10513:
900 Client Services:unused_by_nt/2000/xp:11242:10513:
WARNING: The usernames displayed above contain spaces.
They cannot receive mail nor appear in /etc/aliases.
Edit /etc/passwd and use identifiers without spaces.
Who is the local postmaster? [sbaddah]
OK. The /etc/aliases file was updated and given mode 0664.
OK. The /etc/aliases file has owner 18 and group 544.
OK. /etc/exim.conf created from /etc/defaults/etc/exim.conf.
Looking for the fully qualified primary hostname.
Is it "clawks005.elided"? (yes/no) yes
OK. Exim will autodiscover that name.
OK. The mode and ownership of the /etc/exim.conf file are now:
-rw-rw-r-- 1 18 544 31000 Jul 21 11:35 /etc/exim.conf
OK. /usr/bin/exim points to /usr/bin/exim-4.62-1.exe.
INFO: Some programs expect /usr/sbin/sendmail to handle mail.
Currently it does not exist.
Linking to exim may affect other programs such as cron.
Do you want to link /usr/sbin/sendmail to /usr/bin/exim ? (yes/no)
Do you want to link /usr/sbin/sendmail to /usr/bin/exim ? (yes/no) yes
OK. Done.
Do you want to install the exim daemon as a service? (yes/no) yes
Enter the period of the queue runner, in minutes: [15]
Enter the value of CYGWIN for the daemon: [ntsec notraverse]
Do you want to start the exim daemon as a service now? (yes/no) yes
OK. The mail daemon is now accepting mail.
You can test it with "telnet localhost 25".
INFO: The exim log files are in /var/log/exim.
When everything else fails,
read /usr/share/doc/Cygwin/exim-X-Y.README,
or look up the documentation on www.exim.org.
Many happy mailings :)
$ ps -ef
UID PID PPID TTY STIME COMMAND
sbaddah 3316 1 con 11:34:44 /usr/bin/rxvt
sbaddah 3344 3316 0 11:34:44 /usr/bin/sh
SYSTEM 3460 1 ? 11:36:02 /usr/bin/cygrunsrv
SYSTEM 3508 3460 ? 11:36:02 /usr/bin/exim-4.62-1
sbaddah 3592 3344 0 11:36:06 /usr/bin/ps
$ cygrunsrv -S cygserver
$ ps -ef
UID PID PPID TTY STIME COMMAND
sbaddah 3316 1 con 11:34:44 /usr/bin/rxvt
sbaddah 3344 3316 0 11:34:44 /usr/bin/sh
SYSTEM 3460 1 ? 11:36:02 /usr/bin/cygrunsrv
SYSTEM 3508 3460 ? 11:36:02 /usr/bin/exim-4.62-1
SYSTEM 3608 1 ? 11:36:11 /usr/bin/cygrunsrv
SYSTEM 3636 3608 ? 11:36:11 /usr/sbin/cygserver
sbaddah 3780 3344 0 11:36:20 /usr/bin/ps
(reverse-i-search)`-E': cygrunsrv -E cygserver
$ cygrunsrv -S sshd
$ ps -ef
UID PID PPID TTY STIME COMMAND
sbaddah 3316 1 con 11:34:44 /usr/bin/rxvt
sbaddah 3344 3316 0 11:34:44 /usr/bin/sh
SYSTEM 3460 1 ? 11:36:02 /usr/bin/cygrunsrv
SYSTEM 3508 3460 ? 11:36:02 /usr/bin/exim-4.62-1
SYSTEM 3608 1 ? 11:36:11 /usr/bin/cygrunsrv
SYSTEM 3636 3608 ? 11:36:11 /usr/sbin/cygserver
SYSTEM 3808 1 ? 11:36:29 /usr/bin/cygrunsrv
SYSTEM 3796 3808 ? 11:36:29 /usr/sbin/sshd
sbaddah 3864 3344 0 11:36:32 /usr/bin/ps
$ ls -l /etc/passwd /etc/group
-rwxr-xr--+ 1 sbaddah Users 11555 May 10 13:30 /etc/group
-rwxr-xr-- 1 sbaddah Domain Users 64864 May 11 17:04 /etc/passwd
$ # You can see that these did not change
$
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/