What is the difference between %u and %U? The documentation says they both return the value of the connected username, but will they return different values? James Dinkel Network Engineer Butler County of Kansas There are 10 types of people in the world: those who understand binary, and those who don't.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 James A. Dinkel wrote:> What is the difference between %u and %U? The > documentation says they both return the value > of the connected username, but will they return > different values?%u is based on the uid of the connected userand is only available with the context of a share connection. That's a little over simplified explanation but a good rule of thumb. cheers, jerry ====================================================================Samba ------- http://www.samba.org Centeris ----------- http://www.centeris.com "What man is a man who does not make the world better?" --Balian -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFzO8MIR7qMdg1EfYRArppAKDl3+1gd/sBNj2Gqpp/J76emGTv3QCg5kkF Ob30Bx8eK7o9ZeCNak62N1Q=THHh -----END PGP SIGNATURE-----
On Saturday 10 February 2007 03:05, James A. Dinkel wrote:> What is the difference between %u and %U? The documentation says they > both return the value of the connected username, but will they return > different values?%u contains username AFTER users.map processing %U contains username BEFORE users.map processing so, when you have entry: root = Administrator (this is usual entry), path = /dirs/%u will explain as /dirs/Administrator, and path /dirs/%U - as /dirs/root -- With Best Regards. Rashid N. Achilov (RNA1-RIPE), Web: http://www.askd.ru/~shelton OOO "ACK" telecommunications administrator, e-mail: achilov-rn [at] askd.ru PGP: 83 CD E2 A7 37 4A D5 81 D6 D6 52 BF C9 2F 85 AF 97 BE CB 0A