Changing the UID number of a directory

Alex Gabriel alexgabriel-Nmj6Sl6vboSovDFt+AQlJdBPR1lH4CV8 at public.gmane.org
Wed Jan 18 20:17:32 UTC 2012


This does the trick on my machine at work, so it should work for you, William.

Alex Gabriel
Dimensia Design Studio
alexgabriel-Nmj6Sl6vboSovDFt+AQlJdBPR1lH4CV8 at public.gmane.org

On 18 January 2012 15:09, Vic Gedris <vic-2vUEnoANFF8dnm+yROfE0A at public.gmane.org> wrote:
> Doesn't this work?
> chown 2005 filename
>
> -Vic
>
> Vic Gedris - http://vic.gedris.org
> Toronto, Ontario, Canada - http://www.junctiontriangle.ca
>
>
> On Wed, Jan 18, 2012 at 3:02 PM, William Muriithi
> <william.muriithi-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org> wrote:
>> Hello
>>
>> I have two users with the same name, and I got them because I
>> configured the system to use LDAP after I had already created a local
>> account and generated files on the home directory.
>>
>> In another word, I have two account both called william, but one with
>> a UID of 501 and another with a UID 2005.  When I check the file
>> properties of the home directory with "ls -n /home/ | grep william",
>> they are owned by UID 501, so despite login with the same account
>> "william", I get permission denied because of the inconsistent UID.
>>
>> I have checked chown and it does not have a way of changing UID when
>> both account has a name "william".  Is there a way of changing this
>> properties without destroying and starting a fresh?  I have looked at
>> all the flags for chown and nothing seem to allow that.
>>
>> Regards
>> William
> --
> The Toronto Linux Users Group.      Meetings: http://gtalug.org/
> TLUG requests: Linux topics, No HTML, wrap text below 80 columns
> How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists
--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list