Hi I have several users accessing a samba 2.0.7 running on a debian potato box on x86. The output of smbstatus, say each user is running as that user: Samba version 2.0.7 Service uid gid pid machine ---------------------------------------------- duane duane mmp 16733 duane (10.0.0.121) Tue Oct 31 09:39:38 2000 mikef mikef mmp 9156 mike-f (10.0.0.132) Mon Oct 30 17:11:55 2000 Applicatio duane mmp 16733 duane (10.0.0.121) Tue Oct 31 09:39:42 2000 common_fil horacio mmp 1610 horacio (10.0.0.103) Mon Oct 30 08:29:04 2000 common_fil duane mmp 16733 duane (10.0.0.121) Tue Oct 31 09:39:43 2000 Applicatio cyndi mmp 15538 cyndi (10.0.0.16) Tue Oct 31 08:01:01 2000 salvador salvador mmp 9065 chava (10.0.0.107) Mon Oct 30 17:03:40 2000 Applicatio mikef mmp 9156 mike-f (10.0.0.132) Mon Oct 30 17:12:01 2000 Applicatio salvador mmp 9065 chava (10.0.0.107) Mon Oct 30 17:04:12 2000 common_fil mikef mmp 9156 mike-f (10.0.0.132) Mon Oct 30 17:12:21 2000 mikep mikep mmp 15655 mike_p (10.0.0.106) Tue Oct 31 08:19:33 2000 Applicatio sharon mmp 16178 sharon (10.0.0.17) Tue Oct 31 09:04:22 2000 Applicatio mikep mmp 15655 mike_p (10.0.0.106) Tue Oct 31 08:19:50 2000 tj tj mmp 623 tj (10.0.0.108) Fri Oct 27 15:42:59 2000 common_fil tj mmp 623 tj (10.0.0.108) Fri Oct 27 15:43:06 2000 Applicatio tj mmp 623 tj (10.0.0.108) Fri Oct 27 15:43:06 2000 common_fil salvador mmp 9065 chava (10.0.0.107) Mon Oct 30 17:04:12 2000 common_fil mikep mmp 15655 mike_p (10.0.0.106) Tue Oct 31 08:19:49 2000 marco marco mmp 16764 marco-c (10.0.0.105) Tue Oct 31 09:40:26 2000 operator operator mmp 15847 gaby (10.0.0.111) Tue Oct 31 08:35:55 2000 jennifer jennifer mmp 15848 jennifer (10.0.0.128) Tue Oct 31 08:35:57 2000 common_fil operator mmp 15847 gaby (10.0.0.111) Tue Oct 31 08:36:21 2000 horacio horacio mmp 1610 horacio (10.0.0.103) Mon Oct 30 08:28:12 2000 Applicatio operator mmp 15847 gaby (10.0.0.111) Tue Oct 31 08:36:21 2000 Applicatio jennifer mmp 15848 jennifer (10.0.0.128) Tue Oct 31 08:36:21 2000 Applicatio horacio mmp 1610 horacio (10.0.0.103) Mon Oct 30 08:29:05 2000 common_fil jennifer mmp 15848 jennifer (10.0.0.128) Tue Oct 31 08:36:23 2000 common_fil marco mmp 16764 marco-c (10.0.0.105) Tue Oct 31 09:40:42 2000 Applicatio marco mmp 16764 marco-c (10.0.0.105) Tue Oct 31 09:40:42 2000 Applicatio virginia mmp 16023 virginia (10.0.0.190) Tue Oct 31 08:50:24 2000 marcou marcou mmp 1692 marco-u (10.0.0.102) Mon Oct 30 08:34:57 2000 common_fil marcou mmp 1692 marco-u (10.0.0.102) Mon Oct 30 08:35:13 2000 Applicatio marcou mmp 1692 marco-u (10.0.0.102) Mon Oct 30 08:35:18 2000 jorgeh jorgeh mmp 1974 jorge (10.0.0.104) Mon Oct 30 08:58:40 2000 Applicatio jorgeh mmp 1974 jorge (10.0.0.104) Mon Oct 30 08:58:54 2000 common_fil jorgeh mmp 1974 jorge (10.0.0.104) Mon Oct 30 08:58:54 2000 Applicatio hector mmp 15907 hector (10.0.0.131) Tue Oct 31 08:40:54 2000 common_fil hector mmp 15907 hector (10.0.0.131) Tue Oct 31 08:40:54 2000 Applicatio chris mmp 18347 chris (10.0.0.141) Tue Oct 31 11:22:10 2000 operator operator mmp 16241 dp5 (10.0.0.64) Tue Oct 31 09:08:32 2000 operator operator mmp 2040 printer-2140 (10.0.0.67) Mon Oct 30 09:01:56 2000 common_fil operator mmp 2040 printer-2140 (10.0.0.67) Mon Oct 30 09:02:05 2000 Applicatio operator mmp 2040 printer-2140 (10.0.0.67) Mon Oct 30 09:02:06 2000 Applicatio operator mmp 16241 dp5 (10.0.0.64) Tue Oct 31 09:08:49 2000 common_fil operator mmp 16241 dp5 (10.0.0.64) Tue Oct 31 09:08:49 2000 Applicatio operator mmp 17781 manuel (10.0.0.110) Tue Oct 31 10:46:49 2000 Applicatio allison mmp 17586 quennie (10.0.0.68) Tue Oct 31 10:34:11 2000 Applicatio danny mmp 17590 danny (10.0.0.150) Tue Oct 31 10:34:33 2000 If I do a ps axu on those same processes: 11:25:58 mikef@gateway:/var/log$ ps axu|grep [s]mbd root 281 0.0 1.0 2932 1392 ? S Oct27 0:00 /usr/sbin/smbd -D root 623 0.0 1.2 4192 1624 ? S Oct27 0:41 /usr/sbin/smbd -D root 1610 0.0 1.3 4084 1708 ? S Oct30 0:00 /usr/sbin/smbd -D root 1692 0.0 1.5 4180 2008 ? S Oct30 0:10 /usr/sbin/smbd -D root 1974 0.0 1.4 4116 1808 ? S Oct30 0:02 /usr/sbin/smbd -D root 2040 0.0 1.3 4084 1712 ? S Oct30 0:00 /usr/sbin/smbd -D salvador 9065 0.0 1.4 4116 1880 ? S Oct30 0:15 /usr/sbin/smbd -D mikef 9156 0.0 1.5 4144 1960 ? S Oct30 0:05 /usr/sbin/smbd -D root 15538 0.0 1.4 4120 1804 ? S 08:01 0:00 /usr/sbin/smbd -D root 15655 0.2 1.4 4172 1904 ? S 08:19 0:29 /usr/sbin/smbd -D operator 15847 0.0 1.4 4136 1816 ? S 08:35 0:00 /usr/sbin/smbd -D root 15848 0.0 1.4 4120 1868 ? S 08:35 0:00 /usr/sbin/smbd -D root 15907 0.0 1.4 4176 1924 ? S 08:40 0:00 /usr/sbin/smbd -D root 16023 0.0 1.3 4116 1776 ? S 08:50 0:00 /usr/sbin/smbd -D sharon 16178 0.0 1.4 4120 1804 ? S 09:04 0:00 /usr/sbin/smbd -D root 16241 0.0 1.3 4100 1728 ? S 09:08 0:00 /usr/sbin/smbd -D root 16733 0.0 1.3 4100 1732 ? S 09:39 0:00 /usr/sbin/smbd -D root 16764 0.4 1.4 4172 1904 ? S 09:40 0:25 /usr/sbin/smbd -D root 17586 0.0 1.3 4116 1780 ? S 10:34 0:00 /usr/sbin/smbd -D root 17590 0.0 1.3 4100 1772 ? S 10:34 0:00 /usr/sbin/smbd -D root 17781 0.0 1.4 4168 1868 ? S 10:46 0:01 /usr/sbin/smbd -D root 18347 0.0 1.3 4100 1772 ? S 11:22 0:00 /usr/sbin/smbd -D Why? Is this normal? I don't understand why some smbd processes are running as the user and some aren't. smb.conf available on request. -- Mike Fedyk "They that can give up essential liberty Information Systems to obtain a little temporary safety Match Mail Productions Inc. deserve neither liberty nor safety." mfedyk@matchmail.com Ben Franklin
Gerald Carter
2000-Oct-31 19:45 UTC
Users running as root, but reported as user in smbstatus
Mike Fedyk wrote:> > Is this normal? I don't understand why some smbd > processes are running as the user and some aren't.smbd always runs as root except with it is performing operations under the effective uid of the connected user (e.g. opening a file). Cheers, jerry ---------------------------------------------------------------------- /\ Gerald (Jerry) Carter Professional Services \/ http://www.valinux.com VA Linux Systems gcarter@valinux.com http://www.samba.org SAMBA Team jerry@samba.org http://www.eng.auburn.edu/~cartegw "...a hundred billion castaways looking for a home." - Sting "Message in a Bottle" ( 1979 )