Home Forums OS X Server and Client Discussion Questions and Answers Managed Login Scripts & Workgroup Manager

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #367021
    d.maltby
    Participant

    Hey all,

    I am trying toimplement Managed login scripts on a machine group which consists of just one test machine at the moment, & all I seem to have is problems. After over coming the “is not a CFArray” error I got in my system log I not get my script returning 1 in the system log. The script is very simple, it creates a symbolic link to a partition on a hard dxrive that the users cal use as a scratch disk.

    the script is as follows

    #!/bin/sh

    ln -s “/volumes/mac HD” “~/Desktop”

    it’s litrally that simple it will be more complex but firstly I need to get it to work. If anyone can shed some light on why it returns one that would be brilliant. I’ll post a copy of the log if anyone needs/wants to see.

    Thanks

    Dave Maltby

    #367028
    gw1500se
    Participant

    Does the script work correctly from the command line? It is not clear what you expect the script to do. It looks like you are trying to create a symbolic link to the hard drive in the user’s home directory and calling it ‘Desktop’. That directory normally already exists for every user. I must be missing something?

    #367038
    Anonymous
    Guest

    i am trying to create a sympolic link on the users desktop to a drive called Mac HD.

    i thought the ln command worked on the basis of ln -s “where you want to link to” “where you want link to appear”

    but if i am telling it to create one called desktop that would explain why my script is rteturning 1 because there is already an idtem called desktop, the script would have to read

    #!/bin/sh

    ln -s “/volumes/mac HD” “~/desktop/”

    is that correct?

    #367039
    gw1500se
    Participant

    If I understand what you want, you need to do the following:

    ln -s “/volumes/mac HD” “~/Desktop/mac HD”

    #367040
    gw1500se
    Participant

    One other thought. You only need to do this once rather then each time the user logs in. The alias will be permanent unless you delete (‘rm’) it when the user logs off.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.

Comments are closed