Fwd: Policy Error Executing WEU: Set Screen Saver on AA6252

bentoms
Release Candidate Programs Tester

Hi guys,

We're running a script to set the screen saver. It queries dscl for the users NFSHomedirectory.

But for 2 out of 230 ish macs we're getting the error below. Running dscl . -list does not show us these users & we cannot see them In system prefs either.

Any ideas?

Regards,

Ben.

Begin forwarded message:

4 REPLIES 4

Not applicable

Does /var/db/dslocal/nodes/Default/users/hmungall.plist exist?

Brandt

--

J. Brandt Buckley
Systems Architect
IGPP

brandt at ucsd.edu http://igpp.ucsd.edu
P: +1 858 534 8145 F: +1 858 822 1418

Institute of Geophysics and Planetary Physics
Scripps Institution of Oceanography
University of California, San Diego

8785 Biological Grade, Suite 4112
La Jolla, Ca. 92037-0225

bentoms
Release Candidate Programs Tester

No it doesn't. Hmmm... How does that file get created?

Regards,

Ben.

Not applicable

That's the file dscl would be reading for the user hmungall. It's created
whenever a user permanently exists on a system. Not knowing the
architecture of your setup, I could be way off, but it sounds like the user
exists solely on the directory server. If not configured to create an
account on the fly at first login (select user > Preferences tab > Mobility
pane in Workgroup Manager), the user would generally still be able to login,
but a home directory would be generated at whatever location is set in the
homeDirectory attribute.

If you run (as root) on the system in question: su hmungall -c "/bin/ls -ld
~"

If the user is set to a valid shell (like /bin/bash or /bin/tcsh) you should
get the an inode info for their home directory. Otherwise it'll say "ls:
/path/to/hmungall: No such file or directory"

In that case, you'd just need to create the user. Assuming you're using
mobile accounts, you could do this remotely (as root) with the command
/System/Library/CoreServices/ManagedClient.app/Contents/Resources/createmobileaccount

Brandt

bentoms
Release Candidate Programs Tester

Thank you Brandt.. Running the below worked for me:

/System/Library/CoreServices/ManagedClient.app/Contents/Resources/createmobileaccount –n Hmungall

We're running the Magic Triangle here with mobile accounts created.. No dir sync.. Just local.. (AD plugin is set to create mobile account at login, no prompt).

Weird that two accounts have got got out of whack, but many many thanks for the solution.

Regards,
Ben Toms
IT Support Analyst GREY Group
The Johnson Building, 77 Hatton Garden, London, EC1N 8JS
T: +44 (0) 20-3037-3819 |
Main: +44 (0) 20 3037 3000 | IT Helpdesk: +44 (0) 20 3037 3883