SOLVED! Re: [Samba] problem with listing users on winXP/2k+3

Luís Miguel Silva
2005-03-28T14:15:13Z

Hello all,

I havent got any replies on this matter but, since this can interest
any future
users, i leave the solution for the problem i reported!

After a *lot* of tests [which involved installing a winXP and win2k+3 without
any patches], i came to find that the problem was related to Windows and *not*
samba related!

Allthough the users arent listed on windows [via the typical gui], i
could list
them all via the "net user /domain" command!

I was also able to add a share to a specific user using rmtshare (from the NT
resource kit) and cacls (for managing Access Lists).

Hope this helps anybody! ;o)

Best,
Lu?s Silva

Quoting Lu?s Miguel Silva <lms@ispgaya.pt>:

> Hello list,
>
> Some days ago i sent an email to this ML about a problem im having
> with listing
> users on winXP/2k+3 computers.
>
> The thing is our samba PDC has +1600 users and, this time i counted,
> there only
> appear on the "security advanced settings" list box (where we
select
> users that
> can read/write/execute on a windows directory share), about 500/550 users.
>
> There is no evident reason for it to happen! The first account that
> gets listed
> starts with aa* and the last one which appears is "zmonteiro"
(our
> last user).
>
> Now, after some more tests, i found out that this is only happening on
winXP
> professional SP2 and win2003 server.
>
> I took some screenshots so anybody that is willing to help me can
> check out my
> problem:
> 1? http://lms.ispgaya.pt/goodies/sambaXP/erro_XP_cant_find.JPG
> 2? http://lms.ispgaya.pt/goodies/sambaXP/jaam_windows_2000.jpg
>
> on the first image we can see a logged in user on my domain (jaam) and,
> allthough c:\documents and settings\jaam\Desktop got automatically assigned
> ISPGAYA\jaam as its owner, that user cant be found when we look for it on
the
> domain! (which is pretty stupid and weird).
>
> the second image shows us the user "jaam" being found on my
domain! (on a
> windows 2000 professional).
>
> I dont quite understand what is happening here! I assume this is a
winXP/2k+3
> related problem but that isnt quite a answer for our network (since we have
> more then 100 winXP workstations and less then 15 win 2000 workstations)!
>
> Can anybody share some info on this?
>
> My smb.conf is available here:
> http://lms.ispgaya.pt/goodies/sambaXP/smb.conf
>
> I can list two different users on my MySQL database:
> mysql> select * from user where nt_username='jaam';
>
+------------+-------------+--------------+--------------------+----------------------+-----------------------+----------+---------+-------------+-----------------------+---------------------+-----------+--------------+--------------+-----------+--------------+-------------+-------------+-------+------+-------------------------------------------------+------------------------------------------------+----------------------------------+----------------------------------+-----------+-----------+------------+-----------+-----------+-----------+
> | logon_time | logoff_time | kickoff_time | pass_last_set_time |
> pass_can_change_time | pass_must_change_time | username | domain  |
> nt_username
> | nt_fullname           | home_dir            | dir_drive | logon_script |
> profile_path | acct_desc | workstations | unknown_str | munged_dial | uid
|
> gid  | user_sid                                        | group_sid
>                         | lm_pw                            | nt_pw
>              | acct_ctrl | unknown_3 | logon_divs | hours_len | unknown_5 |
> unknown_6 |
>
+------------+-------------+--------------+--------------------+----------------------+-----------------------+----------+---------+-------------+-----------------------+---------------------+-----------+--------------+--------------+-----------+--------------+-------------+-------------+-------+------+-------------------------------------------------+------------------------------------------------+----------------------------------+----------------------------------+-----------+-----------+------------+-----------+-----------+-----------+
> |          0 |           0 |            0 |         1065279625 |
> 1065279625 |            2147483647 | jaam     | ISPGAYA | jaam        |
Jose
> Augusto Monteiro | /home/docentes/jaam |           |              |
>  |           |              |             |             | 12313 | 1103 |
> S-1-5-21-3707862455-3475833780-3540448979-12313 |
> S-1-5-21-3707862455-3475833780-3540448979-1103 |
> B44F950F3A6EDE20AAD3AADDB51404EE | 759B5CA8DAADDA7D067BBA0A886C7BA |
>       16
> |      NULL |        168 |        21 |      NULL |      NULL |
>
+------------+-------------+--------------+--------------------+----------------------+-----------------------+----------+---------+-------------+-----------------------+---------------------+-----------+--------------+--------------+-----------+--------------+-------------+-------------+-------+------+-------------------------------------------------+------------------------------------------------+----------------------------------+----------------------------------+-----------+-----------+------------+-----------+-----------+-----------+
> 1 row in set (0.02 sec)
>
> mysql> select * from user where nt_username='tma';
>
+------------+-------------+--------------+--------------------+----------------------+-----------------------+----------+---------+-------------+-------------+---------------------+-----------+--------------+--------------+-----------+--------------+-------------+-------------+-------+------+-------------------------------------------------+------------------------------------------------+----------------------------------+----------------------------------+-----------+-----------+------------+-----------+-----------+-----------+
> | logon_time | logoff_time | kickoff_time | pass_last_set_time |
> pass_can_change_time | pass_must_change_time | username | domain  |
> nt_username
> | nt_fullname | home_dir            | dir_drive | logon_script |
> profile_path |
> acct_desc | workstations | unknown_str | munged_dial | uid   | gid  |
> user_sid
>                                       | group_sid
>       | lm_pw                            | nt_pw
|
> acct_ctrl | unknown_3 | logon_divs | hours_len | unknown_5 | unknown_6 |
>
+------------+-------------+--------------+--------------------+----------------------+-----------------------+----------+---------+-------------+-------------+---------------------+-----------+--------------+--------------+-----------+--------------+-------------+-------------+-------+------+-------------------------------------------------+------------------------------------------------+----------------------------------+----------------------------------+-----------+-----------+------------+-----------+-----------+-----------+
> |          0 |           0 |            0 |         1108492231 |
> 1108492231 |            2147483647 | tma      | ISPGAYA | tma         |
Tiago
> Alves | /home/ndocentes/tma |           |              |              |
>   |              |             |             | 12096 | 1104 |
> S-1-5-21-3707862455-3475833780-3540448979-12096 |
> S-1-5-21-3707862455-3475833780-3540448979-1104 |
> B43CFB80269FF40DDAAC9FC5EC63C12C | 54A33EDDAADE4990B3A3C671B38411C |
>       16
> |      NULL |        168 |        21 |      NULL |      NULL |
>
+------------+-------------+--------------+--------------------+----------------------+-----------------------+----------+---------+-------------+-------------+---------------------+-----------+--------------+--------------+-----------+--------------+-------------+-------------+-------+------+-------------------------------------------------+------------------------------------------------+----------------------------------+----------------------------------+-----------+-----------+------------+-----------+-----------+-----------+
>
> User "tma" gets listed and user "jaam" doesnt!
>
> root@auth /usr/local/samba/lib# cat /etc/passwd | grep jaam:
> jaam:x:12313:1103:Jose Augusto Monteiro:/home/docentes/jaam:/bin/bash
> root@auth /usr/local/samba/lib# cat /etc/passwd | grep tma:
> tma:x:12096:1104:Tiago Alves:/home/ndocentes/tma:/bin/bash
> root@auth /usr/local/samba/lib# cat /etc/group | grep 1103:
> docentes:x:1103:
> root@auth /usr/local/samba/lib# cat /etc/group | grep 1104:
> ndocentes:x:1104:
> root@auth /usr/local/samba/lib#
>
> PS2: if anybody needs more information please email me!!!
>
> PS3: im currently using samba 3.0.0!
> PS4: when i upgraded to samba 3.0.13, allthough the authentications work
> correctly, i cant get any user listed on my domain! :o/ [that is why im
still
> using 3.0.0] (i obviously used the same exact configuration from 3.0.0 to
> 3.0.13...with the small difference that the mysql table changed (as you all
> know, it has now two new fields (bad_password_count
> int(9),logon_count int(9))
>
> Thanks in advance,
> +----------------------------------------
> | Lu?s Miguel Ferreira da Silva
> | Network Administrator @ISPGaya
> | Instituto Superior Polit?cnico Gaya
> | Rua Ant?nio Rodrigues da Rocha, 291/341
> | Sto. Ov?dio ? 4400-025 V. N. de Gaia
> | Tel: +351 223745730/3/5
> | GSM: +351 912671471 +351 936371253
> +----------------------------------------
>
>
> ----------------------------------------------------------------
> Este email foi enviado via o webmail do ISPGaya
> Instituto Superior Polit?cnico Gaya
>



+----------------------------------------
| Lu?s Miguel Ferreira da Silva
| Network Administrator @ISPGaya
| Instituto Superior Polit?cnico Gaya
| Rua Ant?nio Rodrigues da Rocha, 291/341
| Sto. Ov?dio ? 4400-025 V. N. de Gaia
| Tel: +351 223745730/3/5
| GSM: +351 912671471 +351 936371253
+----------------------------------------


----------------------------------------------------------------
Este email foi enviado via o webmail do ISPGaya
Instituto Superior Polit?cnico Gaya