Benches macOS

3

About the environment variable __CF_USER_…

apple Verified

Imported from the Apple Support Forums via the Wayback Machine 🔗

Dear all,

I am integrating Mac OSX 10.5.8 client in Active Directory.

The User-Accounts are maintained on an Active Directory and the User's home directory is maintained on a Windows file server.

However, because of this environment, the necessary folders and necessary files are not automatically made.

I need to implement a Login Script to copy some files for users when they login.

One of the files is a ~/.CFUserTextEncoding.

But, as I manually copy ~/.CFUserTextEncoding, the content of the file ~/.CFUserTextEncoding is not reflected in

the environment variable
_CF_USER_TEXTENCODING.

When Users login for the first time, the content of the two files don’t correspond.

~/.CFUserTextEncoding =   1:14


_CF_USER_TEXTENCODING = 0x(UID hexadecimal number):0:00

I understand the next method for the solution.

1. open Terminal

2. input 'killall Finder' and Enter

3. reboot Terminal

4. The content of the two files will be the same.

~/.CFUserTextEncoding =   1:14


_CF_USER_TEXTENCODING = 0x(UID hexadecimal number):1:14

But, I can’t expect users to do this themselves.

So, I want to automate this solution using another way.

I want to include the system in the Login Script.

Does anyone have any ideas?

Thanks.

3 replies

Sign in or join Beachball Help to reply.

  1. 0

    baltwo

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Try the Unix forum under OS X Technologies or the windoze server/AD forums.

  2. 0

    kamon

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Thank you for your reply Baltwo.

    I will inquire about this problem at the Unix Forum.

  3. 0

    baltwo

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Good luck.