[Samba] Change user IDs on Samba PDC

Marcin giedz at arise.pl
Mon Mar 5 15:45:11 GMT 2007

Monday 05 of March 2007 14:23:40 Felipe Augusto van de Wiel napisał(a):
> On 03/04/2007 08:42 PM, Marco De Vitis wrote:
> > Hi,
> > I've got a Samba 3.0.24 Debian server which I'm currently moving to a
> > new hardware. It uses tdbsam as password backend.
> > So, while looking at configuration files, I was thinking: is there a way
> > I could change the Unix UIDs for some users, without breaking anything?
> 	That's a little bit of a "hard guess". Windows can be an
> wild environment, and profiles can be even wilder. :-)

If only uid is gonna changed then should be OK, but if SID ...... ooowwww 
that's gonna hurt :( or maybe I've missed something but in my case changing 
SID was related to creating NEW profile because this fu...... win2k doesn't 
allow to change SID in other way.

So try and give us the hint ;)


> > The problem is that, since migrating from a different Linux distribution
> > a long time ago, I still have some UIDs and GIDs which do not follow the
> > related Debian policy
> > (http://www.debian.org/doc/debian-policy/ch-opersys.html), i.e. they are
> > well below 1000 (from 500 and up for UIDs, but as low as 200 for GIDs).
> >
> > I would be happy if I could simply change the user IDs (or delete and
> > create the Linux users again), fix file ownerships where needed, and
> > then run Samba with no other change.
> > On the other hand, if this is really impossible, I suppose I can live
> > with it...
> >
> > Any info? Thanks.
> 	AFAICT, when you change the uid you will need to change the
> sambaSID and that would break the profile. You can definetely migrate
> the profiles (but sorry, I can't give you much info, since I never
> migrate user profiles).
> > PS: actually, I suppose I could simple delete both Linux and Samba users
> > and create them again, as long as I know their passwords or inform the
> > "human" users that they have to enter a new password... but what happens
> > to their roaming profiles? Are they completely lost? Can't I reuse them
> > by just changing file ownerships?
> 	There is a great chance that with new sid the workstation
> will create a new profile, isn't anything in the Samba Official
> HOWTO (Desktop Profile Management Chapter) about this?
> 	Kind regards,
> --
> Felipe Augusto van de Wiel <felipe at paranacidade.org.br>
> Coordenadoria de Tecnologia da Informação (CTI) - SEDU/PARANACIDADE
> http://www.paranacidade.org.br/           Phone: (+55 41 3350 3300)

ARISE M.Giedz, T.Żebruń sp.j.
http: www.arise.pl
mail: giedz at arise.pl
tel: +48 502 537 157

More information about the samba mailing list